Hello I have a homework about using strain gauges. I have done the strain gauges part and i measure the weight correctly. But my project is that: i want to fill 200 grams of water to the glass that i have putted on the scale. When the weight of the water reaches to 200 grams i want it to stop filling. I use a 5V water pump to do it.
My problem is that: When the pump is working arduino measures the weight not correctly (-300 grams and it changes) because of the current pump uses.
I give power to arduino by usb port and to motor another 5V power supply. I have connected arduino's GND to the 5V power supply's GND. And i use N channel MOSFET IRFZ44N to control the pump. I have connected GATE to D3 and DRAİN to GND of the pump and SOURCE to the GND of the arduino and the power supply.
I need some recommendation to solve this problem. Thanks for reading.
Welcome to the Forum! Read the forum guidelines to see how to properly ask a question and some good information on making a good post.
You will get faster and better help if you post all your code as requested by the forum guidelines. Also please describe what the hardware do you use. Photos that clearly show your wiring can also be very helpful.
Which Arduino? Do you have a diode in parallel with the pump to absorb kickback spikes? Do you have a ceramic capacitor, 10 to 100nF in parallel with the pump to absorb brush noise? Do you have the Arduino GND connected directly to the MOSFET source terminal so it is less likely to pick up noise from the pump power supply? Do you know the IRFZ44N is not a logic level MOSFET and the Arduino's 3.3 or 5 volt output may not turn it fully on?