UVicRocketry / Xenia1-Flight-Computer

2 stars 4 forks source link

X1-AV-38 Add HX711 #74

Open klemie opened 2 years ago

klemie commented 2 years ago

Description

Use the driver (HX711Multi.py) to get 12 input strain readings put in separate file

  1. import HX711Mutli
  2. Create a private attribute in gpioReader __setup as an instance of an HX711 and do the setup functions (trace, etc)
  3. Create a private function in gpioReader called __readHX711s and return a list of 12 strain gauge values

you will have to make error catching for if the value collected is to big or one or multiple the strain gauges doesn't send data see #79 for more info.

  1. Test your code on the pi with the test rid that JJ created consult @jjderooy how to set it up

Acceptance Criteria

Dev Notes

[for assignee]

Linked issues

56

81

jjderooy commented 2 years ago

More context: create an instance of the HX711Multi class and pass it a GPIO pin for the clock, and a list of 12 GPIO pins for data (Look at Alex's wiring diagram to figure out which GPIO pins to use). Then use the build in methods like tare(), isReady() and read() to read strain data from the sensors. There is lots of documentation at the top of the HX711Multi.py file.

krislemie commented 2 years ago

More context: create an instance of the HX711Multi class and pass it a GPIO pin for the clock, and a list of 12 GPIO pins for data. Then use the build in methods like tare(), isReady() and read() to read strain data from the sensors. There is lots of documentation at the top of the HX711Multi.py file.

Thanks JJ!