Just to give a bit of background: These sensors usually work by attaching a resistor to a piece of metal that stretches. As it moves, it stretches the resistor and changes the resistance, but only by a tiny amount.
It makes it quite hard to sense with a microcontroller without any external components - and once you've added amplifiers and things externally it's probably easier to just buy a module that is meant for the job.
To make matters worse, the resistance not only changes with the weight, it changes with temperature as well (and probably other things like moisture and atmospheric pressure). It wouldn't normally be a big deal, but because you're measuring such small differences it really adds up.
So normally there's a wheatstone bridge arrangement of resistors on the sensor itself such that everything balances out nicely and resistance can be read accurately. Unfortunately yours doesn't seem to have that - so while with some effort you could wire it up through an op-amp or feed it directly into an accurate ADC, you might find that it wasn't actually that accurate anyway.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks!
Just to give a bit of background: These sensors usually work by attaching a resistor to a piece of metal that stretches. As it moves, it stretches the resistor and changes the resistance, but only by a tiny amount.
It makes it quite hard to sense with a microcontroller without any external components - and once you've added amplifiers and things externally it's probably easier to just buy a module that is meant for the job.
To make matters worse, the resistance not only changes with the weight, it changes with temperature as well (and probably other things like moisture and atmospheric pressure). It wouldn't normally be a big deal, but because you're measuring such small differences it really adds up.
So normally there's a wheatstone bridge arrangement of resistors on the sensor itself such that everything balances out nicely and resistance can be read accurately. Unfortunately yours doesn't seem to have that - so while with some effort you could wire it up through an op-amp or feed it directly into an accurate ADC, you might find that it wasn't actually that accurate anyway.