I wanted to ask for help to solve this problem
Microcontroller should check whether
the entered ASCII value(s) in double matches the predefined
esteem or not. Necessities:
• Design a circuit with ATMEGA2561 microcontroller with
three buttons and two LEDs
• The first button for sending 1 to the microcontroller
• The second button for sending 0 to the microcontroller
• The third button resets previous entered values
• If the entered ASCII value is correct, LEDs should blink
3 times with delay 200ms, otherwise LEDs should blink 2
times with delay 500ms
Example:
Let’s consider that you have predefined letter “A” in your
code: #define LETTER_A 0b01000001
To enter this value, you should start from the end of the
binary. For instance, BTN1 for 1 and BTN2 for 0. Then your
input should be:
BTN1, BTN0, BTN0, BTN0, BTN0, BTN0, BTN1, BTN0
1 0 0 0 0 0 1 0
After this input LEDs should blink 3 times with delay 200ms.
Consider that the length of binary value is always 8.
Hello
post your draft sketch to see how we can help you.
When is our assignment due to be handed in?
the mulitfunction shield has the HW you suggest
sounds like you want the arduino to display a random ascii character and the user enters the ASCII value in binary using buttons.
no need to define ASCII characters in binary, the compiler will accept their value in ascii (e.g. 'A') and which code can process bit-by-bit
for random selection, use random() to return a value from 0-25 and add 'A' to determine a value.
code in c++
Hello
Do have the task to make the complet HW- and SW-design by yourself?
When is this due to be completed for? What notes do you need added to show function?
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
