relayEquipmentManager icon indicating copy to clipboard operation
relayEquipmentManager copied to clipboard

Reading raw analog sensors on BeagleBone Black.

Open zombielinux opened this issue 3 years ago • 7 comments

I've got a BeagleBone Black, with a very nice breakout cape.

Connected to it, is a 10K NTC thermistor in a voltage divider configuration.

I'm not seeing a way in the UI to configure the onboard ADCs to actually read the temperature.

Is that configured in the json directly?

zombielinux avatar Jun 11 '21 16:06 zombielinux

Is this an MCP cape on SPI?

rstrouse avatar Jun 11 '21 22:06 rstrouse

Is this an MCP cape on SPI?

No. Its directly attached to the ADC GPIO pins (specifically P9.36)

zombielinux avatar Jun 11 '21 23:06 zombielinux

Yeah we are not reading any of those ADC pins. I looked at those originally and the but I don't have a Beagle. They bark too much. I2c is supported as well as SPI.

rstrouse avatar Jun 12 '21 00:06 rstrouse

Ah. I see. Would that be terribly difficult to implement? I can hack away a little at it myself, but no one knows their code like the author.

I’d be glad to test implantations as they’re developed.

On Fri, Jun 11, 2021 at 8:18 PM rstrouse @.***> wrote:

Yeah we are not reading any of those ADC pins. I looked at those originally and the but I don't have a Beagle. They bark too much. I2c is supported as well as SPI.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rstrouse/relayEquipmentManager/issues/12#issuecomment-859966748, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABN74NG6QYFI7U5WIDNUL3TSKRVTANCNFSM46RDHJXQ .

-- No trees were harmed in the sending of this message, but a rather large number of electrons were terribly inconvenienced.

zombielinux avatar Jun 12 '21 00:06 zombielinux

I would bet that it is file system based so it probably has a file that it writes in devices somewhere. Maybe sysfs.

rstrouse avatar Jun 12 '21 03:06 rstrouse

You do know those pins have some power limits.

rstrouse avatar Jun 12 '21 03:06 rstrouse

It definitely does have some sysfs interfaces. And yes. They have some power limits, but there are several examples of measuring a 10k notch thermistor without issue. Other devices may require some additional circuitry.

On Fri, Jun 11, 2021 at 11:34 PM rstrouse @.***> wrote:

You do know those pins have some power limits.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rstrouse/relayEquipmentManager/issues/12#issuecomment-859991067, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABN74LF2F4KLDC4FBIGTDDTSLIV5ANCNFSM46RDHJXQ .

-- No trees were harmed in the sending of this message, but a rather large number of electrons were terribly inconvenienced.

zombielinux avatar Jun 12 '21 10:06 zombielinux