Circuit Documentation
Summary of the Circuit
This circuit is designed to control two DC gearmotors using an Arduino UNO microcontroller and an L298N DC motor driver. It features a JSN-SR04T sensor for distance measurement and a TM1637 display module for user interface. The HC-05 Bluetooth module provides wireless communication capabilities. Power is supplied by an 18650 Li-Ion battery, and the circuit includes rocker switches for power control. The Arduino UNO is programmed to manage the inputs and outputs, interfacing with the sensors, display, and motor driver to perform the desired functions.
Component List
Gearmotor DC / Motorreductor
- Description: A DC gearmotor used for providing motion.
- Pins: Pin1, Pin2
HC-05 Bluetooth Module
- Description: A Bluetooth module for wireless communication.
- Pins: Key, VCC, TXD, RXD, State, GND
18650 Li-Ion Battery
- Description: A rechargeable battery providing power to the circuit.
- Pins: Positive, Negative
Rocker Switch
- Description: A switch used to control the power supply to the circuit.
- Pins: Output, Input
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13
L298N DC Motor Driver
- Description: A motor driver module for controlling DC motors.
- Pins: OUT1-OUT4, 12V, GND, 5V, 5V-ENA-JMP-I/O, +5V-J1/J2, ENA/B, IN1-IN4
Rocker Switch (SPST)
- Description: A single-pole single-throw switch for controlling a single circuit.
- Pins: 1, 2
JSN-SR04T Sensor
- Description: An ultrasonic distance sensor.
- Pins: 5V, TRIG, ECHO, GND
TM1637
- Description: A 4-digit 7-segment display module.
- Pins: CLK, DIO, VCC, GND
Wiring Details
Gearmotor DC / Motorreductor
- Pin1: Connected to L298N DC motor driver OUT2 or OUT4
- Pin2: Connected to L298N DC motor driver OUT1 or OUT3
HC-05 Bluetooth Module
- VCC: Connected to 5V power net
- TXD: Connected to Arduino UNO D0
- RXD: Connected to Arduino UNO D1
- GND: Connected to ground net
18650 Li-Ion Battery
- Positive: Connected to 5V power net
- Negative: Connected to ground net
Rocker Switch
- Output: Connected to L298N DC motor driver 12V
- Input: Connected to 5V power net
Arduino UNO
- 5V: Connected to 5V power net
- GND: Connected to ground net
- D0-D13: Connected to various components as per the net list
L298N DC Motor Driver
- OUT1-OUT4: Connected to Gearmotor DC / Motorreductor
- 12V: Connected to Rocker Switch (SPST) pin 1
- GND: Connected to ground net
- IN1-IN4: Connected to Arduino UNO D2-D5
Rocker Switch (SPST)
- 1: Connected to L298N DC motor driver 12V
- 2: Connected to 5V power net
JSN-SR04T Sensor
- 5V: Connected to 5V power net
- TRIG: Connected to Arduino UNO D11
- ECHO: Connected to Arduino UNO D12
- GND: Connected to ground net
TM1637
- CLK: Connected to Arduino UNO D8
- DIO: Connected to Arduino UNO D9
- VCC: Connected to 5V power net
- GND: Connected to ground net
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
}
void loop() {
}
Note: The provided code is a template and does not contain any functional code. It needs to be populated with the logic to control the motors, read sensor data, manage Bluetooth communication, and update the display as per the requirements of the circuit's intended operation.