Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
William At MyBlueRoom said:Now when the POWERFET is switched off (Open) will current flow back into the PIC output port without the 1N4148 diodes?
William At MyBlueRoom said:Question is: can I omit the diodes safely?
eblc1388 said:Yes. The MOSFET opens the GND connection of ULN2803(bad circuit design anyway, as one can just TRIS the port to get the same effect), as a result some current from 30V will find its way and flows into the PIC if the diodes are not there.
Nigel Goodwin said:Oops! - never noticed the FET there!, it never occurred to me that someone would do something so stupid!
Presumably it's intend to PWM all the outputs?, but whoever came up with the idea needs taking outside to have his fingers broken!
If the attached schematic, which I got from the ULN2803 datasheet, is correct, I see no "sneak" current path from the output back to the input when the ground pin is floating. Do you have evidence that one actually exists, or are you just adding the diodes as a precautionary measure?eddy@wrighthobbies.com said:Hello everyone,
Just a quick comment on the LED circuit using the ULN2803 transistor array. The diodes isolate the transistor array from the Mega32. Since I am switching the ground pin on the ULN2803, the diodes prevent the chips from grounding through the MCU. Yes, switching the ground on the ULN2803 isn't proper but with the diodes in place it does work. That lamp has been running non-stop for over 2 years without a problem.
I wouldn't recommend this for other applications (certainly not commercial applications), but for this lamp it works.
The other option is to PWM the source voltage but the RGB LEDs have a common source pin so that wasn't possible.
You can slap my hand now
Eddy Wright
Wright Hobbies Robotics
Yep, you're right. I didn't see that path.hjames said:If the mosfet is open, and one of the PIC outputs is driven low, the "ground" pin of the transistor array is going to be sitting at .7V courtesy of the protection diode at the bottom of the ULN2083 pic. Which means 4.3V still available to turn the darlington on.
Now if you play the game by having the PIC tristate it's IO's instead of driving them low, you'll be able to do without the diodes.
But yeah - ugh.
Ron H said:If the attached schematic, which I got from the ULN2803 datasheet, is correct, I see no "sneak" current path from the output back to the input when the ground pin is floating. Do you have evidence that one actually exists, or are you just adding the diodes as a precautionary measure?