-
Notifications
You must be signed in to change notification settings - Fork 4
Hardware Bring Up
Hutton Grabiel edited this page May 7, 2024
·
1 revision
Potentiometers: Measures the resistance as it is rotated. Once calibrated, potentiometers know where they are and can report that.
ADC (Analog-to-Digital Convertor): Converts an analog signal (voltage) to a digital value (integer)
Encoders (Specifically quadrature encoders): A relative measure of rotation. There is no way to know the position from an encoder until you run some sort of calibration that measures the position.
For potentiometers
- Find ADC Lo and ADC Hi (using FakeCANBoard) to be calculated and then stored in the map for that motor in
real_world_constants.h
For encoders:
- Calculate the pulses per joint revolution (PPJR): Do this by getting the gear ratio to the encoder and the encoder resolution. Multiply these values together.
- Measure the joint values by running the joint to its limit (using a limit switch) and then measuring. How you measure depends on the joint you are measuring. If you can use a bubble level, do that. If not, figure something else out.