Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
matyasbartosik
Published © MPL-2.0

Relay inverter

This is a 100Hz inverter (Yes it works like normal 50Hz inverter so dont care about the 100Hz)

BeginnerFull instructions provided454
Relay inverter

Things used in this project

Hardware components

Relay (generic)
×1
Low Voltage Transformer, Class II
Low Voltage Transformer, Class II
Any transformer will work (OPTIONAL)
×1
9V battery (generic)
9V battery (generic)
×1
9V Battery Clip
9V Battery Clip
×1
Arduino UNO
Arduino UNO
×1

Story

Read more

Schematics

Circuit Diagram

Code

Code

C#
// constants won't change
const int RELAY_PIN = 7;  // the Arduino pin, which connects to the IN pin of relay

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin as an output.
  pinMode(RELAY_PIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(RELAY_PIN, HIGH);
  delay(10);
  digitalWrite(RELAY_PIN, LOW);
  delay(10);
}

Credits

matyasbartosik
1 project • 0 followers
Contact

Comments

Please log in or sign up to comment.