Professional Documents
Culture Documents
Reading Ports With Delays
Reading Ports With Delays
WITH DELAYS
TOPIC 7
AUTOMATION =
ROBOT
AUTOMATION is based on a process control that
includes
the following parts:
ACTUATOR
SENSOR
CONTROLLER / OR BRAIN
It does the action in the physical world
and it canbe an ENGINE
Control structures =
FORKS
IF/ELSE
SWITCH
FOR
EXAMPLE
WHILE
DO
void setup() {
pinMode(a, OUTPUT);
//and you continue...
void loop() {
// ZERO
digitalWrite(a, HIGH);
digitalWrite(b, HIGH);
digitalWrite(c, HIGH);
digitalWrite(d, HIGH);
digitalWrite(e, HIGH);
digitalWrite(f, HIGH);
digitalWrite(g, LOW);
DIAGRAM