AC Line Load Opto Control

AC Line Load Opto Control © GPL3+

How to interface a 220V load with the Arduino in safety mode.

  • 527 views
  • 0 comments
  • 1 respect

Components and supplies

About this project

This projects shows how to interface the arduino with a AC 220V load in a safety manner using AC relay MST_K17 module. So you can control (turn on/off) the AC load without problem in term of safety because there is opto coupling. The MST_K17 module can be driven using the an Arduino pin ( 5V) as a led. The optocoupler drives the Triac during the zero crossing of the AC line. The load can be a lamp, motor or heater.

Code

MST_K17 codeArduino
/* ITA 
Codice per pilotaggio dell'interruttore optoelettronico MST_K17. 
Collegando il pin CNT=53 all'ingresso positivo del modulo MST_K17
e l'ingresso negativo alla GND della scheda Arduino( MEGA)
accendera' e spegnera il carico tramite il modulo MST_K17 per un tempo ( in millisecondi)  settati con la variabile dly
Come carico del MST_K17 si puo usare una lampada. un motore o un riscaldatore
*/

/* ENG 
Simple code for driving the optoelectronic AC relay MST_K17. 
Connecting the pin CNT=53 at the positve input of the MST_K17
and its  negative input to the GND of the Arduino board (MEGA)
the load will be turn on / off by the MST_K17 module for a time ( in milliseconds)  set by the variable dly
As load of the MST_K17 you can use a lamp, motor or heater.
*/

// set pin numbers:
const int CNT = 53;     // the number of the CNT pin


// variables will change:

int dly=100;      // tempo di ON e OFF del modulo 

void setup() {
  
  pinMode(CNT, OUTPUT); //  CNT pin as an output:

}

void loop() {

  digitalWrite(CNT,HIGH);
  delay(dly);
  digitalWrite(CNT,LOW);
  delay(dly);

}

Schematics

MST_K17 arduino driving example
Drive mst k17 ct2pwtd4ol

Comments

Similar projects you might like

Control a 220VAC Universal AC Motor with Arduino

Project showcase by microst

  • 1,211 views
  • 0 comments
  • 3 respects

Control Your Computer With A Remote Control

Project tutorial by Arduino_Scuola

  • 6,217 views
  • 1 comment
  • 8 respects

Control an LED with the Remote Control

Project showcase by Nicholas_N

  • 4,700 views
  • 2 comments
  • 12 respects

Arduino Control AC Water Heater temperature

Project tutorial by Mohannad Rawashdeh

  • 9,421 views
  • 0 comments
  • 6 respects

Stepper motor control with STSPIN820 evaluation board

Project showcase by microst

  • 1,558 views
  • 0 comments
  • 4 respects
Add projectSign up / Login