Switched from 3ft to 10ft connection wires. My setup doesnt run correctly now. Timing issues?

Arduino Asked by Thunder Dornhofer on October 28, 2020

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.

enter image description here

2 Answers

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.

Answered by user3765883 on October 28, 2020

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.

Answered by Gil on October 28, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP