Reply by Dr. John R. Wright, Jr. January 22, 20062006-01-22
--- In basicx@basi..., "Tim Chapman" <tim@t...> wrote:
>
> I use the BX24p in a BOE Bot. Just remember that P0 in the Basic
Stamp is
> P5 on the BX24. Add 5 to all pin numbers and you are on the right
track.
> Tim Chapman
> tim@t...
> TEC Computer Services
> www.teccs.biz
> (602) 486-0502
Thanks for the tip Tim.

My grad student, John Kuperavage (Kupe), was able to get an LED to
blink tonight. This was his code for the BasicX running on the BOE-
bot. I will try the same code soon on the Motor Mind C carrier board.

Option Explicit

Public Sub Main() const x as integer = 3 'Sets x = 5 (constant)
DIM reloop as Integer 'sets reloop as an integer
variable
DIM name as string 'sets name as string variable

For reloop = 1 to x 'loop for blinking

Debug.Print "Helo Darlin, this is Conway Twitty"
'Prints some humerous text
name = "Conway Twitty" 'sets name

Call Delay(2.0) 'Delay for 2 seconds
Call PutPin (18,0) 'sets pin 18 low (corresponds to pin 13 on the BOE
Call PutPin (17,0)
Call Delay (1.0)
Call PutPin (18,1)
Call delay (0.5)
Call PutPin (17,1)

Debug.Print "My name is " & name ; CStr (5 + 5)
'prints text, a variable and a number

'CStr is convert string and converts the

'number value to a string for printout
next

End Sub


Reply by Dr. John R. Wright, Jr. January 22, 20062006-01-22
> I find it a bit disconcerting that you have a Ph.D. and teach
> "Automation and Electronics Technologies" but yet you aren't
comfortable
> breadboarding. The BX-24 has been designed specifically to make it
easy
> to breadboard.
>
> Mike
> http://home.austin.rr.com/perks/micros/
>

Mike,

Thanks for the concern. I teach a variety of subjects (more than ten
different courses that require 300-500 page texts of theory and each
has a lab - two hours theory, three hours lab per week.

Perhaps, I meant I prefer not to have my students breadboard a chip
such as the BX-24p for my current course with all that I have planned
to accomplish in 16 weeks.

I do not have a problem translating a schematic to a breadboard. We
are a hand-on program at MU. We are also heavy on application and for
this course I wanted to find a way to concentrate on programming
rather than on breadboarding. Thus the idea was to find a carrier
board to allow them to study the Stamp 2, the Basic X, and the
Motorolla chips all in one course. We have a lot of sensors, etc. to
incorporate in our final challenge -- entering the Trinity College
Firefighting Robot Contest (hopefully with the BX-24p as the brains).

This chip is new for me, but I want to keep my students current and
give them an experience with a microcontroller that parallel
processes using Basic. My advanced degrees are in MGT and Stat &
Research Methods for the record. Please feel free to vist my website.

http://muweb.millersville.edu/~jwright/

Thanks for your concern. I hope you would be willing to help me again
in the future. As a professor in a regional teaching institution, I
am but a generalist of several areas compared to some of you in
industry.

Thanks and sorry for the miscommunication. By the way, I seem to have
solved the problem that I had. See other recent posts from me on this
thread.

John



Reply by Tim Chapman January 22, 20062006-01-22
I use the BX24p in a BOE Bot. Just remember that P0 in the Basic Stamp is
P5 on the BX24. Add 5 to all pin numbers and you are on the right track.
Tim Chapman
tim@tim@...
TEC Computer Services
www.teccs.biz
(602) 486-0502

-----Original Message-----
From: basicx@basi... [mailto:basicx@basi...]On Behalf Of
Dr. John R. Wright, Jr.
Sent: Sunday, January 22, 2006 3:16 PM
To: basicx@basi...
Subject: [BasicX] Re: Unable to Halt BasicX error message...HELP PLEASE Ureka! Hi everyone!

I just successfully downloaded a small program into the Motor Mind C
Carrier Board. It was just a "Hello John's World" short test program,
but the Motor Mind C and the BOE-bot Carrier boards appear to be
compatible with the BX-24p! As soon as you click on the software, the
Welcome to the Basic X program comes alive on the screen (Hello
World).

I will next try blinking an LED and then move up to motor control.
Once I have success, I will try and post the sample code here for all!

Yahoo. My earlier problems were likely due to the bad COM1 port on
this computer. My other PC works fine.

As far as pins 7&8 - they do not seem to be an issue for downloading,
at least not yet. We'll see....

As advertised, the BX-24p seems to be a pin-for-pin drop in
replacement for the Basic Stamp 2.

Cheers, and thank again to all of you for your help!

John
SPONSORED LINKS Microcontrollers Microprocessor Intel microprocessors
Pic microcontrollers Violator ----
--
YAHOO! GROUPS LINKS

a.. ----
--


Reply by Dr. John R. Wright, Jr. January 22, 20062006-01-22
Ureka! Hi everyone!

I just successfully downloaded a small program into the Motor Mind C
Carrier Board. It was just a "Hello John's World" short test program,
but the Motor Mind C and the BOE-bot Carrier boards appear to be
compatible with the BX-24p! As soon as you click on the software, the
Welcome to the Basic X program comes alive on the screen (Hello
World).

I will next try blinking an LED and then move up to motor control.
Once I have success, I will try and post the sample code here for all!

Yahoo. My earlier problems were likely due to the bad COM1 port on
this computer. My other PC works fine.

As far as pins 7&8 - they do not seem to be an issue for downloading,
at least not yet. We'll see....

As advertised, the BX-24p seems to be a pin-for-pin drop in
replacement for the Basic Stamp 2.

Cheers, and thank again to all of you for your help!

John


Reply by Dr. John R. Wright, Jr. January 22, 20062006-01-22

> Yes, will be a problem...BX-24p has to be connected to pins 2 to 5
> of serial cable (DB-9)...
>
> If you buy a reusable board, do this to be able to download
programs
> to your BX-24p microcontroller OUTSIDE your robot...than you just
> have to replace the BX-24p back on the robot board.
Thank you for the advice.

I guess I thought you could just plug the BX-24p into a Parallax
board and away you go using a different software. See these words
taken from the BasicX web site:

"Attention all Stamp users!
Turbo charge your Stamp project with BasicX!
BasicX-24p is a Pin-For-Pin drop-in replacement for all 24-pin
Stamps. Check our comparison chart and see what a difference
upgrading to the BasicX-24p will make!"

I went to work, grabbed my disc and tried to load the BasicX software
today on my PC w/o internet and -- another road block. It said that
it required me to put in the 2nd disc? Frustrating to say the least,
I paid $ to get a hard copy just in case and it did not pay off. I
will bring my CPU downstairs, hook it up to the internet connection
and download the software and run my tests that I mentioned earlier.
If it all fails, I will take your advice and buy Robodesy board and
try to download and then swap into my MMC board. Cumbersome, but it
might work for me.

john


Reply by Mike Perks January 22, 20062006-01-22
Dr. John R. Wright, Jr. wrote:

> I'm not that comfortable breadboarding the chip. My experiences with
> with processors are limited to using carrier boards (Parallax
> products). I probably could do this, but would likely prefer to
> purchase a carrier board that is known to work with the X first, such
> as Robodyssey's Advanced Motherboard (RAMB) - Chris Odom details how
> to set it up in his new book. Having said this.......

I find it a bit disconcerting that you have a Ph.D. and teach
"Automation and Electronics Technologies" but yet you aren't comfortable
breadboarding. The BX-24 has been designed specifically to make it easy
to breadboard.

Mike
http://home.austin.rr.com/perks/micros/


Reply by hpj720 January 22, 20062006-01-22
--- In basicx@basi..., "Dr. John R. Wright, Jr."
<john.wright@m...> wrote:
>
> --- In basicx@basi..., Mike Perks <basicx@a...> wrote:
> >
> > Dr. John R. Wright, Jr. wrote:
> > What would happen if pins 7&8 are connected and you try to
communicated with the BX-24p? Since I am using carrier boards
designed for the Stamp, do you think this may be a problem? Yes, will be a problem...BX-24p has to be connected to pins 2 to 5
of serial cable (DB-9)...

If you buy a reusable board, do this to be able to download programs
to your BX-24p microcontroller OUTSIDE your robot...than you just
have to replace the BX-24p back on the robot board.

Give voltage (5-10V) to pin 23 (ground) and 24 (+) of your basicXp.
Plug pin 1 of BX-24p to pin 2 of serial cable, Plug pin 2 of BX-24p
to pin 3 of serial cable, Plug pin 3 of BX-24p to pin 4 of serial
cable and Plug pin 4 of BX-24p to pin 5 of serial cable. That's all.
See schematic on this web page: http://www.basicx.com/Products/BX-
24/bx-24ptoPcConnections.GIF

Plug other end of serial cable to PC. Start BasicX software (make
sure your COM port is open in Download Port and Monitor Port (and is
the same as you see in settings of Panel control for the serial used
and that Baud is 19200 everywhere)) If COM1 not available, use
another one available if any.

I did it myself yesterday and worked great...just make sure to do
this slowly to have the right connections before plugging
voltage....Hope this help!


Reply by Dr. John R. Wright, Jr. January 22, 20062006-01-22
--- In basicx@basi..., Mike Perks <basicx@a...> wrote:
>
> Dr. John R. Wright, Jr. wrote:
>
> > Hello everyone,
> >
> > I am having the same problem as Denis, but different board -- can
not
> > halt the BasicX and establish communication. My board (Motor Mind
C -
> > BS2) does not have a reset button, however.
> >
> > Does anyone have any ideas? - I've been struggling all day to
> > establish a simple download.
>
> Does it work standalone on a simple breadboard? The RS232 is wired
> slightly differently to that for BX-24. The BS2 requires pins 7 and
8 to
> be connected.
>
> Mike
> http://home.austin.rr.com/perks/micros/
>

Mike,

I'm not that comfortable breadboarding the chip. My experiences with
with processors are limited to using carrier boards (Parallax
products). I probably could do this, but would likely prefer to
purchase a carrier board that is known to work with the X first, such
as Robodyssey's Advanced Motherboard (RAMB) - Chris Odom details how
to set it up in his new book. Having said this.......

I did learn that for some reason, the PC that I was using could not
open the COM port that I was connected to (COM1). I even tried the
Stamp BOE-Boe and had no luck.

I moved my work to another computer that I have at home and the BOE-
Bot with the stamp worked fine. I then decided to place the Stamp 2
chip into the Motor Mind C Carrier board and try some sample code
provided from the Solutions-cubed. The Stamp2/MMC works! My bot came
to life. Although this works, I still want to take advantage of the
BX's parrallel processing capability. So...

Once I load the BasicX software (at the office) onto that other home
computer of mine(no internet connection), I will try: 1)placing the
BasicX into Parallax's BOE-bot Carrier Board, and 2)trying the BasicX
again with the MMC carrier board.

I'm hopful that the major problem was due to my computer -- strangly
I checkked all the COM port settings on both computers and they are
identical - even the CPUs are the same make (COMPAC DeskPro)?

You mentioned that pins 7&8 need to be connected for the Stamp. What
would happen if pins 7&8 are connected and you try to communicated
with the BX-24p? Since I am using carrier boards designed for the
Stamp, do you think this may be a problem?

Thanks,

John


Reply by Mike Perks January 21, 20062006-01-21
Dr. John R. Wright, Jr. wrote:

> Hello everyone,
>
> I am having the same problem as Denis, but different board -- can not
> halt the BasicX and establish communication. My board (Motor Mind C -
> BS2) does not have a reset button, however.
>
> Does anyone have any ideas? - I've been struggling all day to
> establish a simple download.

Does it work standalone on a simple breadboard? The RS232 is wired
slightly differently to that for BX-24. The BS2 requires pins 7 and 8 to
be connected.

Mike
http://home.austin.rr.com/perks/micros/


Reply by Dr. John R. Wright, Jr. January 21, 20062006-01-21
Hello everyone,

I am having the same problem as Denis, but different board -- can not
halt the BasicX and establish communication. My board (Motor Mind C -
BS2) does not have a reset button, however.

Does anyone have any ideas? - I've been struggling all day to
establish a simple download.

John
--- In basicx@basi..., "Bookwalter, Dan"
<Dan.Bookwalter@h...> wrote:
>
> Denis >
> Have you tried to do a reset using the reset button input ?? I have
the
> same issue from time to time and the reset solves the problem for
me...
> Good luck >
> Dan >
> ________________________________
>
> From: basicx@basi... [mailto:basicx@basi...] On
Behalf
> Of hpj720
> Sent: Friday, January 20, 2006 3:38 AM
> To: basicx@basi...
> Subject: [BasicX] Unable to Halt BasicX error message...HELP PLEASE >
> I just finished assembled my new BugBrain, a little robot using
> BasicX.
>
> When I connect it to my PC using BasicX software, I receive the non-
> stopping 'Hello.World' message from my BugBrain to my PC screen
> properly but I can't communicate to the microcontroller from my PC.
>
> Message I get is 'Unable to Halt BasicX'.....and always getting
> serial message error codes.
>
> I have double checked all assembly steps, all my soldiers,
> everything but no result. The little lights on BasicX
> microcontroller lights on and off fastly. The LEDs in front of
robot
> get ON which is normal.
>
> So, I have checked the BasicX soldiers and connectors, I got a
check
> too to DB-9 adaptor soldiers...everything seems ok.
>
> I've uninstalled and reinstalled the BasicX PC software...problem
is
> still there....I've checked in documentation that proper DB-9 pins
> no are correctly connected to proper BasicX ppins no, seems
> correct...ANY IDEA TO SUGGEST????
>
> Denis from Canada at d.doucet@g... >
> ________________________________
>
> > . >
> ________________________________ > This electronic mail transmission contains confidential information
intended only for the person(s) named. Any use, distribution, copying
or disclosure by any other person is strictly prohibited. If you
received this transmission in error, please send an electronic mail
message to postmaster@h...
>
>