climateguard / RadSens

Arduino library for radiation detector module RadSens to simplify integration into compatible platforms.
GNU General Public License v3.0
51 stars 17 forks source link

Seeing spikes to 32,000 CPM #10

Closed krbaker closed 2 years ago

krbaker commented 2 years ago

I fairly often see spikes to 32,000 CPM. I'm guessing this is a math issue with either a counter wrapping or unsigned value going negative. I will dig more but just flagging this in case it's obvious to anyone already in the code. Great work.

Normally seeing around 30cpm

bakerkj commented 2 years ago

I am seeing something very similar. Jumping to 32,016.

bakerkj commented 2 years ago

I wonder if this is a related or the same issue here https://github.com/maaad/RadSens1v2/issues/3

maaad commented 2 years ago

Try this https://github.com/maaad/RadSens1v2/issues/3#issuecomment-1289578773 as a workaround for spikes with 1v5

octopolyr commented 2 years ago

Hi! We've recieved some same issues, but trouble not on our side. I'll close the issue with merging the pull request in 1-2 days @krbaker @bakerkj