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

Talk to teensy hat via Serial or I2C #2

Open
gigawatts opened this issue Jun 8, 2020 · 2 comments
Open

Talk to teensy hat via Serial or I2C #2

gigawatts opened this issue Jun 8, 2020 · 2 comments

Comments

@gigawatts
Copy link

https://github.com/jwatte/donkey_racing/blob/master/teensy_hat_firmware/teensy_hat_firmware.ino

Your documents and some of the code comments list being able to send commands from the Pi to the Teensy to get feedback, to start driving, or to shut off the hat's power.

I've tried configuring the Pi's Serial port per these instructions and connecting to the /dev/ttyS0 port (Pi 3) with minicom, but I get no output, and no reaction.

If I am reading the code correctly, sending a "Q" should return some status, including battery voltage?

Can you give some examples on how to talk to the Teensy, from the Pi via the Serial or I2C port?

@gigawatts
Copy link
Author

gigawatts commented Jun 8, 2020

Also, I must be missing some instructions somewhere (not mentioned anywhere in the google doc I linked) on how to get the donkey software to talk to the Teensy to control the ESC + Servo. I am using a Teensy LC, and your PCB is dated 2018-01-22. It currently bombs out when running any donkey command, since it's expecting to talk to a PCA 9685 Servo Driver.

Fair warning, I have not updated my car's Pi to the latest donkey software, I'm still running donkey v2.2.1. If the answer to getting this all working is to just start over and run the latest, I can do that, but figured I would ask about the existing version I already had installed first.

EDIT: I spoke too soon, I just found the "JHat" actuator in the github codebase, and its missing from my local car's codebase, so update it is!

@jwatte
Copy link
Owner

jwatte commented Jun 9, 2020 via email

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

No branches or pull requests

2 participants