Circuit Documentation
Summary
This circuit consists of an Arduino Nano microcontroller, a 5V battery, multiple vibration motors, rectifier diodes, and NPN transistors. The Arduino Nano controls the vibration motors through the transistors, which are used as switches. The rectifier diodes are used to protect the transistors from back EMF generated by the motors.
Component List
Arduino Nano
- Description: A small, complete, and breadboard-friendly board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
5V Battery
- Description: A power source providing 5V DC.
- Pins: +, -
Vibration Motor
- Description: A small motor that vibrates when powered.
- Pins: POS, NEG
1N4007 Rectifier Diode
- Description: A diode used for rectification and protection against back EMF.
- Pins: Cathode, Anode
NPN Transistor
- Description: A transistor used as a switch to control the vibration motors.
- Pins: E (Emitter), C (Collector), B (Base)
Wiring Details
Arduino Nano
- VIN: Connected to the + pin of the 5V Battery.
- GND: Connected to the - pin of the 5V Battery.
- D9: Connected to the B pin of an NPN Transistor.
- D10: Connected to the B pin of another NPN Transistor.
- D11/MOSI: Connected to the B pin of another NPN Transistor.
- D12/MISO: Connected to the B pin of another NPN Transistor.
5V Battery
- + Pin: Connected to the VIN pin of the Arduino Nano, POS pins of multiple Vibration Motors, and Anode pins of multiple 1N4007 Rectifier Diodes.
- - Pin: Connected to the GND pin of the Arduino Nano and E pins of multiple NPN Transistors.
Vibration Motor
- POS Pin: Connected to the + pin of the 5V Battery.
- NEG Pin: Connected to the Cathode pin of a 1N4007 Rectifier Diode and the C pin of an NPN Transistor.
1N4007 Rectifier Diode
- Anode Pin: Connected to the + pin of the 5V Battery.
- Cathode Pin: Connected to the NEG pin of a Vibration Motor and the C pin of an NPN Transistor.
NPN Transistor
- E Pin: Connected to the - pin of the 5V Battery.
- C Pin: Connected to the Cathode pin of a 1N4007 Rectifier Diode and the NEG pin of a Vibration Motor.
- B Pin: Connected to a digital pin (D9, D10, D11/MOSI, D12/MISO) of the Arduino Nano.
Documented Code
Arduino Nano Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino Nano.
