473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Controlling a robot using c++

Hi, guys. I am currently trying to develop a program made under c++ that could control a robot, i mean movement. I thought of using computer ports like serial or parallel which is not a bad idea. That's the first question: How to read and give output to serial and parallel ports.

Then, and if the previous is not a good choice, i would like to know how to use a wireless technology.In this area I HAVE NO IDEA HOW IT WORKS, so please tell me whether i will have to buy some kind of devices, and if so, how to make them work. This is a competition and the robots will have to fight against each other, so i'd rather make them work without cables and quite properly. Because of that it would be great to learn something about wireless. If you do not know about wireless, tell me about wired connections anyway.
Your help will be much appreciated

Kind Regards,
Paul
Jul 26 '07 #1
4 2598
Preferently to work under WINDOWS XP
Jul 26 '07 #2
Banfa
9,065 Expert Mod 8TB
Forget about parallel, I would say your 2 options are serial(RS232) or ethernet, weather they are wire or wireless is a transport medium decision not a transport protocol decision. That is you can run ethernet or RS232 over a wired or wireless link.

For RS232 I think you pretty much ought to be able to buy some off the shelf modules that will transmit and receive (in fact you can get off the shelf modules that will convert RS232 to wireless enthernet).

I problem with any for of wireless link is security, it is harder to disrupt or hack a wired link, with a wireless link a simple white noise transmission with enough power at the right frequency could be enough to cause you to loose control of your robot. With ethernet there is always the possiblility of an external source managing to find and connect to the ip address your robot is located at. None of these problems are so prevalent with a wired link.

It is worth contacting the competition organisers and asking what provision was been made for the arbitration of various wireless communications all operating at the same time, because I would assume that many other people will be doing the same thing.
Jul 26 '07 #3
arunmib
104 100+
Controlling a robot, as far as I see is communicating with it's processor/controller from your computer. So, first see whether the processor/controller you use supports RS-232 or wireless communication. In my opinion most of the modern day processors/controllers support RS-232, RS-485, RS-422 .......stuffs. Next, investing in wireless communicator (if not supported by your processor/controller) would be a waste of resource (unless you NEED it). For controlling (transferring of data) there are communication protocols like SLIP, UDP and control can be obtained by setting the registers...For more information as how to proceed just go through your processor/controllers manual....

Correct me, if I have seen/said any point wrongly...
Jul 26 '07 #4
JosAH
11,448 Expert 8TB
I'd go for the 'BOB' way (Brains On Board). Test versions could of course have
their brains operational in another computer using whatever communication link,
but for the final version, I'd suggest a 'BOB'. There are very small motherboards
available that run Embedix, an embedded Linux version. It would be an interesting
project that way.

kind regards,

Jos
Jul 26 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Adrian Lumsden | last post by:
Hello, I have an app where I have to screen scrape to capture an image from a JMF film player. The user is given a dialog with a list of frames that can be exported as images. If the one they...
1
by: Jesper Kampfeldt | last post by:
Hi, Can anybody tell me how to move and click with the mouse cursor out side of a swing frame. More specific, I what to make a java program for doing a macro that press a button in a windows...
0
by: Jonathan Vance | last post by:
I am looking for a python robot that Van Rossum released with python 0.9.8. It may have been the first web robot (see http://www.webhistory.org/www.lists/www-talk.1993q1/0060.html). I've had no...
1
by: clemenr | last post by:
Hi. I would like to know if the following is feasible in JavaScript. I would create a frameset where the top frame includes JavaScript. The bottom frame would be directed to the login page of an...
8
by: Andrey Mosienko | last post by:
We are using PostgreSQL about two years beginning from version 7.0. I have one question about starting postmaster: Is there way to detach it from the controlling terminal under FreeBSD? My...
1
by: nnobakht | last post by:
Hi, I'm working on an assignment for school which i am a bit stuck on. The assignment is to make robot which i have been given the library for move around different boards and collecting "coins" and...
0
by: Shiv Kumar | last post by:
Rational Robot is a complete set of components for automating the testing of Microsoft Windows client/server and Internet applications running under Windows NT 4.0, Windows XP, Windows 2000, and...
1
by: Manticure | last post by:
I know there is a robot class in java that has mouseMove(int x, int y) function to move the cursor to a certain coordinate. Is there a similar way to do it in C++? Also is there a way to simulate a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.