Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

homeauto-v2

Simple project to read various sensors using an Arduino Portenta Machine Control and publish changes to mqtt topics.

Getting Going

  • Install Platformio on VSCode
  • Set up a new Platformio project - ensure a platformio.ini file is generated
  • Define build_flags within ini for things like IP, board id, etc. Flags can be found at top of main.cpp
  • Build and upload - sensor data should start flowing into mqtt topics
    • You'll need an mqtt broker such as mosquitto to receive the data.
    • I recommend MQTT explorer for viewing/debuging published messages.

Customising

The code is designed to work with a Portenta Machine Control - I've found this is the quickest way to just get things going for sensors that run on 24v power and generate 24v digital + 0-10v analogue outputs. Most boards should work with very little changes:

  • Remove reference to Machine Control header file
  • Change pin definitions as desired
  • Remove any references to motion/switch/lux as desired

Sensor Background

This code was written to receive input from simple reed switches and Faradite Motion360 sensors. The lux and motion logic is coupled farily tightly to how this particular sensor works, but it should do the job for most other sensors that work along the same lines.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages