Tag: Sensors

PIR Sensor and Relay Switch to turn on a Light

PIR Sensor and Relay Switch to turn on a Light

Ever wonder how a motion detector is used to turn on a light? Take a look at this graphic (made with Fritzing). It shows the circuitry that uses an STM32F103C8T6 microcontroller to control a PIR sensor and relay switch to turn on a Light. Get the Fritzing source code for the above image HERE (in …

Continue reading

12V to 5V Sensor Circuit

12V to 5V Sensor Circuit with DHT11

A number of sensors are powered via 12 Volts. Some, however, need 5 Volts.  To power a remote DHT11 temperature sensor, I created a 12V to 5V sensor circuit. This is the wiring diagram: Get the Fritzing code for it HERE.       The DHT11 needs 5 volts,  ground and data. It plugs into …

Continue reading