

The circuit in question is designed to control a 12v pneumatic solenoid valve using an Arduino Pro Mini microcontroller. The control signal is amplified by a TIP120 Hi-Current Darlington Transistor. A 1N4007 Rectifier Diode is used for back EMF protection. The circuit also includes an RFM95 module for wireless communication, which is interfaced with the Arduino Pro Mini. The Arduino is programmed to switch the solenoid valve on and off at one-second intervals.
GND connected to the ground planeVCC connected to the 3.3V power supplySCK, MISO, MOSI, D10 connected to the corresponding pins on the RFM95 for SPI communicationD5 connected to the RESET pin of the RFM95D3 connected to DIO1 of the RFM95D2 connected to DIO0 of the RFM95D4 is the control pin for the solenoid valve (via the TIP120 transistor)VCC connected to the COLLECTOR of the TIP120 transistorGND connected to the ground planeBASE connected to a 1 Ohm resistorCOLLECTOR connected to the Anode of the 1N4007 diode and VCC of the solenoid valveEMITTER connected to the ground planeCathode connected to the 3.3V power supplyAnode connected to the COLLECTOR of the TIP120 transistorpin1 connected to the BASE of the TIP120 transistorpin2 connected to the control pin (D4) on the Arduino Pro MiniGND connected to the ground plane3.3V connected to the 3.3V power supplySCK, MISO, MOSI, NSS connected to the corresponding pins on the Arduino Pro Mini for SPI communicationRESET connected to D5 on the Arduino Pro MiniDIO1 connected to D3 on the Arduino Pro MiniDIO0 connected to D2 on the Arduino Pro Mini// sketch.ino
int solenoidPin = 4; // This is the output pin on the Arduino we are using
void setup() {
// put your setup code here, to run once:
pinMode(solenoidPin, OUTPUT); // Sets the pin as an output
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(solenoidPin, HIGH); // Switch Solenoid ON
delay(1000); // Wait 1 Second
digitalWrite(solenoidPin, LOW); // Switch Solenoid OFF
delay(1000); // Wait 1 Second
}
This code is designed to run on the Arduino Pro Mini. It initializes a digital pin (D4) as an output to control the solenoid valve. In the loop function, it turns the solenoid on for one second, then off for one second, repeating this cycle indefinitely.