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

Passing data (joint angles, etc) from RasPi to Ard #35

Closed
juggler2000 opened this issue Jan 8, 2018 · 9 comments
Closed

Passing data (joint angles, etc) from RasPi to Ard #35

juggler2000 opened this issue Jan 8, 2018 · 9 comments

Comments

@juggler2000
Copy link
Collaborator

I was thinking one way to pass data for joint angles, etc, is via the .json standard, which uses named pairs: name, then value. We could perhaps use an existing json library, like this: https://arduinojson.org/

@SupaTreadz
Copy link

Can do! Python makes JSON wrapping super easy

@juggler2000
Copy link
Collaborator Author

Leaning towards this Ard Json library, as it appears most widely used. Currently have not clue how to use it.
https://arduinojson.org/

@juggler2000
Copy link
Collaborator Author

Does the Pi send data over serial by default, or do I need to hit "transmit". GUI seems to lock up every time I hit transmit (the GUI is unresponsive, requiring hard reboot).

@streadgold
Copy link
Collaborator

If the Pi is locking up that means the Arduino isn't connected or it isn't detecting the Arduino. When booting the Pi, along with the kivy loading stuff it should list the connected serial port if there is one. Also in the error log file (in logs folder) it says if a successful connection occurred, if there are three serial connection errors listed it didn't connect to anything.

This is connecting one of the Pi USB ports to the Arduino USB port right? Try another USB port on the Pi?

@streadgold
Copy link
Collaborator

Also I've only managed to get it working with USB to USB, so debugging might be tricky. Still working on USB to TX/RX pins

@juggler2000
Copy link
Collaborator Author

juggler2000 commented Feb 5, 2018 via email

@streadgold
Copy link
Collaborator

Just FYI - I just tested my Mega connected to the Pi over USB and outputting serial to the computer over the TX1/RX1 pins. The code is in the Arduino folder. Not sure what needs to change for that to work on the your board but the concept works fine.

@juggler2000
Copy link
Collaborator Author

juggler2000 commented Feb 7, 2018 via email

@ISS-Mimic
Copy link
Owner

Closing, I believe our tests confirm we have this problem down

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants