TB6612_Wireless by bri_huang

Cloned from Sketch Ludus_RCWireless by bri_huang

This adds RC wireless control to the RedBot Mainboard. Connect the Aileron (Ch 1) and the Throttle (Ch 2) to the pins A0 and A1.
Ludus Shield RC Remote Code This example uses pulseIn() to measure the PWM signal from a standard RC remote receiver connected to the Ludus Shield through pins A0 and A1. Most standard RC remotes have a range between 1000 uS and 2000 uS with a center band at 1500 uS. Using a logic analyzer we found that this receiver had a range of 1200 uS to 1800 uS. You will see this in the mapping function below. Connect the Ludus Shield to the receiver using a standard 3-wire female to female Servo jumper cables. Connect the signal lines to correspond with the pin definitions below, or change the pins definitions to match your wiring.

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:381428" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>