BASIC Stamp 2 Microcontroller Module (BS2-IC rev J) Problem
Mooneyguy
Posts: 77
I built a circuit using the Basic Stamp Homework Board with about a dozen IC's and related caps, resistors and LED's. I built the same circuit over about 4 times on three different homework boards, all without any real issues other than just the learning aspect. I am now trying to make a more permanent assembly using the subject BS2-IC Module and the Parallax supplied PC Serial Port. The schematic is http://www.parallax.com/Portals/0/Downloads/docs/prod/schem/BS2revJSchematic.pdf My problem is I am having a very difficult time getting it to run.
I have spent many hours checking the board over time after time, and even rebuilt some more complex sections over 3 times. Then I tried to isolate the new things from the assembly. I did this by keeping the same assembly exactly and simply jumpered circuit over to my trusty Basic Stamp Homework board P, Vdd Vss and Vin sockets. After doing that pin for pin (so there were no programming changes), the circuit ran perfect the first time. The connector wiring looks straight forward on the PC Serial port and the connections ring out good with my ohm meter. The stamp connections look pretty straight forward per the referenced schematic.
When I run it with the BASIC Stamp 2 Microcontroller Module (BS2-IC rev J) assembly, LED's are lighting up all over the place brighter than normal, current does not flow in the usual sections, and the debug readings are have a tremendous amount of noise. The LEDs are running too bright and blinking as if they are picking up commands from other parts of the circuit all in parallel. The computer does however, recognize the Stamp and the program runs, but the circuit runs all wrong. I am reading the schematic as if looking down on the module which must be right or the computer would not recognize the stamp when I press the run button. It is almost like there are shorts all over the board microcontroller module. Does anyone have any ideas why this could be happening? Does anyone ever get damaged modules right out of the box?
I have spent many hours checking the board over time after time, and even rebuilt some more complex sections over 3 times. Then I tried to isolate the new things from the assembly. I did this by keeping the same assembly exactly and simply jumpered circuit over to my trusty Basic Stamp Homework board P, Vdd Vss and Vin sockets. After doing that pin for pin (so there were no programming changes), the circuit ran perfect the first time. The connector wiring looks straight forward on the PC Serial port and the connections ring out good with my ohm meter. The stamp connections look pretty straight forward per the referenced schematic.
When I run it with the BASIC Stamp 2 Microcontroller Module (BS2-IC rev J) assembly, LED's are lighting up all over the place brighter than normal, current does not flow in the usual sections, and the debug readings are have a tremendous amount of noise. The LEDs are running too bright and blinking as if they are picking up commands from other parts of the circuit all in parallel. The computer does however, recognize the Stamp and the program runs, but the circuit runs all wrong. I am reading the schematic as if looking down on the module which must be right or the computer would not recognize the stamp when I press the run button. It is almost like there are shorts all over the board microcontroller module. Does anyone have any ideas why this could be happening? Does anyone ever get damaged modules right out of the box?
Comments
The primary difference between the Homework Board and the BS2 module is the 220 Ohm resistors in series with the I/O pins. These are intended to product the I/O pins from accidental short circuits. The module does not have these. If you have any LEDs directly connected to your Homework Board's I/O pins, these resistors will limit the current. With the BS2 module, you have to add series resistors to LEDs and sometimes other components.
R = (Vsupply - VF)/ILED
R = series resistor value
Vsupply = supply voltage
VF = is the LED forward voltage
ILED = is the desired LED current
For a red LED, the series resistor would be (5 - 1.6)/0.01 = 340 ohm
Don't let the 220 ohm resistor fool you, it's just there to protect the BS2 I/O pins on the Homework board. When you add you the two resistor values together in above example you will get 560 and all this does it lowers the current to the BS2 module. Yes