I am trying to synchronize two Arduino R4's by disabling interrupts, disabling the counters, then reenabling counters at the same time to synchronize the two Arduinos, and sending a signal to re-synch every second or so. However I do not have access to any machine code in order to do this. Any help?
Let' start with the obvious question. Why do you need to use two Arduinos ?
The Arduinos should talk to each other with vey little delay and the delay should not stack when more Arduinos are inserted into the scope. This is a demo for visualization of a system with many microprocessors all talking to each other in sync.
OK, but why do you need to use multiple Arduinos ?
Please give us some clues as to what your project aims are
The aim of this project is to image a satellite made up of thousands of microprocessors all talking to each other in sync. They need to be able to relay information from one end of the system to the other with minimal delay so that all of the processors act as one big unit. The communication line will talk to individual parts of the satellite in order to get data and return it to a ground base. The communication line will also control any thrusters or other actuators on all sides of the satellite, so the entire system has to have minimal delay in order to make calculated translations/rotations. Of course this is just a baby demo, so all I need are two Arduinos to talk to each other in synch with little delay. This would then move to 3 Arduinos, then 4, 5, etc. The code that each Arduino will run cannot add delays which is why I want to use synchronized counters.
Could possible use a Pulse signal that each Arduino could "Sync" to?
That is how they are currently synced but the issue is that the more code that is added before a return pulse, the longer the delay. This would be fine on a small scale, but each delay will be multiplied by a factor of one hundred thousand or more.
I was thinking of a single signal going to all sensors. May not be practical for some configurations.
Is GPS an option?
GPS could be an option, but for now I'm looking to synchronize using the counter on the arduino just to experiment.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.