hello guys i'm getting multiple readings on my pic, maybe this is because i'm using common ground throughout my breadboard. my question is if i increased the value of the decoupler (1uf) to say 47 uf, will this reduce the noise (i'm only assuming this was the correct term to use) and fix the multiple reading that i'm getting? i already placed 1-meg pull up resistor in my RB0.
eric gibbs taught me the resistor divider approach but was not able to make it to work so i went on using the 555. the 16f84 and the 555 have 1 uf decoupler. thank you very much in advance.
eric gibbs taught me the resistor divider approach but was not able to make it to work so i went on using the 555. the 16f84 and the 555 have 1 uf decoupler. thank you very much in advance.
hi,
Just to clarify a point, I suggested 3k3 and 2k2 as a divider to get from 12Vdc to +5Vdc for a PIC input for PORTB.0 ,,,
never any mention of 1meg resistors.
hi,
Just to clarify a point, I suggested 3k3 and 2k2 as a divider to get from 12Vdc to +5Vdc for a PIC input for PORTB.0 ,,,
never any mention of 1meg resistors.
yes eric and thank you for all your help. i realised now why it did not run because the signal was negative going, which at the time i wasn't aware of.
yes eric and thank you for all your help. i realised now why it did not run because the signal was negative going, which at the time i wasn't aware of.
hi,
If the supply to the coin mechanism is +12V and 0V is common/ground and all the coin switch does is switch the +12V on/off, how can the coin pulse be a negative voltage..
i have no idea but heres whats going on eric, when i attached the wire that sends out the pulse from the coin mech to the 555 trigger, the 555 will give me an output and the PIC would even detect. i have no idea and i can't explain why and how it worked. its just i'm getting multiple reading after the pic read the rising edge.
i have no idea but heres whats going on eric, when i attached the wire that sends out the pulse from the coin mech to the 555 trigger, the 555 will give me an output and the PIC would even detect. i have no idea and i can't explain why and how it worked. its just i'm getting multiple reading after the pic read the rising edge.
i found other diagrams but they are a bit complicated and uses 555 and schmitt triggers (i have no idea what schimitt is [it compares voltage according to my speed read]).
i found other diagrams but they are a bit complicated and uses 555 and schmitt triggers (i have no idea what schimitt is [it compares voltage according to my speed read]).
A pull up is a resistor that tends to pull a line towards a positive level as in +v. A pull down attempts to pull a line towards ground level. The choice of a pull up or pull down is often selected based on many factors. Some are, open collector outputs, or if line may go tri-state, or the driver needs help sourcing or sinking current, these are but a few reasons.
thanks guys eric mike. although i havent completely grasped the whole thing but i'll do some readings also and actual in-breadboard testing. my best kudos to you guys for helping a starter like me.
The value of the decoupler will determine it's frequency response. Lower value caps can usually react faster and handle the higher frequencies better. Also, ceramics are usually better than electrolytics for higher frequencies as well due to the lower ESR. Sometimes if the environment is very noisy, you will use two or three decoupling caps, at different values, each handling a different frequency range of the noise.