Water pump and strain gauges with arduino

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.

Read the sticky posts at the top of the forum section before you post there.

I am sorry but i couldnt find anything

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.

@muhammetaltuncu

Your topic was moved to its current location as it is more suitable.

Could you also take a few moments to Learn How To Use The Forum.

It will help you get the best out of the forum in the future.

Thank you

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?

Code and schematic please.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.