With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
Are you using multiple usb ports on the same pc for your rx and ptx? If so, I think that could be causing your difficulties. A test would be to use separate computers/ power sources. There should be a way to work around it, but I'm afraid I don't have an easy solution. In general, the rx should be able to continuously receive data without resetting the ptx -- as you said.
My best guess, if I understand the question, is the ptx will stop transmitting once it has guessed correctly ("done = true;"). As written, the only way to resume guessing is to reset the ptx Arduino.
The delay in the code for the transmitters is critical. I'm not sure of the exact figures for the time it takes the PRX to receive (and acknowledge) a message, but you have to "throttle back" the transmitters with that delay so as to not overwhelm the PRX. If it takes 30 ms for one message for the PRX, it would take 180 ms for 6 PTXs. The delay factor should be substantially longer than this so the PTXs aren't "talking over one another" and the PRX is able to receive all, or nearly all, transmissions.
Thank you! Yes, the pipe represents a channel for data flow that can go either way. The key is that one node must be listening while the other writes -- and then the roles are reversed. Looking at the code examples should help to clarify this. Hope this helps.P.S. I lived in Argentina in '71-'72. Though I was young, I have fond memories. Best wishes for 2017.
I hope I understand what you're asking.The example code basically works like this:PRX: Listens, Gets msg and replies, Back to ListeningPTX: Sends msg, waits for reply, Delays prior to sending next msgWhat you want to do:PRX: Sends msg to PTX0, waits for reply, sends to next PTX ... loopPTX: Listens, Gets msg and replies, Back to ListeningIf that's correct, the your PTX code will be almost the same as the example PRX code -- and you'll have to write new code to make the master act more like a transmitter, sending to each node in turn.I lived in Acassuso outside of Buenos Aires
Raspberry Pi: Wall Mounted Calendar and Notification Center
Raspberry Pi Wall Mounted Google Calendar
Arduino Data Glasses For My Multimeter
Please try using baud rate 115200 on the serial monitor.
Huge addressable RGB LED (ceiling) panel
Laser Printed PCB's, Perfect and Easy.
Build a chaos generator in 5 minutes!
DIY Boost Converter || How to Step Up DC Voltage Efficiently
Laser Trip Wire Using an LED
How to Create a Thévenin Equivalent Circuit
Join 2 million + to receive instant DIY inspiration in your inbox.
© 2016 Autodesk, Inc.