PDA

View Full Version : Is this simple schematic electrically correct?



sccoupe
- 10th November 2009, 01:09
Is the attached schematic electrically correct for an automotive environment? Press the switch and the LED comes on. Im doing some testing and this works but is it correct? Anything out of wack or incorrectly done?


Thanks all.


It appears that this should be moved to the schematics section of the forum.

Thanks

Charles Linquis
- 10th November 2009, 02:20
No, There are at least three mistakes:

#1. You need some capacitance across the the power supply leads of the PIC and at the output of the regulator. I recommend a 10uf and a .1uf in parallel.

#2. Pin 4 will never go LOW. Connect the "bottom" of the switch to a 10K resistor. Connect the other end of that resistor to GND. Connect the junction of the switch and the resistor to pin 4.

#3. The LED will not be bright enough with a 10K resistor in series. Try a 1K instead.

sccoupe
- 10th November 2009, 21:45
Thanks Charles. Here is the correct schematic. The first one was misdrawn from what I wired. Does this correctly address #2? On issue #1, do I need two seperate sets of caps for the regulator and the pic or will one set do? Also are there small SMD caps available in those values? I've looked in the past and it seems that the 10uf caps are big metal button types or the non-smd electrolytics.


Thanks again for the info.

Jason

sccoupe
- 11th November 2009, 01:30
Will these do for the capacitor situation?

Cap 10uf (http://mouser.com/ProductDetail/Vishay-Sprague/293D106X9035D2TE3/?qs=sGAEpiMZZMu8U6BB3bUiwqk0Tz2LKoEtwhlohwpwh0Q%3d )

Cap .1uf (http://mouser.com/ProductDetail/Vishay-Sprague/293D104X9035A2TE3/?qs=sGAEpiMZZMu8U6BB3bUiwqk0Tz2LKoEtYiJUQo2255c%3d )


If these are not used at all, how does that effect a pic that is being used to count rpm pulses?

Thanks

BobEdge
- 12th November 2009, 16:41
Yes those caps will be fine, without them the circuit will be vunerable to electrical noise & may give unexpected results.

Also for the led resistor I would use around 270 ohms.

Regards
Bob...