Hi, I was looking for some easy noob way to hook up a DS18b20

Hi,

I was looking for some easy noob way to hook up a DS18b20 to smoothie. I’ve read I2C is not an option, so, where can I find info about hooking up thru nano or Attiny as SPI? Where can I find a guide of using SPI with Smoothie?

Thanks.

I have considered doing the same and backed off because:

  1. Potential to need firmware changes to get display and alarms like I wanted them.
  2. The potential for controller hangs to miss water problems. I don’t want anything but hardware in my coolant control or my laser enable path.

So I wimped out and just got a temp monitor from amazon. It monitors and alarms within temp ranges and you could control a temp device like heater in the winter. It runs on 12vdc and has a nice display and bezel.

I’ve got one similar but uses 10k thermistor instead ds. Now I’m improving an attiny with ds18b20, (offtopic: or maybe a nano to track laser hours too). But i feeled the smoothie board underused and miss some documentation on smoothieware site about spi interfacing

@Jorge_Robles Yes, I agree it seems wasteful for that board not to do such things, like temp, interlocks, hrs etc. But I decided not to get into the smoothie FW business.
I have many time thought about an arduino-based control panel that does all the external accessories as an add in. I know there are a few out there already …
I decided to spend my time on other K40 problems :slight_smile:

+Peter van der Walt ya, that kind of thing… its not about what cool thing can you do its were do you want to spend your “cool maker time” :).

This would require adding some new code to Smoothie, however not too much.
Smoothie already abstracts away temperature sensors, so you would need to add a new temperature sensor, and teach that new class to read the sensor.
This isn’t too much work, depending on your exact skillset of course.

I’m pretty sure in the very wide family of thermistor around, there are some with enough accuracy in the 20-40°C range, and that would be usable without modifying Smoothie’s code, so I think that would be a preferable alternative, but if you really want to use the 1-wire sensor, there is nothing preventing you of doing so, you just need to do the code.

Ok thanks @Arthur_Wolf ​, I was thinking a generic way to hook the nano emulating the thermocouple avoiding touch smoothie code.

@Jorge_Robles That would work too.