This program allow you to send command to the pin of a arduino
Demo: https://www.youtube.com/watch?v=TlHfjvLdaBA
By default :
-
Pin 2 of the Arduino
-
GPIO 7 (Pin 11) of the Raspberry PI (the last one)
-
http://pi.gadgetoid.com/WiringPi-GPIO-Pinout.png?v=1 (WiringPi Pins)
- Just copy the code in the arduino directory into your arduino sketchbook directory (it contains the rc-switch library and a example programs)
- Upload arduinocommand.ino for test purpose
All the explanation is inside the comments
- The program is already compiled.
- You can download the executable directly with this command
- wget http://smarturl.it/arduinocommand
It work like this:
- ./arduinocommand PIN LOW/HIGH
- Ex: ./arduinocommand 12 HIGH