How will you program it to work?

1,460.5K Views

The LCD device should be able to tell the right time in the format HH:MM:SS in 12-hour format. You can refer to the picture to get an idea.

The device is a simple “level indicator” which has to be converted into a watch. How will you program it to work?

Share
Add Comment

  • 1 Answer(s)

    The first digit except bottom segment can encode MM (6^2=64>=60).
    Some order is needed to be agreed upon so that they represent the MM in binary.
    Each element of display is a binary digit:
    “On”=1
    “Off”=0

    In the same manner you can encode seconds by using the second digit.

    The rest four elements of display (two bottom segments and two dots) can be used to encode HH (4^2=16>=12)

    anikam Expert Answered on 22nd August 2015.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.
  • More puzzles to try-