-
Notifications
You must be signed in to change notification settings - Fork 27
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
Comments
Can do! Python makes JSON wrapping super easy |
Leaning towards this Ard Json library, as it appears most widely used. Currently have not clue how to use it. |
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). |
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? |
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 |
I forgot it would lock up w/o connection. Iwas being cruel, and just had
serial pins going from Pi usb to O-scope. Now trying the TX/RX pins (via
logic level shifting). We'll see.
…On Sun, Feb 4, 2018 at 9:17 PM, streadgold ***@***.***> wrote:
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
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#35 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AXb3jhN1VldBGvfkHZfZB8WX001lH0K0ks5tRnKtgaJpZM4RV7J_>
.
|
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. |
That is quite swell.
…On Feb 6, 2018 8:34 PM, "streadgold" ***@***.***> wrote:
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#35 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AXb3jknptki4b9e42CfiDsTCN0XW04wNks5tSQuigaJpZM4RV7J_>
.
|
Closing, I believe our tests confirm we have this problem down |
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/
The text was updated successfully, but these errors were encountered: