Doing WAM on TAB SumoBot
Hello all,
I'm working through the exercises in Wha'ts A Microcontroller using my TAB SumoBot. I'm on Chapter 3, Activity 2. The exercise is about reading the input value of a pin. It calls for a 220 ohm resistor connecting a pushbutton to P3 and a 10K ohm resistor connecting the pushbutton to ground (see figure 3-6 on page 76).
Since the value of Vdd is only +3V on the SumoBot, what resistor values should I use ?
Thanks,
-pb
I'm working through the exercises in Wha'ts A Microcontroller using my TAB SumoBot. I'm on Chapter 3, Activity 2. The exercise is about reading the input value of a pin. It calls for a 220 ohm resistor connecting a pushbutton to P3 and a 10K ohm resistor connecting the pushbutton to ground (see figure 3-6 on page 76).
Since the value of Vdd is only +3V on the SumoBot, what resistor values should I use ?
Thanks,
-pb
Comments
The 220 ohm resistor is there to limit the current through the stamp pin just in case the pin is accidentally set to be an output instead of an input.
When the stamp pin is set to be an input there will theoreticallly be no current flowing from the pin or through the resistor, And that means it is not really needed at all.
The bottom line is that the 220 ohm resistor will allow less current to flow at 3.8v, which is good for the pin when it is accidentially set to be an "OUTPUT".
The 220 ohm resistor placed between an "INPUT" pin and the sensor will not effect your results.