Tuesday, June 5, 2012

Indicator LED Light Sketch



This is the 2nd phase in the making of our autonomous Biotronics Lego Walker. In  this phase an LED indicator light is added on the robot's microcontroller. The Lawsin Linkage is also used in this experimental model.





This Biotronics project is made up of an Arduino Uno microcontroller, ultrasonic sensor HC-05 , an LED indicator, a piezo speaker, a microservo motor SG90 , a stepper motor 28BYJ-48, one power function, and LEGO's  bricks and pieces.

Phase 2: Indicator LED Light Arduino Sketch

 ///////////////////////////////////////////////////////////////////////////

/*
Indicator LED Test
This is the 2nd phase of The Biotronics Lego Project.
This sketch test an LED light on Arduino Uno.
The led will turn on and off continuously.
The led is attached to digital pin 12
Sketched by J.B.Wylzan
*/

int x = 12;

void setup() {
pinMode(x, OUTPUT);
}

void loop() {
digitalWrite(x, HIGH);
delay(2000);
digitalWrite(x, LOW);
delay(2000);
}

////////////////////////////////////////////////////////////////////////////


*Biotronics are robots in forms of insects, animals, and plants that look alive or with life. The word was coined by Lawsin in his book Creation by Laws. In technical term, Biotronics is the science of robots with self consciousness. Bio means life and tronics means intelligent electronics(neurotronics).

No comments:

Post a Comment