Posts

Showing posts from May 23, 2019

Creating many additional 5V and GND outputs on Arduino without soldering

When creating schemes with Arduino, I often required many 5V and GND contacts for connecting devices such as potentiometers. For low-power devices (potentiometers, other sensors, low-power LEDs), we can use digital pins Arduino for a such purpose. For example, to output GND on digital pin 3, write the following:     pinMode(3, OUTPUT);     digitalWrite(3, LOW); To output 5V on the digital pin 4, write the following:     pinMode(4, OUTPUT);     digitalWrite(4, HIGH); Now we have two additional pins with GND and 5V, which we can use for connecting! Note: using PWM pins and analogWrite() function, we can set any voltage value between 0 and 5V.