I'm busy with a Arduino project where I need to switch -5V to a semiconductor. I'm going to use a ICL7660 to generate a negative voltage but now I only want the -5V to be present when the output of the pin on the Arduino goes high.
I've been using the below circuit to switch +5V on and off. For the -5V I'm guessing I can't just replace the +5 with -5?
That's a VERY poor way to do it, and you lose at least 0.7V - you should use a PNP transistor to switch the +ve rail (output from collector) and an NPN to switch the -ve rail. Depending on exact requirements, you may need two transistors to do it.
I've no idea what your circuit is all about?, Pommie's idea of simply switching the +5V to the converter chip with a PNP transistor seems a good one.
However, is a fast response time even required? - but I don't see as your simulation shows anything?, why (and how?) are you feeding it a very slow analogue input, rather than a fast digital one?.
...
However, is a fast response time even required? - but I don't see as your simulation shows anything?, why (and how?) are you feeding it a very slow analogue input, rather than a fast digital one?.
Not antagonistic, just that I didn't (and still don't) see the point?.
And as I also mentioned, Pommie's suggestion of switching the +5V to the converter seems by far the best option, and requires considerably less parts than either your or crutshow's examples.
Difference of opinions is how we learn.... Nigel can be a little harsh sometimes, but antagonistic is a little strong... All the senior members above have extremely good input to these threads... All we can do is give the TS ( OP ) our views, even if they are a little controversial... The TS may think that MikeMl's solution will work for him..
Almost forgot about this thread. Thanks for all the replies guys. I'm using the -5V on a old RAM Chip (4116) and the Arduino will run a memory test (and turn the -5V on and off)
Pommie is spot on, the solution is right there. Why didn't I see that I'm using a ICL7660 anyway to generate the -5V. I'll use a PNP to turn the voltage on/off to the ICL and then just add a delay on the Arduino code so the -5V can setting before I start testing.