UVicRocketry / PDP-Monitoring-System

The Propulsion Development Platform (PDP) Monitoring System is a web-based application that allows users to monitor the status of the engine controls and instrumentation. The PDP is a testbed for the development of propulsion systems, and the monitoring system is used to control valve actuation, monitor sensor readings, and record data.
0 stars 0 forks source link

[3.3] Read Pressure Transducers #11

Closed klemie closed 1 month ago

klemie commented 1 month ago

Description

Back to basics. Wire one pressure transducer to the labjack and get a optimal reading. This includes having the correct gain offset to get a pressure that seems nominal.

Acceptance Criteria

QA Notes

See read_labjack.py for implementation details. In short, the wrong bits in the channel config byte were being set in the previous attempts at reading differential. This is now corrected and made more simple to use with modes that are OR'd together before passing to streamConfig().

An additional issue was a hardware failure (multiplexer IC on the Mux80 let the magic smoke out) which made debugging the software much harder than it should've been. This has also been resolved now.

Gains and offsets were taken from the Kulite calibration sheets. A small unit conversion modification was made because they give values in psi/V and we want SI units. Since the sensors run at 10V nominal and we are now running at 5V (the boost converter used to generate 10V was very noisy), the values were multiplied by 10V/5V = 2.

Sensors were tested at ambient pressure and read about 18 psi (should read ~15), and using the cheapo regulator in the room appear to be accurate to within a couple psi. Noise from the sensor readings is about +-0.2psi while the valve cart controls system is powered off, and +-5psi while it is active likely due to excessive noise.

Linked issues

jjderooy commented 1 month ago

@klemie what are dev notes?

klemie commented 1 month ago

@jjderooy Honestly these are pretty unnecessary. Its similar to comments on a PR, just document any weird things that happened when developing