flow chart for the code , programming homework help

Get perfect grades by consistently using www.assignmentgeeks.org. Place your order and get a quality paper today. Take advantage of our current 20% discount by using the coupon code GET20


Order a Similar Paper Order a Different Paper

I want flow chart of this code and explain the flow chart .

This code of automatic car shelter with motion sensor ..

#include <Servo.h>
#define buzzer 3
#define motion 4
Servo myservo; // create servo object to control a servo
char recv=0;
boolean isclosed= false;

void setup(){

myservo.attach(9); // attaches the servo on pin 9 to the servo object
Serial.begin(9600);
delay(100);
myservo.write(147);
delay(100);
pinMode(motion,INPUT);
pinMode(buzzer,OUTPUT);
digitalWrite(buzzer,LOW);
}

void loop(){

if(Serial.available()){
recv=Serial.read();
if(recv==’o’){
isclosed= false;
myservo.write(147);
delay(500);}

if(recv==’c’){
isclosed= true;
myservo.write(24);
delay(5000);}
recv=0;
}

if(isclosed){

if(digitalRead(motion)==HIGH){
digitalWrite(buzzer,HIGH);
delay(5000);
digitalWrite(buzzer,LOW);
}
}

}

Writerbay.net

Do you need help with this or a different assignment? We offer CONFIDENTIAL, ORIGINAL (Turnitin/LopesWrite/SafeAssign checks), and PRIVATE services using latest (within 5 years) peer-reviewed articles. Kindly click on ORDER NOW to receive an A++ paper from our masters- and PhD writers.

Get a 15% discount on your order using the following coupon code SAVE15


Order a Similar Paper Order a Different Paper