QUESTION

The steamer ‘Ostrich’ ferries people between Dhaka and Barisal. Ostrich usually starts from
Dhaka around 7.30pm (evening/night depending on the season). At night, the visibility is
usually very low. So, the steamers/launches usually have a flashing signal light on the roof.
On top of that, the master of the steamer also honks the horn when necessary. This signal
light and the horn are both controlled by an Arduino Uno. The signal light flashes every 4s
whereas the horn is sounded whenever the master presses the horn switch. The horn switch
already has a small RC circuit attached to it to counter bouncing. Now, prepare a program in
Arduino Uno
to control the signal light and the horn considering the information mentioned
above.

Public Answer

V3FM6J The First Answerer