New Speedometer PWM #3
Labels
No labels
High Priority
bug
duplicate
embeded
enhancement
net admin
software
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 1 hour
Due date
IshaChaudhari
1 hour
No due date set.
Dependencies
No dependencies set.
Reference
MST-Solar-Car-Team/Task-Tracking#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We got the speedometer in at the end of last semester. We need to figure out how to properly interface with it. The product listing says it used PWM for communication, which should be reasonably easy to get working using the teensy-rs library.
For whoever takes this task, your goal is to find the proper PWM rate to move the speedometer in 1mph intervals
@IshaChaudhari I found a PWM example from the imxrt-hal git repo (same one used by the teensy-rs library), it should work exactly the same on our setup. I will also leave some other helpful links below. Hope this helps!
@BryceReynolds I found all the interrupts listed in the ral. Because we're using sub-module
1_0we should use thePWM1_0interrupt. Also the logic for the frequency needs to be tweaked a bit but I think I've figured out how to do that.The main problem we were having last time was the speedometer wasn't accepting current from the other side of the power supply. After doing some research I think I've concluded that its most likely 12v and it does need to share a ground. We will most likely need to setup some sort of transistor contraption to control the 12v lane. (we'll leave that to electrical to figure out). For the sake of testing we should try supplying it with 12v from the same channel to see if it will go to 100%.