I/o questions and etc
Hexa
Posts: 3
Hi, I just started learning about coding few weeks ago and I was trying to make a game like simon says with 4 buttons and 4 LEDs
the problem that im trying to solve is, how can I use the guide and use it with 3̶ LEDs?
Thank you for your help!
the problem that im trying to solve is, how can I use the guide and use it with 3̶ LEDs?
Thank you for your help!
Comments
Enjoy the quest!
http://www.parallax.com/sites/default/files/downloads/28123-Whats-a-Micro-v3.0.pdf
Chapter 2 is on LEDs and Chapter 3 is on Pushbuttons.
There is a similar game to the one you saw on Learn at the end of Chapter 3.
The Basic Stamp Manual explains how to use every command in detail and has some simple wiring examples.
http://www.parallax.com/sites/default/files/downloads/27218-Web-BASICStampManual-v2.2.pdf
Thanks a lot for this, i have been reading them over for a week now but i still don't understand some parts.
I have decreased the number of LEDs in this project to 3 instead.
Now my question is that is button is stuck on "Active-low' state (its showing 1 instead of 0 when UNpressed), how can I fix this?
I/O Pin - 220 ohm resistor --- Pushbutton - Vdd
|_ 10K - Vss
Notice the 220 is between the I/O pin and the switch. The 10K resistor connects the I/O pin to Vss and the Pushbutton connects the I/O pin to Vdd.
You have the I/O pin connected to Vdd through a 10K which is ok if you wanted an Active-Low pushbutton, but the 220 ohm resistors do not go after the switch.
The 220s should be where you have those small wires and to make the switch Active-High swap Vdd and Vss.
Thanks a lot, this was very helpful!
Im going to do the coding next and I'll let you guys know if I have any question! Thanks a guys!