Skip to content

Arduino project to check temperature and send to one MQTT broker

License

Notifications You must be signed in to change notification settings

gonzalomarcote/arduino-collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arduino-collector

Arduino project to check temperature and send it to one MQTT broker.

Arduino project to meassure temp in my home rack

Arduino Uno board project that check the temperature of my home rack and send it to one MQTT broker.
Extra - Optionally it will turn on a light with a motion sensor when my home rack door is opened.
Compiled with arduino-mk linux package.

sketch.ino -> is the main program file.
Makefile -> the make file to compile it with arduino-mk.

The following libraries need to be downloaded to /usr/share/arduino/libraries/:

  • Wire
  • WiFi
  • SPI
  • Time
  • Timezone

To upload skecth.ino sketch to arduino uno board just type:

$ fuser -k /dev/ttyACM0
$ make upload

Be sure to be in dialout group.

To connect to serial type:

$ screen /dev/ttyACM0 115200

Be sure to have in Serial.begin(115200) the same serial number.

MQTT broker auth configuration

Edit skecth.ino and specify user and passwords in the following lines (2):

pubClient.connect("Arduino Collector 1", "user", "passwd");

About

Arduino project to check temperature and send to one MQTT broker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published