apollo-ng / picoReflow

Turns a Raspberry Pi into a universal, web enabled Reflow Oven Controller
202 stars 118 forks source link

MAX38155 support using kernel SPI drivers #24

Closed 2bitoperations closed 6 years ago

2bitoperations commented 6 years ago

The raspi in-kernel SPI driver has gotten really easy to configure these days. That, coupled with its lower CPU usage vs bitbang prompted me to suggest this change.

I've added some notes in the readme as well as the example config file on usage & what default pins need to change (because they'll collide with SPI pins on at least the rpi 3).

Also added a configurable thermocouple polling interval as well as "softer" exceptions from thermocouple reads - the exceptions will be caught and logged rather than bubbled up to kill the daemon.

chron0 commented 6 years ago

Awesome, nice PR so far while reviewing it. Using kernel SPI will probably be way better in terms of stability/efficiency. Thanks, it's a great addition.

chron0 commented 6 years ago

Do you have a pin mapping and or photo of the wiring? It's great to have kernel SPI support and I'd like to extend the documentation to cover it as well (with wiring diagrams for people who still feel a little unsure due to lack of confidence/experience). I can just take the values of the conf file but I'd rather have the real world mapping of a setup that proved to work (yours) :)