Introduction: TouchOSC and Arduino Ethernet Shield to Control Energy (A.M.P.A.E.)
Day after day, people use a big amount of gadgets and waste a lot of energy having no concern about it. Basically our idea is a mobile application for tablets and smartphones that offers the user a total control of all the energy resources used at home. It shows information of all the gadgets and lights that are active in user´s home. This application, Aplicación Móvil Para el Ahorro de Energía (A.M.P.A.E.), allows the user to turn off the unwanted active gadgets of its home and also allows the active light’s intensity control, it works through an internet connection between the house and the user’s tablet or smartphone.
The mobile interface to work with is TouchOSC, available for Android & iOS, providing the user a pre-designed layout to control an Ethernet Shield W5100 and an Arduino. *Important: It’s mandatory for the interface to have the same LAN connection of the wanted home to control.
- Arduino ONE
- Ethernet Shield W5100
- Ethernet node
- Crossover cable
- Arduino cable
- 2 LEDs
- 2 10K resitors
- End-side cutters
- Solid State Relay SSR
- 75W Light Bulb
- Socket for the light bulb
- Electrical tape
- 9V Battery with connector
- TouchOSC editor Download
- Arduino IDE 1.6.0
- Arduino IDE 0022
- Z_OSC library for Arduino 0022
- Arduino sketch and TouchOSC layout Download
Step 1: Connections
First test with LEDs
1. Connect the Ethernet shield to your Arduino ONE
2. Plug it to your router and to your computer
3. Conecct the LEDs in the breadboard the positive side goes to the resistor and this goes to the pin 5 and 7 in arduino.
Second test with Light bulb and SSR
1. Wired one cable of your socket to your lamp and one to the SSR if you are not able to find it you can follow the above diagram to do it.
2. Connect the control cable to the 5 pin in the arduino it is important that you do it in that pin because we use a pwm
3. Connect the socket the AC
Step 2: Get the IP Address of Every Device
1. Go to the IDE Arduino 1.6.0. Files->Examples->Ethernet->DhcpAddressPrinter
2. Upload it to the Arduino
3. Open the serial terminal and your Ip will apper
1. Open the cmd in your computer
2. Type ipconfig and press enter
3. The IP will be showed.
1. Open the TouchOSC app
2. Go to OSC and Local IP address is your mobile IP
3. Set your Host is your Arduino IP
Step 3: Upload
1. Open Arduino 0022
2. Open the sketch A_M_P_A_E
3. Change the IP according to yours
4. Upload it to Arduino
To your mobile
1. Open TouchOSC editor
2. Open Fader layout
3. Press Sync
4. Go to the app TouchOSC-> Layout->Add from Editor
5. Your Host is the IP of your computer
6. Press Download
7. Go back
8. Look for Fader and select it
9. Press Done
Step 4: Enjoy!
We have a be nice policy.
Please be positive and constructive.