jlthev / smoke-detection-113

Compilation of code used in the ENGR113 First Year Design course.
1 stars 1 forks source link

Normalize Gas Sensor Serial Inputs #1

Closed jlthev closed 3 months ago

jlthev commented 3 months ago

https://github.com/jlthev/smoke-detection-113/blame/1874bb82df232731512dad80a96d859740a392e6/arduinosmoke.ino#L27-L28

The sensors often start with a different analog reading as their baseline level. Create a function to compare readings after they stabilize and reference in the if-else statements at the bottom of loop().

File: arduinosmoke.ino

jlthev commented 3 months ago

This could also potentially be computed in a dedicated python file; arduinosmoke.ino sends the data via serial communication to a normalization.py file (ROS publisher), which then sends data elsewhere.