User:Wsnyder0080/ENES-100/project 1/week 4 CDIO

Problem Statement
write the program for the lilypad arduino to pulse in a heartbeat-like fashion

Training and Operations
to program arduino lights to turn and off, arduino must be told which pins to activate. to tell pin to activate with code, int ledPin(example number)=(example number). press enter Next write code, void setup to tell the arduino to rewrite previous programming press enter put { press enter Next pin must be initialized as an output with code, pinMode(ledPin(example number), OUTPUT); press enter put } press enter these steps must be done for all lights that are desired to be activated. to tell the program to loop written code, void loop this will loop the program endlessly press enter put { Next tell the arduino to light up led lights to full power with code, digitalWrite(ledPin(example number), HIGH); Next tell arduino how long selected lights will stay at full power with code, delay(example time); this number is in milliseconds so delay(200) keeps the lights on for 200 milliseconds. Next tell the arduino to turn the lights off with code, digitalWrite(ledPin(example number), LOW); press enter write code delay(example number); to tell the LED lights to stay off for a period of time press enter put } this closes the code and is required Next verify there are no errors in the code by clicking the verify button in the top left hand corner of the screen Next click the upload button in the top left hand corner of the screen to upload the program it will take a few seconds to upload then the new program should start immediately. this is a basic blink program to achieve a heartbeat like pulse add another high and low code lines with delays in between with a long delay after the low code lines

Next Steps
Next steps include handing project off to new team.