@ctclibby and @insomniville thank you very much for the response!
Unfortunately I don't have a scope at the moment, but maybe I'll look into it in the future. A good option you gave @ctclibby!
Okay, I threw out the pca9685s and added an extra arduino Mega (I still had it lying around). This will be a slave of the original arduino Mega so that the master can tell which track block should be activated (if the master is not connected to the correct track block).
These two arduinos will communicate with each other so that I have enough ports left for the blocks.Because I want to be able to control the speed and the direction, I need a connection for each piece of rail in a block (2x). This will now work because of the 2 MEGAs that I now have in my possession.
So the problem is actually solved now. First tackle all this and then on to the next story
Unfortunately I don't have a scope at the moment, but maybe I'll look into it in the future. A good option you gave @ctclibby!
Okay, I threw out the pca9685s and added an extra arduino Mega (I still had it lying around). This will be a slave of the original arduino Mega so that the master can tell which track block should be activated (if the master is not connected to the correct track block).
These two arduinos will communicate with each other so that I have enough ports left for the blocks.Because I want to be able to control the speed and the direction, I need a connection for each piece of rail in a block (2x). This will now work because of the 2 MEGAs that I now have in my possession.
So the problem is actually solved now. First tackle all this and then on to the next story