STEP CLIMBING ROBOT



PROGRAM
void setup()
{  
  outputdeclare();
  outputtest();
  serial();
}
void loop()
{

 }



 void FRD(void)
 {
 digitalWrite(9,HIGH); digitalWrite(10,LOW); digitalWrite(11,HIGH); digitalWrite(12,LOW);
 }
 void BACK(void)
{
 digitalWrite(9,LOW); digitalWrite(10,HIGH); digitalWrite(11,LOW); digitalWrite(12,HIGH); 
}
void RIGHT(void)
{
 digitalWrite(9,HIGH); digitalWrite(10,LOW); digitalWrite(11,LOW); digitalWrite(12,LOW); 
}
void LEFT(void)
{
 digitalWrite(9,LOW); digitalWrite(10,LOW); digitalWrite(11,HIGH); digitalWrite(12,LOW); 
}
 void STOP(void)
{
 digitalWrite(9,LOW); digitalWrite(10,LOW); digitalWrite(11,LOW); digitalWrite(12,LOW); 
}
void outputdeclare(void)
{
   pinMode(8, OUTPUT);
 pinMode(9, OUTPUT);  pinMode(10, OUTPUT);  pinMode(11, OUTPUT);  pinMode(12, OUTPUT); 
}
void outputtest(void)
{ digitalWrite(8,HIGH);
  digitalWrite(9,HIGH); digitalWrite(10,HIGH); digitalWrite(11,HIGH); digitalWrite(12,HIGH);
  delay(500);
  digitalWrite(8,LOW);
  digitalWrite(9,LOW); digitalWrite(10,LOW); digitalWrite(11,LOW); digitalWrite(12,LOW);
  //delay(1000);
}
void serial(void)
{
 Serial.begin(9600);
 Serial.println("emerging technologies");
}
/*
-------------DIGITAL------------------------------------------
  pinMode(2, OUTPUT);
   digitalWrite(2,LOW);
  digitalWrite(2,HIGH);
-------------TIME---------------------------------------------
delay(1000);
------------SERIAL COMMUNICATION-------------
Serial.begin(9600);
Serial.println("emerging technologies");
Serial.print("emerging technologies");
Serial.write(a);
if(Serial.available() > 0)char a=Serial.read();

*/