Hi,
I’ve got questions for experts of basic electronics!...
When it comes to putting in resistors into the circuits, I have basically been following the suggestions in the PICAXE manuals but not really being comfortable as to exactly what’s happening, although it has been working fine!
The rules I go by include:
1. Ground all input pins that I don’t use
2. Ground the Serin pin when not programming
3. Don’t connect the 5V directly to the input pin (via a switch). Use 10k resistor on the opposite side of the pin to the switch (ie: for digital inputs)
5V_____ 5V___
| |
/ sw Z 10k
pin___| pin__|
| |
Z 10k / sw
| |
GND___| GND__|
Some of the schematics in the manual also put in a 1k resistor in series to the switch
5V__________
|
/ sw
pin___M____|
1k |
Z 10k
|
GND________|
Now comes my assumptions & questions!...
I assume the pin is looking at the CHANGES in voltage between the 5V rail & the GND (ie: a signal), and so that the path from the 5V rail to the GND rail isn’t simply shorted between the 5V & GND, we need to put in a load, hence the 10K resistor, rather than sending the current directly thru the PIC.
Is that correct?
Why use 10K, and not 1K? or 100K? or 22R?
I assume the 1K in series is a ‘good practice’ item… What is the 1K resistor in series there for? My assumption would have been to give a degree of filtering of the signal but why not use a capacitor if this is the case? And again, why 1K?
Any comments would be appreciated
Thanks
Bryan
Â
I’ve got questions for experts of basic electronics!...
When it comes to putting in resistors into the circuits, I have basically been following the suggestions in the PICAXE manuals but not really being comfortable as to exactly what’s happening, although it has been working fine!
The rules I go by include:
1. Ground all input pins that I don’t use
2. Ground the Serin pin when not programming
3. Don’t connect the 5V directly to the input pin (via a switch). Use 10k resistor on the opposite side of the pin to the switch (ie: for digital inputs)
5V_____ 5V___
| |
/ sw Z 10k
pin___| pin__|
| |
Z 10k / sw
| |
GND___| GND__|
Some of the schematics in the manual also put in a 1k resistor in series to the switch
5V__________
|
/ sw
pin___M____|
1k |
Z 10k
|
GND________|
Now comes my assumptions & questions!...
I assume the pin is looking at the CHANGES in voltage between the 5V rail & the GND (ie: a signal), and so that the path from the 5V rail to the GND rail isn’t simply shorted between the 5V & GND, we need to put in a load, hence the 10K resistor, rather than sending the current directly thru the PIC.
Is that correct?
Why use 10K, and not 1K? or 100K? or 22R?
I assume the 1K in series is a ‘good practice’ item… What is the 1K resistor in series there for? My assumption would have been to give a degree of filtering of the signal but why not use a capacitor if this is the case? And again, why 1K?
Any comments would be appreciated
Thanks
Bryan
Â