You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ADS1X15 chips have two modes: single-shot and continuous. Single-shot powers down between reads, so the maximum read rate is around 33 times per second (not verified). Reading at a higher rate requires continuous mode.
In continuous mode the inputs must be selected and enabled. After that the fsr can be read at anytime and up to the maximum rate in the spec sheet.
Currently the code doesn't show how to do this.
The text was updated successfully, but these errors were encountered:
In continuous mode only the selected inputs can be read.
defcontinuous_read(bus,addr)dowith{:ok,<<val::signed-size(16)>>}<-I2C.write_read(bus,addr,@sensor_register,2)doval=val/16# equivalent to val >> 4ifval>2047do# 0x7FF{:ok,val-4096}# double 2048else{:ok,val}endendend
The ADS1X15 chips have two modes: single-shot and continuous. Single-shot powers down between reads, so the maximum read rate is around 33 times per second (not verified). Reading at a higher rate requires continuous mode.
In continuous mode the inputs must be selected and enabled. After that the fsr can be read at anytime and up to the maximum rate in the spec sheet.
Currently the code doesn't show how to do this.
The text was updated successfully, but these errors were encountered: