Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8895783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:52:43+00:00 2026-06-14T23:52:43+00:00

What would be the best way to make it so that there would be

  • 0

What would be the best way to make it so that there would be no error when sending a message using binary via infrared. Currently I am sending messages by having them encoded into their binary ascii values then having two Arduinos with infrared lights and sensors that check for a starting bit light then read in the messages by checking if the infrared light is on or off in 3 millisecond intervals.

I need to make it so that no matter what happens (i.e. interference from a remote or other Arduinos) the correct message will still send.

I would also like to make is so that even if both Arduinos try to send a message at the same time they will both get their messages to each other.

I am sending and receiving the messages through the serial monitor of the Arduino IDE.

PS: I am getting a problem where if I send a lot of letters at once, they start to be jumbled after a certain number of characters. I.e. if I were to type 1 – 30 with spaces in between the numbers, I would get as result: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 14 15 a s .... after 17 the numbers would become jumbled.

If you have any idea on what the problem could be I would be very grateful!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T23:52:44+00:00Added an answer on June 14, 2026 at 11:52 pm

    Getting no errors with IR is going to be tough. The problem is if it misses one blink, it gets all shifted, then your screwed. Sending 2 at a time will also be hard, as the arduino an’t do parallel processing.

    I would recommend a different protocol. IR is not great for lots of info. serial is super easy if you don’t need wireless, if you do, go with bluetooth, such as 2 blueSMIRFs. you will have to set one up as a master, but then it is just like serial communication.

    Do some googling, but I think IR is not going to work out with whole messages. 1 or 2 numbers, sure, but a whole sentence or something is just not going to work out well.

    the one thing to try would be to send the message 2 or 3 times, and compare to see if they are the same. if yes, chances are it is right, but if different, you could request a resend.

    you might also want to slow it down if you can, and use longer pulses and pauses, that will give it more time to register, meaning it should be more accurate.

    good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make a code snippet database web application. Would the best way
postgres 9.2 supports json columns. what would be best way to extend postgres to
What would be the best way to something like this where a timestamp is
What would be the best way to display a dialog whenever my app receives
What would be the best way to version a rails application? We want to
What would be the best way to properly concatenate string with an url inside?
What would be the best way and more idiomatic to break a string into
What would be the best way to convert a 50-digit String to a BigInteger
What would be the best way in Python to parse out chunks of text
What would be the best way to detect newline return method in PHP. CR,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.