Putting robotics at your service™

Free shipping on orders over $200

The Programing of the Basic Atom Pro.

Print view Share :
Previous topicNext topic

Page 1 of 4 [ 47 posts ]

1, 2, 3, 4
Rookie ( offline )
Posts: 22
Posted: 2011-11-30 15:02 
My students are building a robot arm for our class assignment. We're using a ALD5 and a basic mirco pro chip with it, so we can use a playstation controller to use it. When we search for the for the preferences in the IDE, it finds it on com 8, but when we hit program, it states "A Basic Atom Pro must be connected for automatic detection." What does this mean and what do we do?


User avatar
Guru ( offline )
Posts: 9257
Posted: 2011-11-30 15:20 
Is the BB2 connected to the serial port or USB to serial cable, and is the LED lit?

Does the BB2's speaker emit a clicking sound when you apply power?

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


User avatar
Rookie ( offline )
Posts: 34
Posted: 2011-11-30 21:19 
Hi, Im one of the students building this arm. The BB2 is conncted to a Laptop by a USB converter and then that is plugged into the cable provided. The BB2's green light is on, and it beeps three tones every couple seconds steadily when powered on with a 9vdc.


User avatar
Guru ( offline )
Posts: 9257
Posted: 2011-11-30 22:48 
If it's beeping tones then it sounds like it has been programmed at least once before. The first suspect when unable to program is the USB to serial cable. Here is a thread for that. viewtopic.php?t=4702

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


User avatar
Rookie ( offline )
Posts: 34
Posted: 2011-12-01 10:47 
So what would it sound like if we properly downloaded the right program for the chip? And we are also currently using a Keyspan USA-19HS....should we look into a better one?


User avatar
Guru ( offline )
Posts: 9257
Posted: 2011-12-01 11:13 
Did you look at the link I provided? There is a lot of useful information there.

When the Atom is shipped it has a program that toggles the I/O pins on and off. If the speaker is enabled the result is a clicking sound. You have not told me which program you are using, so I am not sure what tones would be generated by the speaker. I was merely making an observation.

In order to troubleshoot effectively we must follow a format where you provide information, we analyze the info and make suggestions. then you provide feedback on the suggestions we recommend. I directed you to a forum thread that may very well have the solution to your problem, but I have no idea if you have even looked at it.

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


User avatar
Rookie ( offline )
Posts: 34
Posted: 2011-12-01 21:56 
I do apologize, I'm very new to this use of the computer and circut boards. i did read your link, but i couldnt find anything that seemed helpful yet. I feel we havent expressed our ultimate goal to you, which is to be able to control our ALD5 arm with a PS2 controller. When we first powered the board, the Atom clicked as you said it would. We went to the Basic Atom Pro programming tutorial once the Bot Board 2 was ready and plugged into a 9vdc. The tutorial said to download the lastest IDE, so we did, and we downloaded the Sample program for it, but after that, the IDE found and connected to the Atom Pro on Com8. We followed the directions and clicked the PROGRAM button, but we always get the message that is stated above; "A Basic Atom Pro must be connected for automatic detection." Now, as i said, the clicking has turned into beeps, and im not sure if we programed the sample program correctly. Is this a better description of our situation?


User avatar
Rookie ( offline )
Posts: 34
Posted: 2011-12-01 22:01 
Oh, I also failed to mention that if we click the CONNECT button on the output now, numbers start appearing, and they seem to be counting the number of beeps, like when it first connects, 1 2 3 4 5....etc. will pop up as the BB2 beeps and continue for as long as we are connected.


User avatar
Guru ( offline )
Posts: 9257
Posted: 2011-12-02 09:30 
Ok now we are communicating. Show me the program or the tutorial it's in so I know what program you are putting on the Atom. It sounds like it currently has a PS2 test program.

What brand and model is the USB to serial cable?

Is this a desktop or a laptop PC?

Does the IDE recognize more than one serial port?

The serial port can only be used by one program at a time. Are there any other programs running that use the serial port?

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


User avatar
Rookie ( offline )
Posts: 34
Posted: 2011-12-02 11:57 
Ok so the program is a sample program given to us here in step 2: http://www.lynxmotion.com/images/html/build147.htm
The Program on the IDE, called aprotut1:

;The compiler will ignore any commands
;or text after a ; or '

x var word

start

;this will sound 3 ascending beeps
sound 9,[150\2500, 150\3000, 150\3500]
;pause for one second
pause 1000
;add one to the count
x = x + 1
;sends the x back to the computer
serout s_out,i9600,[DEC x, 13]

;repeat
goto start

We are using a KEYSPAN model USA-19HS usb to serial cable, and its being done on a laptop PC. Could you explain to me what a serial port is? Im not quite sure how id know if the IDE is recognizing more than one or if its being used by more than one program.
Also, i think I'm mistaken, the Atom was programed through using Basic Micro Studios instead of the lastest IDE. Is there a big difference between using the two at all?


User avatar
Guru ( offline )
Posts: 9257
Posted: 2011-12-02 15:40 
The USB port is a universal serial bus. It is converted into a Com port by the cable (hardware) and it's driver (software). When the IDE connects to the Atom chip, it does so using the Com port. Ala com8. You can choose another com port via the pull down. If only com8 exists, then that's the only com port you have.

Ok so now the situation is, you used to be able to program the Atom, but now you cant. And from your wording the com port changed from something else to com8. Have you tried to look at the serial port driver for anything that can be changed? Have you tried uninstalling the driver and let it reinstall? Sometimes which USB port the cable is plugged into makes a difference. You should show us some images of your wiring. If you are using a 9vdc battery replace it. You would be surprised how many people fix their programming issues when they replace an almost dead battery.

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


User avatar
Rookie ( offline )
Posts: 34
Posted: 2011-12-04 20:16 
I currently do not have the arm and laptop in my possession now, but when i do, ill let you know if any of that works. I just have another question. What's the difference between this program for the PS2 controller: http://www.lynxmotion.com/images/html/build034.htm and this program in Step 3, table 3-1 Atom Pro, arm1 pro.bas for the PS2 controller: http://www.lynxmotion.com/images/html/build091.htm ?

Also, what is the serial driver and how do i uninstall it?


User avatar
Rookie ( offline )
Posts: 34
Posted: 2011-12-08 15:49 
So, I just programed the Atom Pro with this ps2 program:
http://www.lynxmotion.com/images/html/build091.htm
its in step 3, table 3-1 and its labeled arm1 pro.bas
Now, we still have no response from the arm with a controller, and the BB2 beeps very loudly. Is there anything i should do to the bot board? I noticed a lot of the jumpers had been removed from it on the schematic in that link, so i removed them. Should the Basic Micro Sudios Terminal 1 be showing something when i connect to it? Please help, the beeping is driving me nuts!!!!!


User avatar
Guru ( offline )
Posts: 9257
Posted: 2011-12-08 17:08 
DrumBum535 wrote:
I currently do not have the arm and laptop in my possession now, but when i do, ill let you know if any of that works. I just have another question. What's the difference between this program for the PS2 controller: http://www.lynxmotion.com/images/html/build034.htm and this program in Step 3, table 3-1 Atom Pro, arm1 pro.bas for the PS2 controller: http://www.lynxmotion.com/images/html/build091.htm ?

Also, what is the serial driver and how do i uninstall it?


The first program is a test program for the PS2. It doesn't make a robot move, it just sends the values from the PS2 to the terminal window so you can verify it's working. The second program actually controls the arm.

The serial driver is what is installed when you insert the USB to serial cable into the USB port. This is normal PC stuff... You open Control Panel, click Device Manager, click Ports (COM & LPT) then right click on the displayed port. On my machine it says, USB Com Port (COM3). Right clicking will bring up a menu that has uninstall listed. After it is uninstalled you can plug the device back in to get a new fresh driver install.

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


User avatar
Guru ( offline )
Posts: 9257
Posted: 2011-12-08 17:16 
DrumBum535 wrote:
So, I just programed the Atom Pro with this ps2 program:
http://www.lynxmotion.com/images/html/build091.htm
its in step 3, table 3-1 and its labeled arm1 pro.bas
Now, we still have no response from the arm with a controller, and the BB2 beeps very loudly. Is there anything i should do to the bot board? I noticed a lot of the jumpers had been removed from it on the schematic in that link, so i removed them. Should the Basic Micro Sudios Terminal 1 be showing something when i connect to it? Please help, the beeping is driving me nuts!!!!!


The speaker can be muffled with as piece of tape, or disabled by pulling the speaker enable shunt. The code beeps until the PS2 controller connects to the receiver. When in this state you may notice one of the LEDs on the receiver blinking. It should be on steady when it is connected. You need to get the beeping to stop by way of making sure the PS2 controller cable is installed properly and the PS2 transmitter is turned on.

It might be time to see some images of your wiring to help you further.

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


1, 2, 3, 4

All times are UTC - 5 hours [ DST ]. It is currently 2014-10-24 05:29
Feedback Form
Feedback Form