setting up serial port without a dev. board
justinmburrous
Posts: 16
Hey, I am new to micro controllers. I have little experience, the most "challenging" stuff I have done was make a pulse counter with a 4bit adder, so please try to keep any responses is English. Anyway, I just bought the BS2sx Microcontroller. I bought just the controller thinking that I could plug it into my bread board and wire a serial cable into the bread board. Here is my setup. I have a 4AA battery power supply powering the microcontroller (6 volts right?) I then have a Radio Shack gigawire USB to Serial converter. I installed the radio shack driver and when I plugged in the USB cable, Windows 7 also installed a driver. I also have the ISO image of the parallax CD. From there I installed the USB driver as well.
Wiring arrangement to the serial is exactly as shown in the PDF below. (NOTE: I am using 50volt capacitor instead.). http://www.parallax.com/Portals/0/Downloads/docs/prod/schem/BS2sxrevFSchematic.pdf
When I try to identify the Stamp in the basic stamp editor it does not find the controller. Please let me know what you think is wrong.
Thanks
Wiring arrangement to the serial is exactly as shown in the PDF below. (NOTE: I am using 50volt capacitor instead.). http://www.parallax.com/Portals/0/Downloads/docs/prod/schem/BS2sxrevFSchematic.pdf
When I try to identify the Stamp in the basic stamp editor it does not find the controller. Please let me know what you think is wrong.
Thanks
Comments
Why not get the official converter for $15.00:
·http://www.parallax.com/Store/Accessories/CablesConverters/tabid/166/CategoryID/40/List/0/SortField/0/Level/a/ProductID/378/Default.aspx
and then you will know i will work forever and ever.
Jim
Also, based on the schematic I provided, will that wiring work?
I just stuck the wires into the female serial adapter and then into the breadboard...
Jim
And I am hearing that I need to power both 24 and 23 with my 6 volt power supply?
Anything else aside from the serial connections?
If you plug the +6 volt Red wire into both 24 AND 23, you've either shorted out the GROUND line, or you're still leaving the GROUND line off, so again you won't have a "circuit". So don't do that.
P.S. I don't want to hear any arguments about what direction "current flows" vs. "electron flows" at this point, it'll just confuse the issue.
VSS=Ground=GND·· VDD=V+
Without a ground going from your 6 volt supply, the BS2 is not powered. You must also tie both grounds, (6 volt GND and Serial GND), together.
Jim
So, on a 74LS47, you'll see "Vcc" as the source voltage -- because that becomes the "Collector" voltage. On a BS2, that becomes VDD -- named for some part of the MOS transistor I haven't looked up recently. I'm not sure why the 74LS series labels ground "GND" -- you'd think it'd be named "Vee" because it's the Emitter voltage, but whatever.
Now, the BS2 has an on-module voltage regulator, which takes Vin (from 6 volts to 20 or so) and drops it down to the +5 volt VDD. So you can power the BS2 from a 5-volt source on the VDD to VSS pins, or a 6 volt and up DC source between the Vin and VSS pins. But DO NOT put 6 volts on the VDD pin, that'll kill the BS2.
I got the adapter from parallax and wired it the exact same way as before. Power is to +6VDC to pin 24 and Pin 23 to Ground. The serial is set up to the schematic. Pin 1 is set up directly and pin 2 is set directly. pin 3 and 4 are connected together via capacitor. pin 4 is also connected to the serial, and pin 3 is attached via another capacitor.
Hover 1, you said connect pin 23 and pin 4 should be connected together (gnd and gnd). They are, but its not doing anything different.
The only thing I can think of now is a software issue. I have installed the serial driver, and then windows 7 did its little driver install fro plug and play stuff. It said it was ready to go. When I identify the chip in Basic Stamp Software though, it says that the chip does not exist. I have gone into the preferences and switched the port to automatic, and still I am getting the same error.
Any new ideas?
Note pins 6 and 7 on the DB9 connector are connected.
www.muratnkonar.com/otherstuff/macbs2/
That is the way I have it configured. The led for pin 21 is just to check it the chip was powered, and the LED to the input pin was the one I was going to try to flash when I got it programming. Note: The wire going into the serial is folded over and I had to force it into the holed, which I am guessing is a good enough connection.
Its still not working.
You shouldn't have an LED or resistor connected to pins 1, 2 or 3 on the stamp - this might interfere with programming.
When you're in the Stamp Editor or MacBS2, can you successfully identify the stamp?
Post Edited (Forrest) : 6/20/2010 4:20:14 PM GMT
http://www.ftdichip.com/Drivers/VCP.htm
http://www.ftdichip.com/Drivers/VCP.htm
The led is plugged into pin 21 not 1, 2, or 3. I took it out for this picture though, still the same result.
Also I tried MacBS2. I got the driver from the OSX section of http://www.ftdichip.com/Drivers/VCP.htm. No such luck after I selected the driver to use in the software (usbserial-A800enni). For the record I tried windows again with the capacitors, and got the same erros that I was getting before.
Try right-clicking the Stamp Editor shortcut and choosing "Run as Administrator". If this fixes the problem, you can set it to always run as Administrator through the compatibility settings.
If it still doesn't work, I think it's some type of software issue with the FTDI drivers - especially since you weren't able to get MacBS2 to identify your stamp.
I am guessing software, but what could be wring. I did install the correct driver didnt I?
the wires straight from left to right.
Doesn't the serial gender changer mirror the pins ?
So you need to swap the wires from left to right to right to left.
Do you have an Ohm meter to check that ?
Say you would have a DVI gender changer .. then the separate 4 pin connector would
be mirrored "on the other side".
http://www.parallax.com/Portals/0/Downloads/docs/prod/schem/BS2sxrevFSchematic.pdf.
I dont really know quite what you are saying. Do you mean just flip all the wires???
Also, I contacted Customer Support. They had me check some things on the chip with the volt meter, after they asked me to ship it back for testing. I am on vacation so I have not gotten around to it yet, but I will soon.
http://www.parallax.com/Portals/0/Downloads/docs/prod/schem/BS2sxrevFSchematic.pdf.
I dont really know quite what you are saying. Do you mean just flip all the wires???
Also, I contacted Customer Support. They had me check some things on the chip with the volt meter, after they asked me to ship it back for testing. I am on vacation so I have not gotten around to it yet, but I will soon.
Because the converter has a male connector (with pins) you stuck on a device
with 2 female connectors. A serial "gender changer". So now you can
stick wires in the female connector and the breadboard.
According to the photos you assumed that the pins in the "gender changer" are
wired straight through. But they are not. Pin 1 is connected to Pin 1, Pin2 is connected to Pin 2 etc.
So if you would look at the gender changer from the top and have one female connector on the left
side and one on the right side. Then pin 1 of the left connector would be at the bottom, and pin1 of the
right connector would be at the top. So the wiring inside is mirrored.
Just google a picture for a DVI gender changer.
If you look from the top and have a DVI connector left and a DVI connector right.
Then the 4 separate pins from the left connector would be at the bottom of the picture,
but for the right connector would be on the top. So the wiring inside the gender changer
is "crossed" or mirrored so to speak.
So when you stick wires in the 9 pin female connector you have to look at the tiny numbers
next to the holes. They are mirrored compared to a male connector.
With a male connector the numbering (pin1) starts at the left, with a female connector the numbering (pin 1)
starts at the right.
So according to your photos you connected the wires in the 9pin female connector "mirrored".
You stuck the wire for pin5 in hole1 and the wire for pin4 in hole2 etc.
So you might want to try to mirror the wires .. swap them from the left to the right.
Or just check the connections inside the gender changer with an ohm meter
to check if they are what you expected them to be.
____________________________________________________________________
Ben 10 Games
And to APSpijkerman, I see what you are saying now. I just sent off the controller, however I will have to check out the serial gender converter.
Thanks for now though.