Circuit Python tutorials in Robotics II
View the Project on GitHub MrPrattASH/Robotics-II-Circuit-Python
The FlySky transmitter/receiver consists of 2 parts. The transmitter is the controller with the joysticks & switches, the receiver is the small box with the antenna.
As this is a drone controller, it has a few safeguards in place to prevent your robot from immediately driving off or turning on it’s attack mechanisms. Your transmitter should have the following setup:
The transmitter can send values for 6 different channels at any one time. It does have the option to have up to x4 toggle switches, and x2 potentiometers, but this is the intended output for our controller in this class.
Ch1
- Right joystick, Left/Right ControlCh2
- Right joystick, Up/Down ControlCh3
- Left joystick, Left/Right ControlCh4
- Left joystick, Up/Down ControlCh5
- SWB, 2 way toggle switchCh6
- SWC, 3 way toggle switchEventually, we will drive the robot throttle with CH2, and steer with CH1. CH3/4 will likely not be used, and CH 5/6 will be used for various mechanisms attached to our robot.
It is important to know that the receiver outputs a 5V signal. However, our Metro board has both 3.3 and 5v logic pins (or 5V tolerant at least), meaning that we don’t need to change voltage to read our signals.
You’ll need a wiring harness for the receiver, and the receiver itself
You can simply attach the wiring harness into the reciver, so that:
Now that you’re wired up, lets program this board and start recieving signals.