Skip to content

Back End (C++) of fractalistic - Heater control with Arduino

Notifications You must be signed in to change notification settings

rhymn/fractalistic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fractalistic

Remote Heater Control

Components

Heater

400V (3 Phase) electric heater.

Arduino Uno

PID Regulator controlling temperature with 6 relays in 9 steps

Communicates with the Raspberry Pi via usb serial Software in C++

Raspberry Pi

Proxy program handling settings and sends stats using web API every 30 minutes.

proxy.py - url is read from config.py (not version controlled)

Raspbian

uploading to Arduino

"avrdude: stk500_getsync(): not in sync" this is most likely because the AutoResetOnSerial is enabled. "avrdude: stk500_recv(): programmer is not responding" this is likely because you've choosen the wrong Serial port. My default ports for the RPi are stated in read.py

In Raspbian the Arduino shows up as /dev/ttyACM0

sudo make clean
sudo make
sudo make upload
sudo cat /dev/ttyACM0
Libraries

Arduino libraries goes into /usr/share/arduino/libraries/

Crontab

Run proxy script every n minutes

*/30 * * * * sudo python /home/david/fractalistic/python/proxy.py >/var/log/fractalistic 2> /var/log/fractalistic

API and Web app

Displays current stats for the heater, user can interact and change mode between "home" and "away"

Node.js hosted at Heroku, Mongodb at Compose

todo and current problems

  • Thermistor measuring temp gives wrong values - figure out why (Seems this was an int/float thing)
  • "mode" is set wrongly when given dummy names, should only set to "home" and "away" (Done)
  • Temperature runtime adjustment (Done)
  • Finish and merge "tempClass" branch to master (Done)
  • Refactor arduino c++ code (Done)
  • Outside temperature measure
  • Inside temperature measure
  • Radiator / water pump control (on/off)
  • python script on the raspberry for simplifying compilation, deployment and debugging

More

http://playground.arduino.cc/Main/DisablingAutoResetOnSerialConnection

About

Back End (C++) of fractalistic - Heater control with Arduino

Resources

Stars

Watchers

Forks

Packages

No packages published