Skip to content

A state machine example to control a relay in Arduino UNO

Notifications You must be signed in to change notification settings

CTMObservatory/relayarduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Simple Relay State Machine for Arduino

Circuit

Connect signal 1 of relay to pin 4 and signal 2 to pin 3.

States

To change the state into clockwise rotation CWTURN_STATE, send the string CW to the Serial Monitor.

To change the state into counter-clockwise rotation CCWTURN_STATE, send the string CCW to the Serial Monitor.

Any other string will stop rotation and set the state machine to the IDLE_STATE state.


(c) TOROS Dev Team - 2018

About

A state machine example to control a relay in Arduino UNO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages