tecronin
Junior Member

Posts: 91
Raspberry Pi: Yes
|
Post by tecronin on Dec 28, 2021 20:20:37 GMT -8
i've got a Pi2Grover on a pi-zero with ADC board connected to I2C 0 port.
-------------------- Channel 0 =0.262625V raw=0x 7F4 dec=2036 Channel 1 =0.570750V raw=0x1215 dec=4629 Channel 2 =0.554125V raw=0x11AC dec=4524 Channel 3 =0.551625V raw=0x1197 dec=4503 -------------------- -------------------- Channel 0 =0.218000V raw=0x 6A1 dec=1697 Channel 1 =0.554625V raw=0x12CF dec=4815 Channel 2 =0.553625V raw=0x11A9 dec=4521 Channel 3 =0.554375V raw=0x1174 dec=4468 -------------------- -------------------- Channel 0 =0.261125V raw=0x 7EC dec=2028 Channel 1 =0.576000V raw=0x1175 dec=4469 Channel 2 =0.558625V raw=0x1176 dec=4470 Channel 3 =0.555000V raw=0x1170 dec=4464 --------------------
i would think that the unconnected ports should read 0.
|
|
tecronin
Junior Member

Posts: 91
Raspberry Pi: Yes
|
Post by tecronin on Dec 29, 2021 20:43:01 GMT -8
|
|
|
Post by SDL on Dec 30, 2021 10:40:06 GMT -8
The other inputs are floating and will give somewhat random numbers, all under about 1V. No problem.
BP
|
|
tecronin
Junior Member

Posts: 91
Raspberry Pi: Yes
|
Post by tecronin on Jan 1, 2022 21:21:59 GMT -8
looking as the seeed hat it's a 12bit ADC, not sure what affect that has... using it i get values within that range
I see in the test there's a gain value that effects the digital value, and sample rate.
not much detail into the api and haven't dug deep in the driver code.
how do i determine what the floor value is (would this be in voltage?) and also the scale.
i've browsed the tutorials but nothing is jumping out to me.
sorry if not being clear on terminology.
|
|
|
Post by SDL on Jan 3, 2022 9:24:46 GMT -8
I'd move over to the seeedstudio forum for this question. There's something strange about only getting 0-1023 for a 12 bit sensor. Should be 0-4095. if it is unsigned.
They are doing something weird.
BP
|
|
tecronin
Junior Member

Posts: 91
Raspberry Pi: Yes
|
Post by tecronin on Jan 6, 2022 18:03:45 GMT -8
yeah, thought that seemed weird.
will do
any plan of you doing a loudness/sound sensor?
|
|
|
Post by SDL on Jan 6, 2022 18:16:13 GMT -8
Not at this point. Not enough demand!
BP
|
|