Arduino Mega 2560 Controlled Dual Solenoid Actuator with Rotary Potentiometer
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino Mega 2560 microcontroller, solenoids, diodes, resistors, NPN transistors, and a rotary potentiometer. The circuit is designed to control solenoids using the Arduino, with additional components to manage current and voltage levels.
Component List
Arduino Mega 2560
- Description: A microcontroller board based on the ATmega2560.
- Pins: IOREF, RESET, 3V3, 5V, GND, VIN, A0-A15, D21/SCL, D20/SDA, D19/RX1, D18/TX1, D17 PWM/RX2, D16 PWM/TX2, D15/RX3, D14/TX3, D0 RX0, D1 TX0, D2 PWM, D3 PWM, D4 PWM, D5 PWM, D6 PWM, D7 PWM, D8 PWM, D9 PWM, D10 PWM, D11 PWM, D12 PWM, D13 PWM, AREF, SDA, SCL, D52, D50, D48, D46, D44, D42, D40, D38, D36, D34, D32, D30, D28, D26, D24, D22, D53, D51, D49, D47, D45, D43, D41, D39, D37, D35, D33, D31, D29, D27, D25, D23, 6swdw
Solenoid
- Description: An electromechanical device that converts electrical energy into mechanical movement.
- Pins: pin1, pin2
Diode
- Description: A semiconductor device that allows current to flow in one direction only.
- Pins: cathode, anode
Resistor (220 Ohms)
- Description: A passive electrical component that limits current flow.
- Pins: pin1, pin2
- Properties: Resistance: 220 Ohms
Resistor (200 Ohms)
- Description: A passive electrical component that limits current flow.
- Pins: pin1, pin2
- Properties: Resistance: 200 Ohms
NPN Transistor
- Description: A type of bipolar junction transistor used for amplification and switching.
- Pins: E (Emitter), C (Collector), B (Base)
Rotary Potentiometer
- Description: A variable resistor used to adjust levels in a circuit.
- Pins: leg1, wiper, leg2
- Properties: Resistance: 10,000 Ohms
Wiring Details
Arduino Mega 2560
GND is connected to:
- NPN Transistor (Base)
- NPN Transistor (Base)
- Rotary Potentiometer (leg1)
VIN is connected to:
- Solenoid (pin2)
- Diode (cathode)
- Solenoid (pin2)
- Diode (cathode)
- Rotary Potentiometer (leg2)
D2 PWM is connected to:
- Resistor (pin1)
D3 PWM is connected to:
- Resistor (pin1)
A0 is connected to:
- Rotary Potentiometer (wiper)
Solenoid
pin1 is connected to:
- NPN Transistor (Collector)
- NPN Transistor (Collector)
pin2 is connected to:
- Diode (cathode)
- Diode (cathode)
- Rotary Potentiometer (leg2)
- Arduino Mega 2560 (VIN)
Diode
- cathode is connected to:
- Solenoid (pin2)
- Solenoid (pin2)
- Rotary Potentiometer (leg2)
- Arduino Mega 2560 (VIN)
Resistor (220 Ohms)
pin1 is connected to:
- Arduino Mega 2560 (D2 PWM)
pin2 is connected to:
- NPN Transistor (Emitter)
Resistor (200 Ohms)
pin1 is connected to:
- Arduino Mega 2560 (D3 PWM)
pin2 is connected to:
- NPN Transistor (Emitter)
NPN Transistor
Base is connected to:
- NPN Transistor (Base)
- Rotary Potentiometer (leg1)
- Arduino Mega 2560 (GND)
Collector is connected to:
- Solenoid (pin1)
Emitter is connected to:
- Resistor (pin2)
Rotary Potentiometer
leg1 is connected to:
- NPN Transistor (Base)
- NPN Transistor (Base)
- Arduino Mega 2560 (GND)
wiper is connected to:
- Arduino Mega 2560 (A0)
leg2 is connected to:
- Solenoid (pin2)
- Diode (cathode)
- Solenoid (pin2)
- Diode (cathode)
- Arduino Mega 2560 (VIN)
Code Documentation
Arduino Mega 2560 Code
File Name: sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
File Name: documentation.txt
This documentation provides a comprehensive overview of the circuit, including a detailed list of components, their connections, and the code used in the Arduino Mega 2560.