Hello again. I'm getting back into this project, and I have made a bit of progress:
I designed an H-bridge and constant current circuit (attached) that seems to meet my needs. A few notes on the components:
I have run a simulation of the circuit and it seems plausible, but I'm sure the resistor values are off, and I probably need some caps somewhere. So far the only things that I have specs for are the MOSFETS and OP AMPS - the transistors can be changed/removed - I simply need a way of controlling the MOSFETS with 5V signal.
- I have a LiPo power source that will supply 5V constantly (for Raspberry Pi). I don't need the optocouplers etc. now, and I also want to keep the majority of the circuitry working on 5V to keep things simple.
- I made a 30V boost converter using an LM2577 to supply the 30V from a 5V source (not sure how stable it is as yet - haven't stress tested it)
- I have some MCP6004 Op Amps (5V rail to rail) and the 55V MOSFETs (went with 55V in case I decide to up the voltage from 30 at some point)
I designed an H-bridge and constant current circuit (attached) that seems to meet my needs. A few notes on the components:
- EN_1 and EN_2 will be 5V logic from the Arduino. Via R8, R9, Q3 and Q4, these 'enable' signals change the direction of the current flow through the electrodes (or stop current flow if needed) by disabling/enabling the correct OP Amp and via R1-R6 along with Q1 and Q2, the correct MOSFET pairs
- The DAC is an MPC4725 0-5V output
- R11 is to limit the maximum current drawn through the electrodes
- R7 and R10 are to stop any accidental short circuit
I have run a simulation of the circuit and it seems plausible, but I'm sure the resistor values are off, and I probably need some caps somewhere. So far the only things that I have specs for are the MOSFETS and OP AMPS - the transistors can be changed/removed - I simply need a way of controlling the MOSFETS with 5V signal.
Attachments
-
100.9 KB Views: 22




