I was thinking on how to go about using an ADC with a raspberryPi4 for a project. It's a simple machine so I'd be trying to keep it light on hardware. First, I'm not really sure what RP4 support looks like in MK, LCNC has a hal-pi-gpio driver but I'm not sure if hal GPIO works on a rpi4 (or anything else), maybe somebody can fill me in.
Anyway assuming that I can get hal running the GPIO's, I was looking to no avail to find a component that worked similarly to this one https://github.com/LinuxCNC/linuxcnc/blob/master/src/hal/components/max31855.comp That "bitbangs" the SPI bus of that thermocouple chip and that one specifically probably because adafruit offers a little board for it https://www.adafruit.com/product/269. There's plenty of SPI ADC chips out there though I don't know of many little breakout boards for them, but they're easy to implement anyway. It'd be great to have a hal component to handle this. Not something I can write since I'm no programmer, but a somewhat generic hal component that does this would enable ADCs simply on just about anything that has some pins available to hal on it. I was actually wondering if there were any similarities between doing this and the MKSOCFPGA nano-adc firmware module, since I believe the ADC on a DE(1)0-nano board is also an SPI chip. The hal component that me and a friend came up with https://github.com/machinekit/machinekit-hal/blob/master/src/hal/components/vari_bit_adc.comp to work with nano-adc could be incorporated. Anyone else think this is a good idea? -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/cd06c9b3-2011-4130-8342-4bfa26970477n%40googlegroups.com.
