+21622886281
Car Micro:bit Project

Development of a remote control car by Joystick with Micro:bit

Purpose of this project:

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.

Required components

  • two Micro:bit boards
  • two GPIO boards
  • two relay wires connecting
  • car chassis
  • two wheel
  • two motors
  • one wheel

construction of the car

Mounting the joystick joystick with Micro:bit

You can connect:

  • The +5V pin of the 3.3V joystick of the micro:bit
  • The GND pin of the joystick to the GND of the micro:bit
  • The VRx pin of the joystick to the pin P2 of the micro:bit
  • VRy pin from joystick to pin P1 from micro:bit
  • Pin SW from joystick to pin P0 from micro:bit

Assembling the car with Micro:bit

To make the assembling, one can connect

For the first relay:

  • pin S to pin P0 of the Micro:bit board
  • the pin (+) to pin 3.3V of the Micro:bit board
  • the pin (-) to the GND of the Micro:bit board
  • the pin ON to an energy of 5V

For the second relay:

  • pin S to pin P1 of the Micro:bit board
  • pin (+) to pin 3.3V of the Micro:bit board
  • pin (-) to the GND of the Micro:bit board
  • pin ON to an energy of 5V

For each of the two motors:

  • the first terminal to the COM pin of the relay
  • the second terminal to the GND terminal of the Micro:bit board

First makecode program

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.

Second Makecode program

Here is the makecode program for the micro:bit card connected to the car.




0 commentaire


Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top