2018
July Wednesday 18

Bookmark and Share

Related Articles...

MILWAUKEE WI Arduino Meet Up Make Space

WANTED: CORE TEAM MEMBER TO HELP START NON-PROFIT GROUP.

WANTED: Angle Investor Start-Up Funding

Large Industrial Zoned Arduino Make Space Acquired!

Email :

COASMailBox @ gmail.com

MILWAUKEE WI Raspberry Pi Meet Up Make Space

WANTED: CORE TEAM MEMBER TO HELP START NON-PROFIT GROUP.

WANTED: Angle Investor Start-Up Funding

Large Industrial Zoned Raspberry Pi Make Space Acquired!

Email :

COASMailBox @ gmail.com

MILWAUKEE WI Internet of Things (IoT) Meet Up Make Space

WANTED: CORE TEAM MEMBER TO HELP START NON-PROFIT GROUP.

WANTED: Angle Investor Start-Up Funding

Large Industrial Zoned Make Space Acquired!

Full Advanced Fabrication Facility, machine Shop, Welding, Electronics Lab Equipment Acquired!

Email :

COASMailBox @ gmail.com

MILWAUKEE WI Machine Repair, & Installation  - Tier 1 Business Support

Machine Technician Mechanic 20+ Years  Personal Experienced In Industrial Factory Machine Servicing, Rebuilding, Installation And Repair - Plus A 35+ Years Experienced Computer Engineer Service Technician Team Ready For Your Outsourced Market Advantage Needs!

Hartung Industrial - Member - CGI Science & Technology Group

Email :

COASMailBox @ gmail.com


2018 July REVIEW

 

Arduino Thyresistor TRIAC & AC Circuit Control
| Gene's Quick Lab Ref

CONTROLLING REAL WORLD

2017 | by Gene Casanova

Senior Systems/Network/Internet Engineer; Senior Technical Writer/Author/Editor


Thyristor

A thyrisitor is a solid state device without moving parts, to provide switch functionality in an AC or DC circuit.

Thyristor TRIAC do not work with DC circuits.

Thyristors are on of few solid state devices capable of switching a circuit.


Thyristor TRIAC

A TRIAC thyristor switches AC circuits.


Isolate DC and AC Ciruits


Arduino TRIAC Control

As an example, a Adruino can control a AC circuit, by swtiching power ON and Off. The following circuit can be used to switch On and Off a 120VAC circuit; a AC powered device.

An optoisolator is used to keep the DC and AC circuits 100% electrically seperated.

Basic AC Switch Circuit

1) Connect an Arduion I/O pin to pin 2 on an optoisolator IC chip.

2) Connect the Vcc pin (pin 1) of the optoisolator IC chip to a 20 ohm resistor, and the other end of the resistor to +Vcc DC power source.  The 220 ohm resistor provides the current to drive the LED inside the optoisolator.

3) Connect a 180 ohm resistor to pin 6 of the optoisolator IC chip; and to a AC power Hot side input feed.

4) Connect a 1K ohm resistor to pin 4 of the optoisolator IC chip; and the other end of the resistor to the output AC to the AC device.

5) Connect the TRIAC Gate to pin 4 of the optoisolator IC chip.

6) Connect the TRIAC Cathod to the output AC lead to the AC device.

7) Connect the TRIAC Anode to the AC power Hot side input feed.

This example circuit can control a 120VAC LED lamp.


THE SOURCE CODE

Here is a simple example source code for an Arduino MPU  to control a TRIAC connected to a 120VAC LED Lamp.

/* Experimental
 * Thyristor Control
 * By Gene Casanova
 * Copyright 2017 (Please Retain This Copyright Notice; GeneCasanova.com).
*/
int8_t dig = 1;	// Default HIGH for Light OFF.
void setup(){
 // For Controlling Thyristor:
 pinMode(3,OUTPUT);		// Establish I/O pin to OUTPUT mode.
 digitalWrite(3,HIGH);	// When HIGH, Thyresistor If OFF/Open
}

void Loop(){
 delay(2000);	// Light Turns On / Off Every 2 Seconds for Demostration.
 togLight();	// Execute function togLight() to Turn Light On Or Off.
}

void togLight(){	//	Create the function togLIght() here:
 if(dig){
  digtialWrite(3,HIGH);	//	Turn Off Light.
  dig=0;	//	Toggle dig Value.
 }else{
  digitalWrite(3,LOW);		//	Turn On Light.
 }
}

Custom computer control desiging and building assitance and service available.


Use The Technology Wisely & Keep It Simple

- Cheers!

Gene Casanova


Cyber Security Since 1979 - Consulting Available | IoT Full Stack And App Developer

CGI Computer Wares | EST 1979

Send E-MailCONTACT: [click]@CGIComputerWares.com