![]() |
|
![]() | ||
|
Subject:
robotic arm
Category: Computers > Programming Asked by: bigtee-ga List Price: $10.00 |
Posted:
01 Nov 2002 21:50 PST
Expires: 01 Dec 2002 21:50 PST Question ID: 96165 |
How do you program a robotic arm in Basic via the printer port that has five axes of movement. The gripper, wrist, elbow, shoulder and base. This program should indicate two or three movements for each axes. Thank you. | |
| |
| |
| |
| |
|
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
Subject:
Re: robotic arm
From: mathtalk-ga on 03 Nov 2002 10:15 PST |
Hi, bigtee-ga: It sounds like the PC interface (API) that the manufacturer supplies with the robotic arm uses a DLL (dynamic link library, since you say it is for Windows). QBasic is a thoroughly DOS based product and there is no satisfactory way to have it call DLL's directly. Executing a DLL requires a Windows operating system in order to do certain addressing fixups that are not required in DOS. The closest one can come in QBasic to a DLL is loading assembly code into a string and executing that, which would not be practical for a large piece of code. If your interest in using QBasic is because of programming skills in that area, you might consider "upgrading" to Visual Basic or another product, Liberty Basic: http://www.libertybasic.com/productinfo.html which preserves the command-line syntax you may be used to but allows for calls into DLL's. A review of QBasic alternatives is found here: http://www.hulla-balloo.com/vplanet/arch197.shtml and mentions some concerns about the slow execution of Liberty Basic (though I would imagine a gigahertz CPU makes up for most anything along these lines). However there are open source Liberty Basic compilers available at this site: http://lbpp.sourceforge.net/ for the ultimate in performance along these lines. Here's a site with a focus on the use of BASIC from either DOS or Windows for research into robotic control: http://www.finitesite.com/robasic/software.htm I didn't post this as an answer because, from my reading of your question, you would really like to control the robotic arm without relying on the PC interface supplied by the manufacturer. If you can clarify your goals a bit further, I'd be more confident about whether I can be of assistance to you. regards, mathtalk-ga |
Subject:
Re: robotic arm
From: bigtee-ga on 03 Nov 2002 12:58 PST |
Greetings Mathtalk-ga: Firstly, thank you for your interesting comment. Secondly, you are correct in your last paragraph in that I do wish to control the robotic arm w/o the supplied pc interface. Thank you. |
Subject:
Re: robotic arm
From: mathtalk-ga on 04 Nov 2002 10:12 PST |
Hi, bigtee-ga: Here's how I would proceed to develop the software you describe. Working from the pin-out diagrams for the printer port (parallel/Centronics? serial/DB9??), I would develop routines similar to each described in the manufacturer's existing Windows DLL. Generally the signals on these ports are controlled by POKEing values into defined low-range memory locations on the PC, known in the DOS world as IO ports. If you were more specific about what is meant by the printer port, I could point you to the memory mapping of those addresses. Assuming you have done a bit of low-level (PEEK/POKE) programming with QBasic, you would have the outline of program architecture in hand. regards, mathtalk-ga |
Subject:
Re: robotic arm
From: bigtee-ga on 04 Nov 2002 14:51 PST |
Hello again Mathtalk, It has been a lightyear ago when I last did Basic. That was when it was called Basic, and not like today when you have Qbasic, VBasic, etc. Anyway, I seem to get your drift. I needed some early guidance to help me think ahead while I await my QBasic book from Amazon.com. I used the term printer port because I thought that to give directions to an external device the instructions are sent via the printer port. Is this the case or not? Thanks. |
Subject:
Re: robotic arm
From: mathtalk-ga on 04 Nov 2002 18:37 PST |
Hi, bigtee-ga: The manufacturer offers (for just under $90) both DOS and Windows "interfaces" that work with the parallel port, so obviously that would be one feasible approach: http://robotikitsdirect.com/html_files/products_html/IBM007.html Presumably one advantage of this is that it "cleanly" replaces the hand-controller that apparently comes with the base kit. Most hobbyists who do motor activations on the "cheap" use a serial port interface, as the pinouts are a bit simpler to understand and program. Here's one hobbyist's account of building a controller/interface using the serial port (RS-232) approach: http://www.litewav.com/auton/arm.html Apparently the March 2000 issue of Robot Science and Technology magazine has a couple of relevant articles to your quest, one on the mechanical design of this OWI/Movit training arm (including added positional circuitry) and one on creating a computer interface (albeit for Windows 95, not DOS). See here, about 15% of the way down the page: http://www.robotbooks.com/robot-magazine.htm regards, mathtalk-ga |
Subject:
Re: robotic arm
From: bigtee-ga on 04 Nov 2002 21:53 PST |
Greetings Mathtalk, Well buddy, you have given me a lot to digest. I am going to need a few days to pick a direction. But at the moment it seems that I am going to write a basic program and use the serial port. I just need to wait for my book to arrive that I ordered on Sunday. By the way, that referal to the RC-232 was great. Thanks, |
Subject:
Re: robotic arm
From: mathtalk-ga on 13 Nov 2002 20:02 PST |
Hi, Bigtee: I suggest that if you are no longer interested in receiving an answer to this, your initial query, that you go ahead and expire it. This would be fairer to other experts who might be spending time trying to determine if they can provide the research necessary to resolve your question. regards and best wishes with the project, mathtalk-ga |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |