Battery-Powered Motor Control System with Phototransistor and Potentiometer
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to control a DC motor using a motor driver, a potentiometer, a phototransistor, and a toggle switch. The motor driver is powered by a 12V battery and the motor speed is controlled by the potentiometer. The phototransistor and toggle switch are used to enable or disable the motor driver.
Component List
Adafruit DRV8833 DC-Stepper Motor Driver
- Description: Motor driver for controlling DC motors and stepper motors.
- Pins: AOUT2, AOUT1, BOUT1, BOUT2, ASEN, BSEN, VMOTOR, GND, NFAULT, BIN1, BIN2, !SLEEP, AIN2, AIN1, PWRIN
Hobby Gearmotor with 48:1 gearbox
- Description: DC motor with a 48:1 gearbox for increased torque.
- Pins: pin 1, pin 2
Toggle Switch
- Description: A simple on/off switch.
- Pins: L1, COM, L2
Phototransistor
- Description: A light-sensitive transistor used to detect light levels.
- Pins: C, E
Rotary Potentiometer
- Description: A variable resistor used to adjust voltage levels.
- Pins: leg1, wiper, leg2
- Properties: Resistance: 10,000 Ohms
12V Battery
- Description: Power source for the circuit.
- Pins: -, +
Wiring Details
Adafruit DRV8833 DC-Stepper Motor Driver
- AIN2 is connected to leg2 of the Rotary Potentiometer.
- GND is connected to leg2 of the Rotary Potentiometer and - of the 12V Battery.
- AIN1 is connected to leg1 of the Rotary Potentiometer.
- AOUT1 is connected to pin 2 of the Hobby Gearmotor.
- AOUT2 is connected to pin 1 of the Hobby Gearmotor.
- !SLEEP is connected to VMOTOR of the Motor Driver, E of the Phototransistor, and COM of the Toggle Switch.
Hobby Gearmotor with 48:1 gearbox
- pin 1 is connected to AOUT2 of the Motor Driver.
- pin 2 is connected to AOUT1 of the Motor Driver.
Toggle Switch
- COM is connected to !SLEEP of the Motor Driver, VMOTOR of the Motor Driver, and E of the Phototransistor.
- L1 is connected to + of the 12V Battery.
Phototransistor
- C is connected to wiper of the Rotary Potentiometer.
- E is connected to !SLEEP of the Motor Driver, VMOTOR of the Motor Driver, and COM of the Toggle Switch.
Rotary Potentiometer
- leg1 is connected to AIN1 of the Motor Driver.
- wiper is connected to C of the Phototransistor.
- leg2 is connected to AIN2 of the Motor Driver, GND of the Motor Driver, and - of the 12V Battery.
12V Battery
- + is connected to L1 of the Toggle Switch.
- - is connected to GND of the Motor Driver and leg2 of the Rotary Potentiometer.
Code
There is no code provided for this circuit.