A Morse Code Translator( Light -> Text & Text ->Light)

the project is divided into two main states(Read Light and Write Light) which are transitionable by a button 1-converting Light to Text, this was the most challenging part; using an LDR i needed to differentiate between a dot and a dash so I had to keep track of time the moment the light goes on till it goes off, and also I needed to differentiate between the end of letters and Words which is also done by keeping track of time the moment the light goes off till it’s on again. the most exciting part however, is that I made a Binary tree and Node class to represent the Morse code graph so I could save a lot of time and processing power traversing through the tree finding letters from a dot and dash sequence with the simple logic”

Link

Related Content