highflyers / HF-AQMM

MIT License
0 stars 1 forks source link

Results processing #20

Open maciejgaleja opened 7 years ago

maciejgaleja commented 7 years ago

ADC readings are filtered, then it can be processed, before sending to user. Generally, we have three possibilities:

karolha commented 7 years ago

We've got mesurement every 1912 clock cycles (239 cycles measurement time * 8 prescaler). Running all the calculations on board would be the best way, but I don't think it would be possible with that big frequency. On the other hand with this frequency we've got about 1570 measurements per second, which is more than enough. We can calculate concentration values for smaller number of measurements, which I think will work correctly.

maciejgaleja commented 7 years ago

OK, we'll have to put some effort in configuration via UART (#11) and some math operations (it doesn't really matter if we implement it for MCU or PC).