A simple Java program that turns on or off an old push button AC unit when the room reaches a certain temperature + some advanced features.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
lib
src
.classpath
.gitignore
.project
LICENSE
README.md
screenshot.png

README.md

Raspberry Pi Climate Control

A simple Java program that turns on or off an old push button AC unit when the room reaches a certain temperature + some advanced features.

Codacy Badge Maintainability FOSSA Status BCH compliance

Dependencies

  • Java
  • Raspberry Pi
  • DHT11 Temperature & Humidity Sensor
  • Servo Motor
  • Raspberry Pi Camera
  • 5V Fan (Optional)
  • Pi4J - Java I/O library for the Raspberry Pi
Compile & Run
clear
javac -d ./bin -cp ./src/.:./src/lib/javamail/mail.jar:./src/lib/pi4j/lib/* src/*.java
sudo java -cp ./bin:./src/lib/javamail/mail.jar:./src/lib/pi4j/lib/* Main
Run at Startup (Optional)

RC.LOCAL

Credits

Eric Smith - For writing most of the DHT11.java code.

Troubleshooting

Unable to determine hardware version. I see: Hardware: BCM2835

https://github.com/Pi4J/pi4j/issues/319

Solution :

sudo rpi-update 52241088c1da59a359110d39c1875cda56496764