#Android-Arduino RGB LED Controller Android app and Arduino program for controlling a RGB LED strip remotely.
#How it works This blog helped me setup an Arduino Uno to control a LED RGB strip in my home. I figured it would be nice to control my RGB LED strip directly from my Android phone.
This project is very basic: The app sends a string of data to the arduino in this format: "rXgXbXiYfY", where X is a number from 0 to 255 and Y is a number from 0 to 100. When this string is received by the Arduino, it delimits the data and sets the values for the output pins accordingly. (The Arduino also sends the string back, which helps me debug for any connection errors, and to verify connection).
Note that you can connect to the Arduino using a telnet connection:
telnet <IP> <PORT>
Now you can change colors by sending strings with a letter for a color followed
by a number from 0 to 255.
For example, this string will change the LED strip color to green:
r0g255b0
Or to only change the blue color:
b100
#Setup Nexus 4, Android version 5.0.1.
Arduino Uno R3 with Ethernet Shield W5100.
#TODO
- Display current status of Arduino in the App
- Improve UI (Better color schemes, color for SeekBars)
#Special thanks Inspired from Jerome Bernard Blog, DEFINITELLY check it out!
Thanks to Pascal Cans and Justin Warner for their Android Color Picker, used in the Android app. Check out it out here. (I could not import their module into the project with Android Studio, so I hand-copied every file into my project. Its bad :S )