user67602: Running a DC motor(6.5A max input), motor driver (MD10C 7Amp peak output), and Arduino Mega. I am stabilizing an object with an accelerometer as my sensor. I switched to longer wires so I can have my board next to me and the stabilized object far away. Now I believe there are timing issues because of this. How would I fix this? How would i test to see how long it takes to travel through my wires?
I can add my code if that helps.


user14095: The pins of logic chips and processors are not line drivers and will not operate properly when used as such. Sometimes you may get lucky but that generally would be intermittent in operation. They make drivers to drive wires off board from the controller and other chips that are receivers on the other end. This needs to be done with each digital line. There are some specialty drivers such as I2C repeater chips, RS485 etc. Remember the wires are antennas and the system is operating at a high enough frequency to be a great radio transmitter. The main thing is to isolate the controller wires from the world.

user57952: A better solution would be to get a Pololu Wixel and companion shield for your Mega, and then put the Mega near the object.  You can then program the Mega wirelessly and completely avoid problems with long signal lines.  See this post for how I used it on one of my wall-following robots.  You'll need two Wixels and one Wixel shield.  They aren't particularly cheap, but you won't regret getting them.
There are other options for wireless control and programming, using Bluetooth rather than a proprietary protocol, but they aren't as easy to implement as the Wixel method.

67602: <p>Running a DC motor(6.5A max input), motor driver (MD10C 7Amp peak output), and Arduino Mega. I am stabilizing an object with an accelerometer as my sensor. I switched to longer wires so I can have my board next to me and the stabilized object far away. Now I believe there are timing issues because of this. How would I fix this? How would i test to see how long it takes to travel through my wires?</p>
<p>I can add my code if that helps.</p>
<p><a href="https://i.stack.imgur.com/maigg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/maigg.png" alt="enter image description here" /></a></p>
 14095: <p>The pins of logic chips and processors are not line drivers and will not operate properly when used as such. Sometimes you may get lucky but that generally would be intermittent in operation. They make drivers to drive wires off board from the controller and other chips that are receivers on the other end. This needs to be done with each digital line. There are some specialty drivers such as I2C repeater chips, RS485 etc. Remember the wires are antennas and the system is operating at a high enough frequency to be a great radio transmitter. The main thing is to isolate the controller wires from the world.</p>
 57952: <p>A better solution would be to get a <a href="https://www.pololu.com/product/1336" rel="nofollow noreferrer">Pololu Wixel</a> and companion shield for your Mega, and then put the Mega near the object.  You can then program the Mega wirelessly and completely avoid problems with long signal lines.  See <a href="https://www.fpaynter.com/2015/12/new-battery-and-wireless-for-wall-e2/" rel="nofollow noreferrer">this post</a> for how I used it on one of my wall-following robots.  You'll need two Wixels and one Wixel shield.  They aren't particularly cheap, but you won't regret getting them.</p>
<p>There are <a href="https://www.fpaynter.com/wp-admin/post.php?post=3612&amp;action=edit" rel="nofollow noreferrer">other options for wireless control and programming, using Bluetooth</a> rather than a proprietary protocol, but they aren't as easy to implement as the Wixel method.</p>
