Bluetooth Toy Car Controller
by a71241493 in Circuits > Raspberry Pi
402 Views, 4 Favorites, 0 Comments
Bluetooth Toy Car Controller
We've created a project that uses Bluetooth functionality to control a toy car.
You're probably familiar with games that use the gyro sensor in your phone to move cars. We were inspired by these games and thought it would be even more fun to turn your phone to move a real toy car. Thus, we've created this piece of work.
Supplies
Here are the materials.
- tt motor *4
- Raspberry Pi Pico w
- 11.1v Li-Po Battery
- Bolt,Nut
- Wire
- L298N motor driver
You will need these materials, and there may be other parts that are necessary as well.
Car Manufacturing
First off, we're going to use a 3D printer to manufacture the body of the car. Given that our 3D printer has a build volume of 12*12*12, we split the model into two halves, printed each one, and then joined them together using an adhesive.
With the car body ready, we mount four TT motors to it, marking the completion of our basic car assembly
Downloads
Circuit Diagram
Next, we'll be creating the circuit that's going to give our car its mobility. Here's the schematic for it.
Enable A should be connected to GP0, Input1 to GP1, Input2 to GP2, Input3 to GP3, Input4 to GP4, and Enable B to GP5. We're using a lithium-ion battery, and to step down the voltage, we're employing SZH-PWSD-021. This brings down the power headed to the Raspberry Pi Pico to 3.3V, while the power for the motor can be sourced directly from the battery!
We've paired up the motors in twos, so connect two motors each to the Motor A and B terminals on the L298N Motor Driver.
Circuit Diagram Creation
While you could theoretically connect everything directly to the Raspberry Pi Pico, the plethora of wires would make the setup quite complex. So, we opted to use a PCB board to lay out the circuit. Once you've got the circuit connected to the car's motor and the battery, viola! You've got your very own car. You can further customize this car to suit your preferences, so why not give creating your own customized toy car a shot!
Cdoe
By loading this program onto your Raspberry Pi Pico using a cable, you'll have everything you need to get your car moving.
App Download
Download the app we've put together, pair it with your toy car via Bluetooth, hit the 'start' button, and then tilt your smartphone in the direction you'd like the car to move. Voila, your toy car is on the move!
Downloads
Play Car
Connect the power to the robot and you can move it using the controller!