hkmeadows
Published © GPL3+

First Project to Learn How to Use the Arduino Project Hub

In order to learn how to use the Project Hub for the first time I selected a simple solid state relay control.

BeginnerProtip773
First Project to Learn How to Use the Arduino Project Hub

Things used in this project

Hardware components

Crydom 6422 Solid State Relay
There are 2 relays available in a handy DIN mount carrier with an LED indicator.
×1
Arduino UNO R3
×1
Custom made jumper wires
×1
120v 40w lamp and base
The SSR has a minimum current switching requirement so a 120v 40w lamp was chosen as an indicating load of .333ma to meet the load requirement.
×1
AC power cord and wire nuts
×1

Hand tools and fabrication machines

Ideal wire stripper
Small slotted screwdriver

Story

Read more

Schematics

Crydom Solid State Relay (SSR)

Low level compatible input interfaces directly to controller output.

Code

Solid State Relay Test

Arduino
Pin 12 is programmed as a digital output and is connected to the SSR input pin 4. The program turns pin 12 ON for 5-seconds and OFF for 1-second which controls the SSR AC output lamp.
/*
  SSR ON/OFF Test

*/

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

// the loop function runs over and over again forever
void loop() {
  digitalWrite(12, HIGH);   // turn pin 12 on (HIGH is the voltage level)
  delay(5000);                       // wait for 5 seconds
  digitalWrite(12, LOW);    // turn pin 12 off by making the voltage LOW
  delay(1000);                       // wait for 1 second
}

Credits

hkmeadows

hkmeadows

0 projects • 0 followers

Comments