Greetings all. Glad to be a part of your forum
I am a bit new to all this, so please bear with me.
I want to send basic byte data between two Arduinos.
My first attempt used the IR libraries, and that was fine if I used a TV remote or something.
My data is going to consist of around 150 individual bytes. I could not get the IR library's to let me send enough variables. Plus, there seems to be a lot of error checking within those codes.
Speed is not critical for this transfer.
I connected an IR receiver to a 328p, and read the port using SoftwareSerial.
I have an IR led connected via a transistor on a second Pro Mini, also using SoftwareSerial.
Can I simply send the data (for example - 230) by saying: int bytesSent = IRSerial.write(230); ?
The receiver detects 'something' on the serial.read, but its not what I send.
I realise that going forward, I need to add a start and stop marker to make sure the data is identified correctly.
I read this page: Serial Input Basics - updated - Introductory Tutorials - Arduino Forum on serial data use and lifted some of the code. But, I cannot get any particular bit of that code to work with my IR.
I should say that my actual IR wiring works fine. If you load an IR Library example, the receiver works fine.
I would post code, but I have none! Back to the drawing board at the moment.
This data can be send individually, in groups or all at once. Doesn't matter. I can decode it at the other end.
Maybe someone can point me in the right direction or to an example that I can adapt?
Thank you for your attention