- Fri Jan 26, 2018 9:04 am
#198066
Hi,
I hope someone will be able to shed some light on my mystery...
I have a setup with a loadcell connected to an arduino via an HX711 breakout board.
The setup as been calibrated and works very well.
Step two in my master plan is to start measuring, switch on a relay, and keep it on until the weight measured exceeds a certain point.
The strange thing is that as soon as I switch on the relay, the loadcell measurement changes by 2 grams (without any actual weight having been added to the scale yet).
What is going on here? Things I can imagine:
- The relay clicking somehow throws things off (unlikely)
- The fact that I apply current to the relay circuit somehow interferes with my measurement
I've played with the moment and delays surrounding the tare() call I make to the scale.
It is clear that if I first tare() and then switch the relay I have issues, but if I first switch and then tare() the scale works fine.
Any thoughts?
I hope someone will be able to shed some light on my mystery...
I have a setup with a loadcell connected to an arduino via an HX711 breakout board.
The setup as been calibrated and works very well.
Step two in my master plan is to start measuring, switch on a relay, and keep it on until the weight measured exceeds a certain point.
The strange thing is that as soon as I switch on the relay, the loadcell measurement changes by 2 grams (without any actual weight having been added to the scale yet).
What is going on here? Things I can imagine:
- The relay clicking somehow throws things off (unlikely)
- The fact that I apply current to the relay circuit somehow interferes with my measurement
I've played with the moment and delays surrounding the tare() call I make to the scale.
It is clear that if I first tare() and then switch the relay I have issues, but if I first switch and then tare() the scale works fine.
Any thoughts?