Skip to content
mstemmer edited this page Jan 3, 2021 · 6 revisions

Temperature & Humidity Sensor

The DHT22 is quite accurate, cheap and easy to use. See here for more details. I chose the model from AZDelivery. It already has the necessary resistor installed and is ready to use. Run it on 5V to get more reliable reading. The good thing about this sensor is that it can read both Temp & Humidity, but only once every two seconds. I am using two sensors and poll them alternatively, so I get read values every second. For best PID control, faster reading would be better and more accurate. So maybe the one-wire DS18B20 sensor might be better, but only reads temperature...guess will try at one point.

Stepper Motor

I purchased a simple stepper motor with 1.5A from Stepperonline. See data-sheet in the docs folder. It can be nicely controlled via the DRV8825 driver. Have a look here for a very detailed explanation.

Power Supply

I found an old Dell PSU which i converted. I removed the unnecessary power lines and just left the 12V I needed. So it simply looks cleaner. The advantage of this Dell unit is that it has a test switch. Once pressed, the unit turns on. So there is no need to "trick" the PSU into running without a mainboard attached.

MOSFET

After trying a few, I chose the IRLZ34N MOSFET to control my heating element. It is powerful enough to switch the 150 Watt heater and has a low enough gate voltage to be controlled via the RaspberryPi. The 3.3V of the GPIO pins are not enough though to fully switch the MOSFET under load. Therefore a amplify the gate voltage to 5V. Then it runs fine. It gets a bit warm and so I installed a heat sink and 12V mini-Fan on its back.

RaspberryPi Hardware Starter kit

I can highly recommend getting some of the Freenove starter kits. They come with all the necessary parts to start up your new DIY project and are great, when you are new to this world like I was. The kits also come with good tutorials for both hardware and software setup.

Further reading

Part Description
DHT22 Link
DRV8825 Link
PID controller PID