stamp identification question
mrbogeyman
Posts: 9
hello all.
i'm new to the bs2 and this is my first attempt at using a bs2 to control servo motors.
i've set up the stamp on a pcb with 2 capacitors as shown in the manual (page26).
when i click on run>identify, it there's a check in the echo column for com port 1 but the 'loopback' column is left unchecked. is the 'loopback' column suppose to be left unchecked? coz the picture in the manual shows both columns being checked.
also, i'm not any good at this basic programming stuff. anyone mind giving me an example of how a pulsout code for a servo motor should look like?
thanks.
i'm new to the bs2 and this is my first attempt at using a bs2 to control servo motors.
i've set up the stamp on a pcb with 2 capacitors as shown in the manual (page26).
when i click on run>identify, it there's a check in the echo column for com port 1 but the 'loopback' column is left unchecked. is the 'loopback' column suppose to be left unchecked? coz the picture in the manual shows both columns being checked.
also, i'm not any good at this basic programming stuff. anyone mind giving me an example of how a pulsout code for a servo motor should look like?
thanks.
Comments
Just put that wire in, and you should be OK.
Oh, and that's pin 6 and pin 7 of the DB9 connector, on the BOE.
·· Please give details of your system, such as Serial or USB, laptop/desktop, which board you're using and how you're powering it.· You shouldn't need to put any wires in if you're using a package you got from us.· Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Are you sure the Stamp is oriented correctly in the DIP socket?
There is a picture in the Stamp PBASIC Manual, so that you can check for the proper orientation.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
i've tried pulsing i/o number 0 to make the servo motor turn a bit but nothing happens. could this be due to the absence of the loopback?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
i've reconstructed the whole circuit using new components and still no loopback.
now i got a new question. do i have to connect pin number 5 (ground) on the DB9 to the common ground? when i say common ground i mean the ground which my power supply to my motors and the battery that's powering the stamp are connected to.
sorry for being so bothersome guys, i only have very basic knowledge on electronics.
ALL the low voltage grounds from all sources,·on the Stamp should be connected together at some common point. This includes all batteries and other sources of power, R/C servos, separate boards, off-board connectors, sensors, motors, LEDs, relays, etc.
This is a perfect example of a problem which could have been solved with one message and one reply, IF a schematic or simple wiring diagram had been supplied. This is why such information is SO important to the troubleshooting process.
Regards,
Bruce Bates
i got a common ground for all the low voltage points. ..everything that has a voltage supply has been connected to a common ground.
what i want to know is whether the ground pin on the DB9 has to be connected to the common ground or not.
I'm not sure why my answer wasn't acceptable to you. Try this instead:
ALL GROUND CONNECTIONS, AND ALL GROUND WIRES, IN YOUR ENTIRE SYSTEM NEED TO BE CONNECTED TOGETHER AT ONE COMMON POINT, PERIOD, AND WITHOUT EXCEPTION.
Does that make more sense?
Regards,
Bruce Bates
the RS-232 ground from the computer (pin 5) should be connected to the ground pin (Vss) of your stamps.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Do you have a Stamp Tester yet?
http://hometown.aol.com/newzed/index.html
·
i had doubts because my project supervisor told me to not do anything with the ground pin on the db9 because it was dangerous. why so, he didn't mention. pins 6 & 7 on the DB9 have already been connected together. pin 5 on the db9 has already been connected to pin number 4 (vss) on my stamp.
still i'm not getting a loop back. will seek help from the person who sold me this stamp tomorrow.
thanks for the help guys.
If we assume everything that you've said to be true, and you're still not getting a loopback indication, and you are using a standard, straight-through serial cable from your PC, I'll go out on a limb here, and posit that there is only one practical answer left. The DB-9 connector on the PCB (Stamp carrier board) HAS TO BE MISWIRED. Below please find a rough drawing of both the PC DB-9 serial port connector, and the PCB DB-9 connector. If you were viewing a FEMALE connector when you wired it, it would be easy enough to cause this kind of a problem, or if you thought you were looking at the WIRED side rather than the·CONNECTOR side. You need to be viewing a MALE connector to wire·the PCB or carrier board DB-9·correctly.
/code
End views of both connectors viewed from the
SOCKET side, NOT the WIRED SIDE!
PC SERIAL PORT··· PCB or Stamp
DB-9 Connector···· Carrier Board
························· DB-9 Connector
__________········· __________
\ 5 4 3 2 1 /········ ·\ 1 2 3 4 5 /
·\ 9 8 7 6 /············ \ 6 7 8 9 /
·
················
·· FEMALE················· MALE
Pins Recessed········ Pins Exposed
Connecting serial cable is DB-9 MALE to DB-9 FEMALE
with ALL pins propagated straight through in the cable,
and NONE cross-wired.
code/
Regards,
Bruce Bates
Post Edited (Bruce Bates) : 10/30/2005 4:09:25 PM GMT
i have not been following this thread closely but!!!!!! Some manufaturers do not wire all pins.
He should do a continuity check on his db-9 cable also.
Spence
k4kep
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
chris: I'm a mechanical engineering student...which explains why i don't know Smile about this, and only a dimploma holder in mechatronics. i hardly remember anything that's electronic because frankly, i don't like electronics. i'm just forced to make this stamp work because i've made a biped robot and now i have to make the electronic controls work. my project supervisor only has experience with the motorola hc11...so i'm pretty much left to die right now.
i just realised a not too long ago the logic of having a common ground for components to 'communicate' and how stupid it was to ask whether or not to connect pin 5 on the db9 to the common ground...because obviously pin5 is connected vss...which is ground...so why connect it to the common ground then right? this is my first time putting my hand at electonics engineering...be it low level. the only other experience i had was playing with simple ics and building lil op amps in the college lab.
thanks
spence: what's this continuity check you're talking about? could be the answer to my problem.
Post Edited (mrbogeyman) : 10/30/2005 7:34:40 PM GMT
Continuity check is how you test cables and connections with a ohm meter to assure that what is supposed to be connected realy is......
Some manufacturers leave out wires to safe a few cents here and there, and they wronly guess that wire won't be needed. Fine. If you nead 5, 2, 3 all well and good but if they leave out 4 and 6 and you nead them. You are down the river without a paddle.
73
spence
k4kep
THANKS GUYS FOR YOUR HELP. APPRECIATE IT.