Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino resets on every connection from Ubuntu #5

Open
JamesNewton opened this issue Jul 25, 2022 · 1 comment
Open

Arduino resets on every connection from Ubuntu #5

JamesNewton opened this issue Jul 25, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@JamesNewton
Copy link
Owner

If you don't use the Dynamixel Shield, and so just communicate on the programming port, under Ubuntu, every echo or write of data to the port /dev/ttyACM0 is a new connection and the hardware for programming does a reset. This, of course, prevents anything from working for the long term.

Possible fixes:

  • Use a script to start a cat from the port to a file, and then pickup returned data from that file instead of directly from the port. This would also make it easier to sequence sending a request, and then getting the result.
  • Use a port watcher script to transfer data from the port to stdin, stdout. I'm told that screen can be setup to do that in the background, with another call to screen in the foreground passing data to that thread for transmission.
@JamesNewton JamesNewton added the bug Something isn't working label Jul 25, 2022
@JamesNewton JamesNewton self-assigned this Jul 25, 2022
@JamesNewton
Copy link
Owner Author

Easy hardware fix: Add a 10uF capacitor between the reset pin and the ground pin. OR add a 100 ohm resistor between the reset pin and the +5 pin.
https://forum.arduino.cc/t/stop-reboot-on-serial-connection-how/370507

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant