Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, a force-sensitive resistor (FSR), a DC motor driver (L298N), two motors with reducers, and a 3xAA battery pack. The Arduino UNO reads the input from the FSR and controls the motors through the L298N motor driver. The motors are powered by the 3xAA battery pack.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
Motor with reducer
- Description: A DC motor with an integrated gearbox to reduce speed and increase torque.
- Pins: 3 - 6 VCC, GND
L298N DC motor driver
- Description: A dual H-bridge motor driver that allows control of two DC motors.
- Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
3xAA Battery
- Description: A battery pack holding three AA batteries to provide power to the circuit.
- Pins: VCC, GND
Square FSR
- Description: A force-sensitive resistor that changes its resistance based on the force applied to its surface.
- Pins: A0, A1
Wiring Details
Arduino UNO
- Vin: Connected to L298N DC motor driver 5V
- GND: Connected to Square FSR A1, 3xAA Battery GND, L298N DC motor driver GND
- A0: Connected to Square FSR A0
- D10: Connected to L298N DC motor driver ENA
- D9: Connected to L298N DC motor driver IN1
- D8: Connected to L298N DC motor driver IN2
- D7: Connected to L298N DC motor driver IN3
- D6: Connected to L298N DC motor driver IN4
- D5: Connected to L298N DC motor driver ENB
Motor with reducer (1)
- 3 - 6 VCC: Connected to L298N DC motor driver OUT1
- GND: Connected to L298N DC motor driver OUT2
Motor with reducer (2)
- 3 - 6 VCC: Connected to L298N DC motor driver OUT3
- GND: Connected to L298N DC motor driver OUT4
L298N DC motor driver
- 5V: Connected to Arduino UNO Vin
- GND: Connected to Arduino UNO GND, Square FSR A1, 3xAA Battery GND
- ENA: Connected to Arduino UNO D10
- IN1: Connected to Arduino UNO D9
- IN2: Connected to Arduino UNO D8
- IN3: Connected to Arduino UNO D7
- IN4: Connected to Arduino UNO D6
- ENB: Connected to Arduino UNO D5
- OUT1: Connected to Motor with reducer (1) 3 - 6 VCC
- OUT2: Connected to Motor with reducer (1) GND
- OUT3: Connected to Motor with reducer (2) 3 - 6 VCC
- OUT4: Connected to Motor with reducer (2) GND
- 12V: Connected to 3xAA Battery VCC
3xAA Battery
- VCC: Connected to L298N DC motor driver 12V
- GND: Connected to Arduino UNO GND, Square FSR A1, L298N DC motor driver GND
Square FSR
- A0: Connected to Arduino UNO A0
- A1: Connected to Arduino UNO GND, 3xAA Battery GND, L298N DC motor driver GND
Code Documentation
Arduino UNO Code
sketch.ino
void setup() {
}
void loop() {
}
documentation.txt