DIY FSR Bed sensor

For those users who already have the FSRs and an ESP32 and do not want to purchase an Elevated Bed Sensor:

You can buy one or two NE555 Pulse Module Rectangular Square Wave Signal Generator (I bought one like the following photo but any should work):

Solder your FSR in parallel to the potentiometer that controls the frequency. I use mine in 1kHz-10kHz mode but ymmv. You may even try to power the circuit with 3.3v and it might work, if not you will need a level shifter. Connect the pulse generator output to GPIO pins 10 and 20 and flash your esp32 with the same project from ElevatedSensors:

You will need to play with calibrate_100 and calibrate_0 yaml values from monitoring esphome logs to proper calibration.

I personally would buy the ElevatedSensors hardware because it is more robust as everyting is integrated in one circuit, but it is somewhat expensive for me considering my location and that I’ve had already most of the parts.

3 Likes