Hi there, I am doing a project that requires using an Arduino Uno to make a LED blink in morse code displaying messages typed in on the console only when the Arduino is receiving the required 5V voltage.The Arduino will be receiving its power from a wind turbine and generator and the generator needs to be supplying 5.5V so that is why I have used a resistor to limit the power received by to Arduino to 5V. The aim of the project is for the LED to display "It is WINDY!" and other messages in morse code when the Arduino is receiving enough voltage from the power source (5.5V) but not when the voltage is below 5.5V. Everything runs smoothly and I can get the LED to blink any inputted message but the problem I am running into, is that I am unable to make this inputted message triggered by the power source. The code how it is will blink the LED regardless of the inputted voltage and will display the message entered in the console only when "enter" is pushed and not automatically (On TinkerCad).A secondary and probably more desired option is to get the LED to flash "It is WINDY!" in morse as a default only when the Arduino receives enough power(5V) and then only flash the inputted message from the console when enter is pushed thereafter.
Any help will be greatly appreciated, thanks very much.
Arduino_Final_Code.zip (11.1 KB)