I would like a sketch written for an Arduino Nano. I want to control a stepper motor that is controlling the airflow through a butterfly valve. The stepper motor will open and close based on a variable input from a vacuum transmitter (0-5v). I want to use a PID loop in the code so that I can control the actions of the valve proportionately. I am trying to avoid(chattering) of the valve and rapid responses that may interrupt the process. I want to control a unipolar stepper motor with a L298n motor controller. The control wiring will be on pins D8,D9,D10,D11. I will take 5v. from the L298n and power the nano with it. The motors will be powered with 12v power supply.
Let me know if you have any questions.
15 freelancers are bidding on average $28 for this job
I have excellent knowledge in arduino interfacing. For luck i am working on a similar project. Also i can provide you with the schematic and pcb files on kicad.