Hello everyone,
I recently prototyped my obstacle-avoidance bot's circuit on breadboard where it worked just fine after I fiddled for sometime with the 20 MHz crystal.
Apparently the crystal wasn't loaded enough (although I used 47 pF caps, I checked the caps and they weren't shorted) earlier as when I introduced some stray capacitance (when I took my hand near for example) the circuit started working fine.
This left me with a few questions:
1. Even after being powered properly (I used decoupling caps) the MCU seemed to put out abnormal voltages off its pins (I mean other than 0 V and 5 V).
The LED that I made the MCU light up on power-up, for example, seemed to glow very dimly and was flickering. Is this an indication of crystal problems or was it a one-off case?
2. It did occur to me that it might be one of those mysterious breadboard connection faults so I switched the crystal position elsewhere and a few moments later it worked first time.
Now that I soldered the entire circuit (I admit I am a green hand at soldering) I thought those problems would bother me no more. Instead the pins where there must be a clear 5 V and 0 V show weird voltages like 1.5 V or something.
This leads me to believe that the crystal may have been damaged earlier or during soldering (though I was very careful not to heat it much).
Could it be something else instead. What other factors could cause an MCU to behave in such a 'strange' manner?
Thanks (That was indeed quite long )
I recently prototyped my obstacle-avoidance bot's circuit on breadboard where it worked just fine after I fiddled for sometime with the 20 MHz crystal.
Apparently the crystal wasn't loaded enough (although I used 47 pF caps, I checked the caps and they weren't shorted) earlier as when I introduced some stray capacitance (when I took my hand near for example) the circuit started working fine.
This left me with a few questions:
1. Even after being powered properly (I used decoupling caps) the MCU seemed to put out abnormal voltages off its pins (I mean other than 0 V and 5 V).
The LED that I made the MCU light up on power-up, for example, seemed to glow very dimly and was flickering. Is this an indication of crystal problems or was it a one-off case?
2. It did occur to me that it might be one of those mysterious breadboard connection faults so I switched the crystal position elsewhere and a few moments later it worked first time.
Now that I soldered the entire circuit (I admit I am a green hand at soldering) I thought those problems would bother me no more. Instead the pins where there must be a clear 5 V and 0 V show weird voltages like 1.5 V or something.
This leads me to believe that the crystal may have been damaged earlier or during soldering (though I was very careful not to heat it much).
Could it be something else instead. What other factors could cause an MCU to behave in such a 'strange' manner?
Thanks (That was indeed quite long )