-
Notifications
You must be signed in to change notification settings - Fork 8
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
Comments
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 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! |
I have no idea whether it's supported on latest!
The default firmware on the Teensy should, at a minimum, just look like a
PCA9685, e g, it should be visible on the I2C bus, assuming the firmware is
loaded into the Teensy. (And assuming the LC supports I2C slave mode -- I
can't recall offhand, but it seems reasonable that it would.)
Sincerely,
Jon Watte
…--
"I find that the harder I work, the more luck I seem to have." -- Thomas
Jefferson
On Mon, Jun 8, 2020 at 4:29 PM gigawatts ***@***.***> wrote:
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADVU5LX7UMUAHJGS6KDVBDRVVX6PANCNFSM4NYYL5OA>
.
|
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?
The text was updated successfully, but these errors were encountered: