Introduction: Remote Control 4 Relay With Arduino Via WIFI (touchOSC+Processing)
Hello, i'm not english speaking so please understand my mistakes.
Mine was just an idea, i was curious, i googled some hours but there were a problem: i didn't found a pre-made script :)
I started from a script found on a website, but it was made for one relay, so i remade it.
This instructable is made for 4 relays but you can add how many you want.
Step 1: Materials Needed
Step 2: Wire the Relays to the Arduino
Now you have to wire the Arduino and the relay module.
Arduion VCC <-----> Relay module VCC
Arduino GND <-----> Relay module GND
Arduino pin 11 <-----> Relay IN1 Pin
Arduino pin 10 <-----> Relay IN2 Pin
Arduino pin 9 <-----> Relay IN3 Pin
Arduino pin 8 <-----> Relay IN4 Pin
Step 3: Program the Arduino
Download the script and transfer it to your Arduino
Step 4: Setup Processing
Run processing, download and open the script.
Edit the COM port if necessary.
Step 5: Setup TouchOSC
Now we need to setup touchOSC, you can find your host by typing ipconfig on cmd if you are under Windows
Step 6: Upload the TouchOSC Interface
Now with touchOSCeditor open the 4relaycontol.touchosc file and press the Sync button, once pressed on the phone app go to Layout and press Add
Step 7: Test
Run the script on Processing by pressing the "Play" button and connect with your phone.
Press the buttons, if everythig is working the relays will change their status.
We have a be nice policy.
Please be positive and constructive.