Did I blow my BS2pe Chip?: Issues, questions..
Syd
Posts: 13
Hi Everyone,
Below is my situation:
I was trying the code below (with the corresponding attached diagram), and I suspect I may have blown the BS2pe. Currently, the BS2pe gets really "hot to the touch" (actually, to hot to touch within a few seconds). Is there some way I can verify that the BS2pe is working or not?
In the attached diagram, it shows that:
1. I must attach a wire from Pin 4 and 8 to Vdd
2. I must tie/connect Pin 2 to Pin 6
3. I must attach Pin 1 to Vss
4. Essentially, I constructed the circuit as shown (with the 220 ohm resistor, 1k ohm resistor, 0.1uF, and 10K ohm potentiometer) and all the connections to Vdd and Vss as shown. Was I on the right track?
Furthermore, from the diagram, does PIN 15 in the code correspond to pin 15 on the Basic Stamp (BS2pe)? Or does PIN 15 in the code correspond to pin 3 of the basic stamp?
Finally, I measured .5V dc on the Pin which provides the input signal to the BS2pe(not to sure if that is Pin 15 or Pin 3). Is this voltage to high for the basic stamp? Are there any current requirements (the manual mentions 20mA)?
Thanks.
Syd
REF:
Below is the code (and attached is the corresponding diagram) for a circuit that accepts a digital signal on an input pin and provides the frequency:
'
[ I/O Definitions ]
FreqIn PIN 15 ' frequency input pin
'
[ Constants ]
OneSec CON 1000 ' capture window = 1 sec
'
[ Variables ]
cycles VAR Word ' counted cycles
'
[ Program Code ]
Main:
DO
COUNT FreqIn, OneSec, cycles ' count for 1 second
DEBUG HOME,
"Frequency: ", DEC cycles, " Hz" ' display
LOOP
schematic.pdf
Below is my situation:
I was trying the code below (with the corresponding attached diagram), and I suspect I may have blown the BS2pe. Currently, the BS2pe gets really "hot to the touch" (actually, to hot to touch within a few seconds). Is there some way I can verify that the BS2pe is working or not?
In the attached diagram, it shows that:
1. I must attach a wire from Pin 4 and 8 to Vdd
2. I must tie/connect Pin 2 to Pin 6
3. I must attach Pin 1 to Vss
4. Essentially, I constructed the circuit as shown (with the 220 ohm resistor, 1k ohm resistor, 0.1uF, and 10K ohm potentiometer) and all the connections to Vdd and Vss as shown. Was I on the right track?
Furthermore, from the diagram, does PIN 15 in the code correspond to pin 15 on the Basic Stamp (BS2pe)? Or does PIN 15 in the code correspond to pin 3 of the basic stamp?
Finally, I measured .5V dc on the Pin which provides the input signal to the BS2pe(not to sure if that is Pin 15 or Pin 3). Is this voltage to high for the basic stamp? Are there any current requirements (the manual mentions 20mA)?
Thanks.
Syd
REF:
Below is the code (and attached is the corresponding diagram) for a circuit that accepts a digital signal on an input pin and provides the frequency:
'
[ I/O Definitions ]
FreqIn PIN 15 ' frequency input pin
'
[ Constants ]
OneSec CON 1000 ' capture window = 1 sec
'
[ Variables ]
cycles VAR Word ' counted cycles
'
[ Program Code ]
Main:
DO
COUNT FreqIn, OneSec, cycles ' count for 1 second
DEBUG HOME,
"Frequency: ", DEC cycles, " Hz" ' display
LOOP
schematic.pdf
pdf
86K
Comments
How do you have your module connected? What's the supply voltage?
To check the module, the best way is to disconnect everything except the connection to the PC and the supply voltage, then see if the Stamp Editor will identify the module. You can even write a simple little program that just outputs to the Editor's debug window, like:
Let me try to take a stab at this again. So from the schematic:
1. The 555 timer is internal to the BS2pe.
2. I/O pins 1, 2, 3, 4, 6, 7, and 8 of the BS2pe correspond to the pins used to activate the 555 timer (they are not internal. i.e. for example, Vdd is not automatically wired to I/O pin 4. Which implies that I have to physically run a wire from I/O pin 4 to Vdd ).
Please let me know if my trend of thought is correct/wrong.
All said, from the manual, P15 is internally wired to pin 20 of the module. However, on the attached schematic, why is there a connection between PIN 15 and 3? I am using the "board of education". Would I have to run a wire from I/O 15 to I/O 3 (or rather simply hook my input signal to P15 and don't )?
REF: The source code and diagram can be found in the "StampWorks experiments and basic stamp source code v2.1 pg 101"
http://www.parallax.com/Portals/0/Downloads/docs/books/sw/Web-SW-v2.1.pdf
1. The 555 Timer is an external chip and is NOT on the Basic Stamp chip. It is a extra chip included in the parts list of the StampWorks kit.
If you wired your BS2pe according to the schematic on page 101, (assuming you thought the 555 was onboard), I afraid you may have fried your chip. You have applied 5 volt to the VSS pin, and grounded the SOUT pin.
Not sure if connecting the SIN to P1 would do any damage, but it's not advisable.
You can find the Basic Stamp2pe layout on page 487 of the Basic Stamp Manual, and the page that Mike pointed out.
2) All of the parts and wiring shown on page 101 are to be made in the breadboard area on the BOE. The connection to P15 is to be made to the socket on the side of the breadboard area. The BOE takes care of connecting that socket pin to the appropriate place on the BS2pe module (you can follow the connection on the printed circuit board if you want).
The numbers shown around the 555 block on page 101 are the pin numbers of the 555 timer IC. As with all ICs, looking down on the IC from above with the notch or dot on top (or upper left corner), the numbers start on the upper left, wrap around at the bottom of the IC and end at the upper right corner.
You have to make connections labelled Vdd and Vss to the corresponding sockets at the top of the breadboard area.
The BS2pe should be plugged into the 24-pin socket on the BOE on the left side of the board under the Parallax logo.
For some reason my kit did not have the 555 timer. In any case I obtained an NE555 timer and build the circuit as shown on the schematic. However, when I hook an input signal to PIN 15 the "RX" led on the debug screen/terminal stops blinking. When I disconnect the signal, it starts blinking once more. I have looked over the circuit several times and everything looks just fine. With my previous "mis-configurations" in mind, does this mean that my module is blown?
-Syd
As Mike said in Post#2, The "P" designation in the schematic does not correspond with the pin number on the chip. In this case, P15 corresponds to physical pin20 on the BS2pe.
Please recheck page 487 of the Basic Stamp Manual. It show the pinouts and the names of the pins.
This thread really belongs in the Stamp forum, so it'll get moved there
-Syd
Your not making any sense. P15 is not hooker to pin 15.
It seems your not getting the relationship of the "P" designation and a "PIN" designation. A "P" in PBasic is a virtual I/O pin, not a physical pin.
As you can see in the picture, which I referred to earlier, P15 is an physical pin 20.