Question

Write an Arduino program that displays a character message in its 8 bit binary(ASCII) form in the serial monitor (Assume message contains only alphabets and spaces). Also generate a checksum(8 bit) for the message so that in the event of transmission of the message along with the checksum,so that (sum(message) + checksum)%255 = 00000000.

Hint : The checksum could be generated by adding the ASCII value of individual characters in the message,sum = ASCII(H) + ASCII(e) + …………
Eg: message = “Hello World”

     Binary           Character   
 01001000  H
 01100101   e
 01101100  l
 01101100  l
 01101111  o
 00100000  
 01010111  W
 01101111  o
 01110010  r
 01101100  l
 01100100  d
checksum  01110010


Expected Output: Video

Submit your answers here

Rules and Regulations

1.The event is planned for a span of around 10 days consisting of 4 different levels.

2.Participants should only attempt the questions assigned to their respective year of study.

3.There will be a common registration link for all the participants which will be open throughout the event. It is mandatory to register for the event before starting to participate in any of the levels.

4.People can start participating from any of the 4 levels.

5.The link for each of the levels will be open only for a specified period of time. Participants need to submit the work within the time frame.

6.Submission of the work after the specified time will not be considered for evaluation.

7.Separate grading will be done for each of the levels. The one who submits first will be awarded more marks.

8.If there is any difficulty in saving the document, then do take a screen recording of your work and submit it.

9.The event winners will be asked for an ID verification.



MS Home