Hi all, need some basic help with the bx-24.

Started by Cain April 12, 2008
My experience with microproccesors is very limited. Last semester we
did a sumo robot using th bx-24 but we were basically spoon fed the
programs. I am now trying to use the bx-24 to read continuity changes
and store the data in an array. Unfortunately I am having alot of
problems even getting started. First off I can't get the program to
compile on my laptop as it is saying that the port is unable to be
opened. I am using a converter between the chip and my laptop that
converts the serial cable to a USB. Is this the problem? The port on my
computer is labeled USB-D. So I am really confused on what port (1-10)
would coorspond. Also if anyone has a sample code that might help too.

Thank You for any help
Kerry Cain
Hi Kerry,

You'll need to determine the correct com port number in order to
download anything to the chip using the USB-Serial adapter you have
there. One way to do it is to open the device manager and look under
the Ports(COM&LPT) heading for your adapter device. You'll know that
you have the right device if it disappears from the list when you
unplug it from the USB port. Once you've located the device, you
should see a (COMx) next to it's name in the list, where x is your com
port number. If you don't see a Com port number listed, you'll need
to look to the manufacturer of your adapter for advice.

Once you have the number you should be able to connect to the chip.
You can ignore tha A B C D designations on the USB ports, they don't
relate to anything in the software (at least not on the level we're
dealing with here).

It would be hard to offer advice on the actual programming without a
more specific question. You'll find that the forum is great for
answering questions, but not so great at spitting out complete
applications. Try putting something together and see what doesn't
work. Then post the relevant code with a description of what you
think it should be doing. I'm sure someone will be able to help you
diagnose the problems.

You seem to be a bit overwhelmed with the whole process. I can
certainly be very frustrating in the beginning. The key is to move
one step at a time (like getting the downloads to work before you
start writing code), and make sure you understand what you are doing
as you are doing it. Remember that the correct way to work through a
problem is not to change things blindly until it works. This 'brute
force' method takes longer and you never really understand what the
code is doing. The better method is to identify the core of the
problem and determine all of the causes. Usually, once you find the
problem and understand its' nature, the solution is self-evident.

-Don

--- In b..., "Cain" wrote:
>
> My experience with microproccesors is very limited. Last semester we
> did a sumo robot using th bx-24 but we were basically spoon fed the
> programs. I am now trying to use the bx-24 to read continuity changes
> and store the data in an array. Unfortunately I am having alot of
> problems even getting started. First off I can't get the program to
> compile on my laptop as it is saying that the port is unable to be
> opened. I am using a converter between the chip and my laptop that
> converts the serial cable to a USB. Is this the problem? The port on my
> computer is labeled USB-D. So I am really confused on what port (1-10)
> would coorspond. Also if anyone has a sample code that might help too.
>
> Thank You for any help
> Kerry Cain
>

I am affraid that it may be. I have had problems using adaptors, but when I used the usual RS232 UART I had no trouble. But I can see how you can use the BX 24 to do what you want. I would pick a resistor to use as a shunt. Send a regulated voltage thru the resistor to the load under test and measure the V dropped. Convert that voltage to current and do the math. V/ I= R. Then answer is R of shunt minus R

----- Original Message ----
From: Cain
To: b...
Sent: Friday, April 11, 2008 12:47:13 PM
Subject: [BasicX] Hi all, need some basic help with the bx-24.

My experience with microproccesors is very limited. Last semester we
did a sumo robot using th bx-24 but we were basically spoon fed the
programs. I am now trying to use the bx-24 to read continuity changes
and store the data in an array. Unfortunately I am having alot of
problems even getting started. First off I can't get the program to
compile on my laptop as it is saying that the port is unable to be
opened. I am using a converter between the chip and my laptop that
converts the serial cable to a USB. Is this the problem? The port on my
computer is labeled USB-D. So I am really confused on what port (1-10)
would coorspond. Also if anyone has a sample code that might help too.

Thank You for any help
Kerry Cain

__________________________________________________


I had the same problem, but in my case it was the AC adapter I was using that couse this problem. I change the AC adapter and every thing went right.

To: b...From: d...@yahoo.comDate: Fri, 11 Apr 2008 19:47:13 +0000Subject: [BasicX] Hi all, need some basic help with the bx-24.

My experience with microproccesors is very limited. Last semester we did a sumo robot using th bx-24 but we were basically spoon fed the programs. I am now trying to use the bx-24 to read continuity changes and store the data in an array. Unfortunately I am having alot of problems even getting started. First off I can't get the program to compile on my laptop as it is saying that the port is unable to be opened. I am using a converter between the chip and my laptop that converts the serial cable to a USB. Is this the problem? The port on my computer is labeled USB-D. So I am really confused on what port (1-10) would coorspond. Also if anyone has a sample code that might help too.Thank You for any helpKerry Cain

_________________________________________________________________
Blog your life in 3D with Windows Live Writer.
http://www.windowslive.com/overview.html?ocid=TXT_TAGLM_Wave2_wl_writer_022008


--- In b..., "Don Kirby" wrote:
>
> Hi Kerry,
>
> You'll need to determine the correct com port number in order to
> download anything to the chip using the USB-Serial adapter you have
> there. One way to do it is to open the device manager and look under
> the Ports(COM&LPT) heading for your adapter device. You'll know that
> you have the right device if it disappears from the list when you
> unplug it from the USB port. Once you've located the device, you
> should see a (COMx) next to it's name in the list, where x is your com
> port number. If you don't see a Com port number listed, you'll need
> to look to the manufacturer of your adapter for advice.
>
> Once you have the number you should be able to connect to the chip.
> You can ignore tha A B C D designations on the USB ports, they don't
> relate to anything in the software (at least not on the level we're
> dealing with here).
>
> It would be hard to offer advice on the actual programming without a
> more specific question. You'll find that the forum is great for
> answering questions, but not so great at spitting out complete
> applications. Try putting something together and see what doesn't
> work. Then post the relevant code with a description of what you
> think it should be doing. I'm sure someone will be able to help you
> diagnose the problems.
>
> You seem to be a bit overwhelmed with the whole process. I can
> certainly be very frustrating in the beginning. The key is to move
> one step at a time (like getting the downloads to work before you
> start writing code), and make sure you understand what you are doing
> as you are doing it. Remember that the correct way to work through a
> problem is not to change things blindly until it works. This 'brute
> force' method takes longer and you never really understand what the
> code is doing. The better method is to identify the core of the
> problem and determine all of the causes. Usually, once you find the
> problem and understand its' nature, the solution is self-evident.
>
> -Don
>
> --- In b..., "Cain" wrote:
> >
> > My experience with microproccesors is very limited. Last semester we
> > did a sumo robot using th bx-24 but we were basically spoon fed the
> > programs. I am now trying to use the bx-24 to read continuity changes
> > and store the data in an array. Unfortunately I am having alot of
> > problems even getting started. First off I can't get the program to
> > compile on my laptop as it is saying that the port is unable to be
> > opened. I am using a converter between the chip and my laptop that
> > converts the serial cable to a USB. Is this the problem? The port on my
> > computer is labeled USB-D. So I am really confused on what port (1-10)
> > would coorspond. Also if anyone has a sample code that might help too.
> >
> > Thank You for any help
> > Kerry Cain
>
Hi everyone i am wondering if anyone knows why my basicx-24 is unable to halt when using my usb-serial adapter (r232) when i open my editor and put on the hello world project and compile it it gives me a run-time error 203 ( meaning that their is un-authorized information comming in i think) also on the top of the basic-x app it says that i have no communication can anyone help me?