I am looking for some ideas to toss around for a project I am doing that will watch a hall effect fluid meter sensor (just a pulse which I conditioned to go to 5v to 0) and respond with correct dosing. Right now I am watching an interrupt on portb2 of a 18f4550 for one second and counting the pulses.
For controlling the pump, I was considering using the PWM to pulse the pump, which has the following conditions, 28ms and no more than 180 pulses per minute (or 3hz). I cant get the pwm to run that slow (yet) and also during the interrupt of one second watching the flow input, it ties up the processor...so what other than PWM is an option that would keep the pump running...and what other options would i have for counting the input pulses? My problem was the flow meter can run from 0 (stopped) to 30k pulses per minute (500hz) yea, it clips along...I have the pic clocked at either external 16mhz or internal is OK too I don't need any speed. I selected this pic due to later on using USB..anyway ask questions, let me know thoughts don't be too harsh on me LOL thanks! Chuck
For controlling the pump, I was considering using the PWM to pulse the pump, which has the following conditions, 28ms and no more than 180 pulses per minute (or 3hz). I cant get the pwm to run that slow (yet) and also during the interrupt of one second watching the flow input, it ties up the processor...so what other than PWM is an option that would keep the pump running...and what other options would i have for counting the input pulses? My problem was the flow meter can run from 0 (stopped) to 30k pulses per minute (500hz) yea, it clips along...I have the pic clocked at either external 16mhz or internal is OK too I don't need any speed. I selected this pic due to later on using USB..anyway ask questions, let me know thoughts don't be too harsh on me LOL thanks! Chuck