Arduino-Based Variable Voltage Transformer
Arduino-Based Variable Voltage Transformer
Arduino-Based Variable Voltage Transformer
An Experimenters Variable
Voltage Transformer
Here is a modern twist to controlling an old workbench essential.
int voltage=A0; // select the input pin for the voltage sensor
int current1=A1; // select the input pin for the current sensor #1
int voltageValue = 0; // variable to store the value coming from the voltage sensor
int current1Value = 0; // variable to store the value coming from the current sensor #1
void setup() {
// pinMode(busPin, INPUT);
// sensors.begin();
// sensors.getAddress(sensor, 0);
pinMode(ledPin, OUTPUT);
pinMode(relayPin, OUTPUT);
// set up the LCDs number of columns and rows:
lcd.begin(24, 2); // initialize the lcd
lcd.clear(); // clear lcd
lcd.setCursor(3,0);
lcd.print(TDA LLC);
lcd.setCursor(1,1);
lcd.print(Variac Monitor);
delay(3000);
void loop() {
// sensors.requestTemperatures();
voltageValue = analogRead(voltage);
current1Value = analogRead(current1);
digitalWrite(ledPin, LOW);
digitalWrite (relayPin, HIGH);
lcd.clear();
// read and display the voltage
lcd.setCursor(0,0);
lcd.print(Vol=);
lcd.setCursor(5,0);
lcd.print(vol);
// lcd.setCursor(13,0);
// lcd.print(Temp=);
// lcd.setCursor(19,0);
// lcd.print(tempF);
delay(500);
}
else{
while(1){
digitalWrite(ledPin, HIGH);
digitalWrite(relayPin, LOW);
lcd.clear();
lcd.setCursor(0,0);
lcd.print(Tripped Over Cur);
lcd.setCursor(0,1);
lcd.print(Press Reset);
delay(1000);
}
}
LS1 J6
4
3 1
U3 U6 5 2
1 1 3 1 3
24 V IN OUT VIN VOUT 8
To Figure 3 2 6
5V
2 2 7
LM7812C L78M05 1
D2
TO220 TO220
1N4001 2
Q1 Relay
2N2222A DPDT
R3
2.2 k
Proto Shield Jumper 16 x 2 LCD
J2
5 0 16 16 16
1 A I5 DI0 GND
L1 Current 4 1 15 15 15
To Figure 3 2 A I4 D I1 BACKLIGHT
3 2 14 14 14
A I3 DI2 DB7
2 3 13 13 13
A I2 DI3 DB6
1 4 12 12 12
A I1 D I4 DB5
0 5 11 11 11
A I0 D I5 DB4
6 10 10 10
DI6 DB3
7 9 9 9
DI7 5V DB2
J3 1 8 8 8 8
1 VIN DI8 DB1
Voltage 2 9 7 7 7
5V GND DI9 DB0
To Figure 3 2 3 10 6 6 6
GND DI10 E
4 11 5V 5 5 5
5V DI11 R/W
5 12 4 4 4
3V DI12 RS
6 13 3 3 3
RST DI13 R1 CONTRAST
14 10 k 2 2 2
GND +5V
15 1 1 1
REF GND
J4
1 R4 J9
U2 U1
560
2
QX1503-Drell02
J7
T1
Plug
Variac U5 J8
Out +
Out
AC Male
SW1 LS2 8 1 iSnailV10 Receptacle
F1
2 1 6 AC Female
7 3 1 2
HKP-5A
3
4
3 3
2
5
DPST
2 U4
1
1 LINE2 OUT+ To Figure 2
2 J3
782XBXM4L LINE1 OUT
108-130
1
To Figure 2
2 J6
PS1
1
L1 V+ To Figure 2
2 24 V
L2 V
Table 2
Autotransformer Parts List
Reference Quantity Description Source
U2 1 Screw Protoshield ADAFruit
U3 1 LM7812C/TO220 Newark
U6 1 L78M05/TO220 Newark
LS2 1 DPDT Relay; 24 V DC Coil; Magnacraft with socket 782XBXBM4L
U1 1 24 2 LCD display; Luminix
D2 1 1N4001 Diode
Q1 1 2N2222A Transistor
R1 1 10 kW single turn trim pot
R3 1 2.2 kW W
R4 1 Not Used In This Version
D1 1 LED Not Used In This Version
F1 1 HKP Fuse Holder with 3AG 5 A Fuse
LS1 1 DPDT Relay, 5 V DC Coil, Miniature (Omiron)
PS1 1 LPS55 power supply Newark
U5 1 i-snail V-10 Current Transducer ELKOR
U4 1 108 to 130 V Voltage Transducer (AAC) American Aerospace Controls, Inc
T1 1 Variac 291 Staco
SW1 1 DPDT miniature toggle switch
J7 1 Input Power Connector 120 V AC @ 10 A
J8 1 Output Power Connector; 120 V AC @ 10 A