Introduction: Motor Control With the L293D H-Bridge and the Micro:bit in Tinkercad*

About: In each instructable, I teach you how to master 3D design and programming in an intuitive and easy-to-understand way. Each video is designed for you to learn step-by-step, no matter your level of experience. S…

In this instructable, you'll learn how to control DC motors using the L293D H-bridge and the Micro:bit board in Tinkercad. This circuit will allow you to drive motors in both directions and at different speeds, ideal for robotics and automation projects.

Supplies

PC with internet conection and tinkercad account.

Micro:bit Board

Micro:bit Expansion Module (optional, but recommended)

L293D Integrated Circuit

Breadboard

Connection Cables

External 5V Power Supply

DC Motor

Step 1: Connecting the L293D to the Breadboard

Place the L293D in the center of the breadboard, making sure each side is on separate rows.


Distribute the power connections:


Connect pin 16 of the L293D to 5V.


Connect pin 8 of the L293D to the same 5V source.


Connect pins 4 and 5 of the L293D to GND.


Connect pins 12 and 13 of the L293D to GND.

Step 2: Connect the L293D to the Micro:bit

Control Ports: Connect the Micro:bit pins to the L293D control pins:

Pin 0 of the Micro:bit → Pin 2 of the L293D (Input 1)

Pin 1 of the Micro:bit → Pin 7 of the L293D (Input 2)

Connecting Power:


Connect the 3V pin of the Micro:bit to Vcc of the L293D.

Connect GND of the Micro:bit to GND of the L293D.

Step 3: Connecting the Motor

Connecting the Motor

Connect the L293D outputs to the motor terminals:

Pin 3 of the L293D → Motor Wire 1

Pin 6 of the L293D → Motor Wire 2

Make sure the external 5V power supply is properly connected to the circuit.

Step 4: Programming in TinkerCad

Access Tinkercad.


Create a new project.


Add blocks to turn the motor on in one direction:


Digital write Pin 0 HIGH

Digital write Pin 1 LOW


To change the motor's direction:

Digital write Pin 0 LOW

Digital write Pin 1 HIGH


To stop the motor:

Digital write Pin 0 LOW

Digital write Pin 1 LOW

Step 5: Enjoy Your Setup

Conclusion


By following these steps, you can control a motor with the L293D H-bridge and the Micro:bit in Tinkercad. You can expand this project to control more motors or add sensors for greater automation.


Ready to try it? Go ahead and customize it!


Incredible.

Step 6: Watch Our Video Tutorial With the Step-by-step Instructions

By following these steps, you can control a motor with the L293D H-bridge and the Micro:bit in Tinkercad. You can expand this project to control more motors or add sensors for greater automation.


Ready to try it out? Feel free to customize it!


📢 Tip: Watch our step-by-step video tutorial and subscribe for more educational content. Don't miss out!