The project is;
Red led-steady light for 5 seconds and steady light and pulsating buzzer.
Yellow led- steady light for 2 seconds and then simultaneous blinking light and 3 pulsating buzzer.
Green led-steady light for 5 seconds and steady light and pulsating buzzer.
Where are you stuck?
What causes this sequence to begin ?
in the beginning sir.
Cool. Welcome to the beginning.
What causes this sequence to end?
a7
lol
joke aside
-
what did your daughter learn ? Does she understand the role of setup() and loop() functions and pinMode(), digitalWrite() and delay() for example?
-
what does the circuit look like? what component does she have?
she could study the blink builtin example
Welcome!
People are being polite today. Strange. Usually, vague requests get abruptly pointed here:
It may look familiar, you likely blew past it when you signed up.
Do you want people to just write the code for you or do you want help with the code for when you get stucked?
Thank you sir.
Hi Sir. Im not familiar with this. Im just helping my daughter. Im just need help to write the code. the question of the is Using the 3 LEDs and a Buzzer as the main components, create a signaling device that will guide the motorists in observing the traffic at road junctions crosswalks.
why don't you let your daughter write it?
she probably had some explanations from the teacher, didn't she?
Hallo nelson1332
When do you have to complete and hand in this school assignment?
Is this display for the pedestrian or vehicle traffic? What is the "idle" state when no pedestrian is present? What triggers the sequence?
Show this example for your daughter. Can be useful.
Learn the basics but still I am providing you small code to do the same
Forum is not for code request it is just for your help but feels like you are new to Arduino are really want to start building here is the basic code as your requirement
// define pin numbers for each LED and buzzer
int redLed = 3;
int yellowLed = 4;
int greenLed = 5;
int buzzer = 6;
void setup() {
// set LED and buzzer pins to output mode
pinMode(redLed, OUTPUT);
pinMode(yellowLed, OUTPUT);
pinMode(greenLed, OUTPUT);
pinMode(buzzer, OUTPUT);
}
void loop() {
// Turn on red LED and buzzer for 5 seconds
digitalWrite(redLed, HIGH);
digitalWrite(buzzer, HIGH);
delay(5000);
// Turn off red LED and buzzer, turn on yellow LED
digitalWrite(redLed, LOW);
digitalWrite(buzzer, LOW);
digitalWrite(yellowLed, HIGH);
delay(2000);
// Blink yellow LED and pulse buzzer three times
for(int i=0; i<3; i++){
digitalWrite(yellowLed, HIGH);
digitalWrite(buzzer, HIGH);
delay(500);
digitalWrite(yellowLed, LOW);
digitalWrite(buzzer, LOW);
delay(500);
}
// Turn off yellow LED and turn on green LED and buzzer for 5 seconds
digitalWrite(yellowLed, LOW);
digitalWrite(greenLed, HIGH);
digitalWrite(buzzer, HIGH);
delay(5000);
// Turn off green LED and buzzer, go back to beginning of loop
digitalWrite(greenLed, LOW);
digitalWrite(buzzer, LOW);
}
Get your daughter to make up a proposed schematic showing all components and their interconnections.
She did sir but she have a hard time.