Interesting! I’m actually using a shared resistor with 3 FSR for my kid (only one person, the bed is quite big but not the kid: top, middle, bottom of the bed) and it’s working like a charm.
What is the drawback/caveats/issues with this configuration?
Thanks!
I finally replaced the door sensor-based bed sensor with another fully custom Zigbee model. This one is an older avr Arduino tied to an xbee. The other one was working well, just wanted to add some features. This design has a built-in light controller, DHT22 for temp and humidity as well as a FSR for each one. Instead of using HA for automating presence, that’s controlled using the analog output endpoints to set a threshold voltage. It’s been running for around a week, and I’m pleased with it.
Somehow, I failed to get a pic of the circuit, but it’s a standard self-etched pcb with n channel MOSFETs for the RGBW light control.
Interference between sensors.
THis might be interesting for those not wanting to solder. Looks like Interlink makes a model that has female connectors with a housing (model 34-23845). Has anyone purchased this model?
You can find it on Digikey as well.
Edit: For the record, I haven’t purchased this and cannot 100% guarantee this will work without soldering. It reads like that, but I was hoping to confirm.
Nice. Cheap too.
Those sensors work great. They are actually the ones I’m using for Bed Presence for ESPHome, which is officially available for purchase! As to not hijack this thread anymore, head over to the Bed Presence forum post for further discussion.
The only caveat to the price is that Interlink has a minimum order quantity of 4 sensors and $10 shipping and handling. So if you only want 1 or 2, it’s less appealing. They cost around $17 on digikey, but it looks like they don’t have any in stock.
Great, thanks for the info! Glad to know they work. I’ll probably give these a try then. I need to figure out exactly how I want this to look and work before pulling the trigger.
As an aside, I’ve found I have a much higher WAF when it’s not a bunch of wires and boards hanging around. I did give an ultrasonic sensor I had lying around a test to see if that would work, measuring the distance from the bottom of the slat to the floor. It… sort of worked. Just not as reliably as I wanted. But the proof-of-concept received a solid “Oh, that I like” when it turned on the lightstrips as a nightlight for walking around the bed, with the promise of further automating the nighttime routine.
Gah, all of you buttheads must have cleaned them out haha. They had a bunch when I had posted this originally. Oct 1 is the restock date. Not bad. Gives me time to pull together a few other projects and put in an order.
I use this solution for over 2-years and it works just AMAZING, probably one of the best automation-ideas and solution in this forum. As of now I use an ESP32 and hooked up the FSR-sensor to the 3.3V voltage output, A0 and GND, between 3.3V and A0 a resistor of course.
However I want to use my newly bought WESP32 https://wesp32.com/ which is powered by POE. As of the schematics it can provide 5V V-OUT but not 3.3V.
I use this sensor Force Sensitive Resistor - Long - SEN-09674 - SparkFun Electronics
I am not much an expert on electrical things though. Do I understand correctly that I can hook-up the sensor also to 5V and just the resistors value varies compared to 3.3V?
I dont want to fry anthing and would be glad to get some assistance from you
A quick glance at the datasheet suggests that V+ is 12 volts by default, and 5 volts if you solder a jumper. However, there is also a 3.3v pin. “3.3 V output with up to 6 W output power available (power taken from V+)”
The FSR itself could handle the 5v fine, but you don’t want to apply 5v to the ADC input. Unless I’ve misunderstood the datasheet, use the 3.3v output.
thanks a lot for your reply, you are right. actually I just noticed that Pin also delivers 3.3V so it should be fine. I wonder why I didnt see that before…
2
(this comment was moved from another topic about the Elevated Sensors pre-built bed sensors)
I was testing a FSR today, hoping to build a DIY version of one of these, and at one point, I lifted myself out of bed, my full bodyweight (about 70kg) pressing onto my hand for a moment. As luck would have it, my hand on the mattress was right above the resistor on its slat, and once that happened, my multimeter started giving wildly incongruous readings to what it was doing before.
That’s a problem for another thread, but I bring it up here because it causes me to wonder: what are the weight limits for the FSRs on your device, and would I need to worry that pushing down on the mattress just above the sensor might overload it?
Sound like to me you have a bad connection or solder joint…
My FSR goes up to 10MΩ. That gives one a huge range to work with.
What is the spec of your FSR and what is the value of your other resistor in the voltage divider/bridge?
The datasheet doesn’t explicitly mention a max pressure. It claims to saturate and not be able to measure anything above 150psi-200psi, but that is not when it would be physically damaged.
I went ahead and tossed a clamp on my test setup. That clamp claims to put around 600 lbs. of force when fully cranked down and it’s definitely not putting that force over an entire square inch. There was no damage to the sensor and it continued to report consistent values.
Add in a mattress on top spreading the load over the sensor, I don’t think anyone is going to be able to damage a sensor that is correctly mounted to a slat.
Thanks for the very thorough response! That’s more than sufficient for me to feel confident.
When I’ve got just a little more wiggle room in my budget, I’m excited to grab one of your sensors!
Hi team, apologies but this is my first DIY ESP project (built entirely from the ground up).
I’m slightly confused by the resistor bit.
I’ve taken my average measurements per the instructions but my multimeter has lots of different Ω settings, 2M, 200k, 20k, 2k and 200. Is there a right/wrong one to use?
Using the 20k one I get an average value;
Rin_bed - 0.67
Rout_of_bed - 2.84
So I think R1 = 1.902 ?
If that is then right what resistor am I meant to use? A 1Ω, 2Ω or another?
Sorry, I appreciate this is probably a very simple/basic question for many but this is my first real attempt at basic electronics with 0 experience. I’ve done research but it’s all pretty overwhelming!
If you are on a k Ohm range on your meter then the reading is in kilo Ohms. So 1.9K Ohms, aka 1K9, or 1900 Ohms.
1.8K or 2.0K are the closest E24 series values, either will do.
Thank you Tom, I really appreciate the help (and this awesome project).
Edit (19/10); I finished this project earlier today - all seems to be working as intended. Such a great project and I’m super grateful to this community and Tom for stuff like this. Though, I feel ESP could be a slippery slope!!
Hi, just got a new mattress
I’m getting Rin= 0.9-1 MOhm when I’m on the bed but I’m not getting any values off the bed Rout
The multimeter only goes up to 200MOhm.
Anyway I could verify the Rout?
Btw, has anyone tried combining 2 units 600mm fsr strip into 1? I’d like for it to detect if I’m sitting on the edge. Not getting any reading with 1 600mm FSR positioned in the center of the bed
I’m using this resistor, and am having a great deal of trouble finding an English datasheet for it. It’s not yet installed, though; I’ve just been testing it under my bed with my multimeter and no other resistors in order to get a sense of the resistor values needed as described in this post.
What is the maximum value your multimeter can read in ohm?
And how is it connected? Crocodile clips may not be the best option.
What were your min and max readings, or is that what you’re saying is fluctuating wildly?