AC Line Load Opto Control © GPL3+

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

  • 117 views
  • 0 comments
  • 0 respects

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

Gesture Control Robot

Project tutorial by Raunak Oberai

  • 1,495 views
  • 4 comments
  • 9 respects

Matrix Orbital GTT TFT Thermometer

Project tutorial by MatrixOrbital

  • 3,583 views
  • 0 comments
  • 8 respects

Pathfinder

Project showcase by Maverick

  • 11,540 views
  • 7 comments
  • 76 respects

Micro Soldering Station

Project tutorial by Paulo Bruckmann

  • 10,631 views
  • 10 comments
  • 34 respects

Back Up SD File to Dropbox

Project tutorial by Andrei Florian

  • 3,039 views
  • 6 comments
  • 34 respects

Arduino-Powered Robot Controlled with The Tactigon

Project tutorial by the tactigon team

  • 805 views
  • 0 comments
  • 3 respects
Add projectSign up / Login