Lighthouse Basic Signal
Last updated
Last updated
To develop the algorithm: use the LED Grid to send your signal. However in the next steps you will add an extended LED bulb
TIP: Signal will all the LED on full bright for ease - since we are going to change your signal from the LED Grid to an attached LED Bulb, there is no need to develop a complicated signal here.
Now that you are sending a signal based the "time" of day, it is time to modify the signal to flash during the night for incoming ships to see.
“If you close your eyes, no lighthouse can help you!” ― Mehmet Murat ildan
We want the signal to stay on for 3 seconds and turn off for 1 second, so you need to modify the code when the light level is low.
TIP: the microbit doesn't measure time in seconds, it measures time in milliseconds
Your lighthouse should have its own unique signal, this helps navigating ships identify the lighthouse in the distance. Take a minute and design your own simple, yet unique flashing signal.
This algorithim and portions of this assignment taken directly from https://sites.google.com/view/microbitofthings/2-simple-control-systems/6-lighthouse?authuser=0