Raspberry Pi Pico RC Vehicle
Supplies
- A Raspberry Pi Pico(Almost any microcontroller can be used here, but the Pico offers great features and comes cheaper than Arduino boards, so I will recommend you to go with a Pico)
- An L298N motor driver module(Use this or any other driver that can deliver at least 2A on each channel)
- A 2-channel RC transmitter and receiver(I used the FlySky FS GT2 remote and the receiver came with it)
- A tank or a 4X4 wheeled chassis(This is the one I used)
- A 12v battery
- Wires for making all the connections
- 2 2kΩ resistors(You can connect two 1kΩ resistors in series if 2kΩ resistors are not available.)
- 2 1kΩ resistors
- Breakout board for Raspberry Pi Pico(Optional, takes more space but makes wiring easier.)
Step 1: Program the Pico
Download the code and open it in the Arduino IDE. If you want to learn how to program the Pico using the Arduino IDE, you can check this project out.
Step 2: Solder Wires to the Motors
Solder long enough wires to the motors so that they can easily reach the motor driver to be installed on top of the chassis. Put hot glue on the motor's terminals to firmly secure the wires on them.
Step 3: Get the Vehicle Chassis Ready
Complete all the mechanical assembly of the chassis, if required, and keep it ready.
Step 4: Install the Battery
Step 5: Study the Circuit Schematic
Step 6: Make the Wiring Connections
Following the circuit schematic, connect everything. You may install the motor driver and Pico on the chassis before or after doing the wiring. After completing the wiring, double-check all the wiring to make sure they are done right.
Step 7: Bind the Receiver With the Remote
You can skip this step if the transmitter and receiver are already bound.
If you are using the RC transmitter and receiver for the first time, you will need to bind them so that the receiver can receive the signals from the remote. Disconnect the channel 1 and 2 signals wires connecting the RC receiver to the Pico and keep the VCC and GND wires connected. I will highly recommend you consult the transmitter and receiver's manual, but generally, the binding process is done like this:
- Put the binding plug in the row labeled 'BIND'. The plug connects the digital pin to GND.
- Power on the receiver and the LED on it should start blinking.
- Press and hold the bind button on the remote and power it on. You might need a pen to reach the button.
- Check if the LED on the receiver has stopped blinking, if not, power off the remote and repeat step 3.
- Power off the receiver and then the remote.
Step 8: Check the Motor Wiring
Place the vehicle on a raised surface such that the wheels/tracks don't make contact with the ground to prevent the vehicle from moving from its place. Open the cover of the remote and set the throttle and steering trim knobs to 0. Now power on the remote and then the vehicle. Always power on the remote first and then the vehicle.
Now, press the throttle to make the vehicle move in the forward direction, if the motors are moving in opposite directions, invert the connection of the motor that is moving backward. If both the motors are moving in the same direction but backward, invert the connections of both of them.
If the motors are working properly in the forward direction, they should work fine for reversing as well.
Step 9: Understand the Controls
Here is how the controls work:
- The throttle controls the speed and direction of the vehicle, you can use it to move forward/backward at a desired speed, the farther the throttle is from the center, the faster the vehicle will go in that direction.
- The steering controls the speed of the motors in two ways:
- When the vehicle is stationary(Throttle in the 0 position), the steering will make the vehicle rotate in its place by making the left and right motors run in the opposite direction. The extent of the steering wheel(Distance from the center point) will control the speed at which the motors will run to make the vehicle rotate faster or slower.
- When the vehicle is moving, the steering will make the motor of the side to which the vehicle will turn slower. Here, the extent of the steering will control the turning radius of the vehicle. The farther the steering wheel is from the center, the tighter the turn will be taken by the vehicle.
Step 10: Get the Vehicle Running!
After you are done with the testing, you can put the vehicle on the ground and set it free.
Raspberry Pi Pico RC Vehicle
- Comments(0)
- Likes(3)
- Engineer Oct 01,2024
- LUIS EMILIO LOPEZ Feb 14,2024
- DT-Electronics Aug 08,2023
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by KushagraK7
- Raspberry Pi Pico RC Vehicle SuppliesA Raspberry Pi Pico(Almost any microcontroller can be used here, but the Pico offers great f...
- Stepper Motor Controlled Stepper Motor Without Microcontroller! Step 1: Watch the VideoWatch the video to get a full understanding of the project and learn how to t...
- Automated Model Railroad Layout Running Two Trains I made an Automated Model Train Layout with Passing Siding a while back. Upon request from a fellow ...
- Program the Raspberry Pi Pico With the Arduino IDE The Raspberry Pi Pico is a recently launched product in the family of microcontrollers and its load ...
- Reuse an Old Laptop's Touchpad to Control a Computer! PS/2 laptop touchpads are among the coolest user interface devices to use with a microcontroller. Th...
- Automated Model Railroad Layout With Reverse Loops In one of my previous projects, I showed how to make a Simple Automated Point to Point Model Railroa...
- Use a Stepper Motor As a Rotary Encoder Rotary encoders are great for use in microcontroller projects as an input device but their performan...
- Keyboard Controlled Model Train(PS/2 Interface) Using Arduino microcontrollers, there are a lot of ways of controlling model railway layouts. A keyb...
- Stepper Motor Speed and Direction Control Without a Microcontroller In one of my previous projects, I showed you how to control a stepper motor's speed using a 555 time...
- Smartphone Controlled 4X4 Robot With ESP8266 SuppliesFor this project, you will need:An ESP8266 microcontroller(Node MCU)A dual H-bridge motor dr...
- Touchpad Controlled Digital Servo Motor Here is a quick and simple project where we control a digital servo motor with the slide of our fing...
- Smartphone Controlled Model Railroad With an ESP8266 IntroA while back, I made a project where a stepper motor's position is controlled using a smartphon...
- Simple USB Volume Controller with Arduino This project uses a rotary encoder connected to an Arduino Leonardo to control the audio volume of a...
- Motor Speed and Direction Control with a Web-Server using an ESP01 Supplies:For this project, you will need:An ESP01 microcontroller(You can use any ESP8266-based micr...
- Wi-Fi Controlled Stepper Motor With an ESP Microcontroller Step 1: Get All the Required StuffFor this project, you will need:An ESP8266 microcontrollerA Steppe...
- Simple Automated Model Railroad Loop With Yard Siding Video:Supplies: For this project, you will require:An Arduino microcontroller board compatible with ...
- Laptop Touchpad Controlled Model Railroad Supplies:For this project, you will require:An Arduino microcontroller compatible with Adafruit Moto...
- Control a Stepper Motor with a Slide of Your Finger Supplies:An Arduino microcontroller boardA PS/2 touchpad from a laptop(Try to get one with a Synapti...
-
-
-
kmMiniSchield MIDI I/O - IN/OUT/THROUGH MIDI extension for kmMidiMini
122 0 0 -
DIY Laser Power Meter with Arduino
172 0 2 -
-
-
Box & Bolt, 3D Printed Cardboard Crafting Tools
162 0 2 -