In this project we will build a remotely controlled car (by radio) controllable by two Micro:bit cards.
The user will be able to drive the car by a joystick controller in three directions (front, right and left) and stop it.
You can connect:
To make the assembling, one can connect
For the first relay:
For the second relay:
For each of the two motors:
Here is the makecode program for the micro:bit card connected to the joystick controller:
When the joystick returns to its initial position (neutral): The 2 pins P1 and P2 of the micro:bit return values between 500 and 520 and the micro:bit board radio sends the word ‘stop’ to the Maqueen micro:bit board.
Here is the makecode program for the micro:bit card connected to the car.