I came across an old R/C Racecar, and the first thing that came to mind was to tear all the way apart to the bare minimum, and put a Pinoccio on it. So I did.
Parts That I Used
- A Pinoccio
- 2 H-Bridge Motor Drivers
- Old R/C Racecar
An RGB Led
- 1 Ping Pong Ball
- 9-Volt Battery Holder + 9-Volt Battery (I stole mine from my Arduino)
Software That I Used
- Arduino IDE
- Twilio for handling the text message stuff
- Pinoccio Scout Script
All you need to do is load the
PinoccioRacer.ino onto your Pinoccio Scout. Then run
./ngrok 3030 in a terminal while in the project directory. This opens up your port 3030.
Next you run in a new terminal tab or window
node index, this will start an extremely simple express server so that Twilio can send requests to you and you can detect new messages.
Now in the Twilio dashboard, go to your phone number and under the "Messaging Request URL" copy and paste the url that showed up when you ran
./ngrok 3030 it should look like "https://7709a229.ngrok.com/" then throw "inbound" on the end of it so that express points the request in the right direction.
Currently, the when you send a text message it will check if it is in the
availableCommands array, to get around this and be able to run any command just comment out the line where
availableCommands gets created.
You will need to change the part in the pinoccio rest commands, in the url, to match your scouts data.
The data sheet for hooking the wires up to the H-Bridge from is located at https://www.sparkfun.com/datasheets/IC/SN754410.pdf
The overall design is pretty simple.
Hope you enjoyed
Did you replicate this project? Share it!I made one
Love this project? Think it could be improved? Tell us what you think!