Hello all,
I'm new here, and this is my first thread. I'm a mech. engineering student but
I'm only a year into my studies, so I have limited experience with reading and designing circuits, but here's what I'm trying to do:
-Use a varying 0-5v signal wire from a sensor
-Convert this signal to a 12v PWM driving a solenoid at 25Hz
I have found a couple of circuits that should allow me to achieve this, but I'm encountering an issue that I'm unsure how to resolve
I don't want the solenoid to cycle at all times. I would like to use pots to set some sort of scaling factor for the PWM conversion.
Example: Let's call sensor voltage Vs. I want to be able to scale the 0% and 100% duty cycle points up/down to achieve the following
-0% duty below a user set voltage
-100% duty above another user set voltage
-Linear scaling of Vs to duty between the two set points
Here are a couple of circuits that may be useful for me to begin with:
http://pcbheaven.com/circuitpages/Voltage_Controlled_PWM_Generator/ Seems to provide the inverse PWM signal that I am after. I need increased duty cycle with increased signal voltage. Possibly use a Unity Gain Differential Amplifier to subtract signal voltage from regulated 5v source and use this output as the input to the PWM generator?
https://forum.allaboutcircuits.com/...-cycle-pwm-of-12v-relay-to-ground-help.19763/
This is very similar to what I am trying to do. The circuit posted doesn't make a ton of sense to me but I am currently digesting it and trying to make sense of some of the symbols and labeling (Ge on the diode for example)
Anyways, if anybody could steer me in the right direction with this it would be greatly appreciated. Thanks!
I'm new here, and this is my first thread. I'm a mech. engineering student but
I'm only a year into my studies, so I have limited experience with reading and designing circuits, but here's what I'm trying to do:
-Use a varying 0-5v signal wire from a sensor
-Convert this signal to a 12v PWM driving a solenoid at 25Hz
I have found a couple of circuits that should allow me to achieve this, but I'm encountering an issue that I'm unsure how to resolve
I don't want the solenoid to cycle at all times. I would like to use pots to set some sort of scaling factor for the PWM conversion.
Example: Let's call sensor voltage Vs. I want to be able to scale the 0% and 100% duty cycle points up/down to achieve the following
-0% duty below a user set voltage
-100% duty above another user set voltage
-Linear scaling of Vs to duty between the two set points
Here are a couple of circuits that may be useful for me to begin with:
http://pcbheaven.com/circuitpages/Voltage_Controlled_PWM_Generator/ Seems to provide the inverse PWM signal that I am after. I need increased duty cycle with increased signal voltage. Possibly use a Unity Gain Differential Amplifier to subtract signal voltage from regulated 5v source and use this output as the input to the PWM generator?
https://forum.allaboutcircuits.com/...-cycle-pwm-of-12v-relay-to-ground-help.19763/
This is very similar to what I am trying to do. The circuit posted doesn't make a ton of sense to me but I am currently digesting it and trying to make sense of some of the symbols and labeling (Ge on the diode for example)
Anyways, if anybody could steer me in the right direction with this it would be greatly appreciated. Thanks!
Last edited:


