General Interfacing Question

I am still fairly new to programming knowing BASIC and self teaching my self C++. I would like to get in to programming robots so my question is this. How do you interface and program robots using Microsoft Visual BASIC and what parts and/or micro controllers would I need or would work? I would also like to know how to do it in Microsoft Visual C++ to but I would prefer BASIC right now. Any and all help would be much appreciated. Thanks :slight_smile:

PS. If you are wondering I am mainly wanting to build a defcon bots or other automated robots like that but more advanced. Thanks again.

Would I be able to sync the programs made with the Robotics Developer Studio with programs made in Microsoft Visual BASIC like a wireless system to control the robot remotely? I know you can do this to with the Robotics Developer Studio but I just want to know if you can, and if you can how to?

PS Thanks for the advice so far.

Thank you all for your help. I’m hoping to start on my project soon. Once agin thank you for all your help.:smiley:

PS.To short on time to spell check sorry.

What I mean is if I rig a RC airplan to work off a lap top with a VB program to follow waypoints using gps or return to a preset location and shut off unnecessary systems if the battery level reaches a certain percentage before then would I have to have it conected to my lap top the whole time or would I be able to program it to still perform those functions and orders if it lost connection to my lap top?

Thanks for your help.

Hi everyone!
Im just new in this forum.I am interested in robotic but my programming background is on PLC only.I have no experience in micro controller.
Can you advise what should i do to start with.

Thanks and regards,
Allan

MS Robotics Developer Studio is a toolkit for robotics development. You can create services in VB that work in unison. The actual choice of language is not the issue. It is free so download it and try it out.

You can do whatever you want. You could simply send commands to a controller on a mobile robot or use a microcontroller on the robot to give it “intelligence”.

The Serializer may interest you as a robot controller:

robotshop.ca/summerour-serializer-robot-controller-4.html

With that type of controller, the PC is in charge and send commands to the controller.

If you want an entirely autonomous robot, the Arduino can be programmed in C:

robotshop.ca/arduino-usb-microcontroller-board-1.html

Once programmed, the Arduino is unplugged from the PC and all the logic is on the robot.

This is a very broad question.

If you wanted to program in Microsoft Visual Basic, you could actually just drop the compiled application on a PC based robot:

robotshop.ca/Professional-Robot-Development-Platforms.html

Otherwise, the VB application could puppeter a robot via wireless communication such as WiFi or Bluetooth.

You could also control devices right from your USB port such as actuators and take inputs from sensors using Phidgets:

robotshop.ca/phidgets-en.html

Then there is Microsoft Robotics Developer Studio


It is truly limitless what you can do, just let your imagination fly :wink:

The Serializer can be used via USB using the optional USB module:

robotshop.ca/robotics-connection-serializer-usb-interface-2.html

The Serializer is a general “Robot Controller” for .NET that allows input from sensors and output to actuators. The Phidgets are specific interface and control kits. It is a matter of choice and this depends on what you are doing.

Yes, of course VB can be used to control robots. Any language can be used to represent your logic. Robot AI can require advanced programming skills so we suggest you get a good book on AI programming to learn more.

You will definitely need to keep some of the logic on the airplane, in case commnuication is interrupted.

Nous attendons toujours des nouvelles Ă  propos du systĂšme WiFi de VEX. VEX a Ă©tĂ© dĂ©veloppĂ©e Ă  l’entour de la compĂ©tition FIRST USA. Le concept d’utiliser et d’enseigner la robotique aux Ă©coles est en pleine expansion et tous leurs produits sont dĂ©veloppĂ©s pour l’objectif d’ĂȘtre facilement utilisĂ©es par les Ă©tudiants et les enseignants.

Avez-vous vu la gallerie d’images sur le site VEX? Nous avons une section dans le centre d’apprentissage à propos du systùme VEX.

Hey RobotShop, ça va toujours ?

Tu ne m’avais pas parlĂ© de ce bijou :
robotshop.ca/summerour-se
troller-4.html

C’est pas USB mais c’est aussi intĂ©ressant que Phidgets. Qui plus est, c’est du VB et c’est compatible avec des senseurs d’autres marques. Alors que Phidgets offrent des API intĂ©ressants pour un contrĂŽle rapide, celui-ci offre une compatibilitĂ© avec plusieurs marques. L’un est USB et l’autre serial (qui pourrait fort bien se convertir en USB).

Le problĂšme avec Phidgets c’est au niveau des moteurs Ă  rotation continue
 Cela me semble dispendieu et un peu limitĂ© pour les rĂ©sultats attendus.

Entre ce bidule programmable en VB.NET et Phidgets, quel est ton avis ?

Bonne Année à votre équipe et à vos familles ! :slight_smile:

Jeff

If it can help you, my actual project includes this :

EEE-PC laptop : ‘micro’ controler (small, inexpensive)
VEX products : for the frame and mobility
Phidgets : inexpensive and really good sensors
Delphi langage : control phidgets (with my own programming project called Synopsis)
MAT LAB : control VEX
Windows XP with SAPI 4.0 : vocal recognition

after a LOT of searching, I didn’t find better solution to make a robot.

the iCreate (irobot.com) is cool because it includes already 30 sensors
 But the main base is limitless


Good luck

AI REQUIRES advanced programming skills. To start, you should look at what do you want to do with your robot. Keep in mind that, sometimes, you have no choice but to adapt human actions to a robot action. For example, you want your robot to go get a beer for you. The simpliest solution is to put the robot in the same starting place each time and follow the exact same path each time (don’t forget to put the beer at the exact same place in the frige). After taking the beer, the robot closes the door and brings the beer to the starting position. AI is useless in this scenario because the robot is always doing the same actions again and again


AI would be used, for example, to recognize the road to get to the frige, to recognize a beer and to recognize the individual making the request
 it’s hard to program and long
 but it’s harder to understand all the parameters of a recognition solution. What is a “beer”? What is a “frige”? How it recognizes a beer and how it can get it requires intelligence. For now, humans must adapt robots to do their ‘job’ though it is my guess that in the next decade, especially with nano technology, robots will be more ‘human’.

In regard to your question “So are you able to make automonous robots programed in VB?”, there ‘kind’ of solution. In my opinion, the best solution is to wirelessly control a robot using a PC with an OS. A good start would be to use a Phidget product with a little VB program. In my opinion, Microsoft robotic studio is incomplete and not so easy to understand after all.

Good luck

Jeff

Merci pour les corrections Coleman. Si je fais un texte de 25 pages, vas-tu tout corriger ? hehe
 Je blague bien sur. J’apprĂ©cie sincĂšrement ton aide pour amĂ©liorer mon anglais. Hydro-QuĂ©bec ne me permet pas de le pratiquer et je ne regarde pas la TV alors
 Merci encore.

By the way, avez-vous des nouvelles sur le microcontroleur wi-fi de Vex ? Le site est peu bavard et je me demande bien si le projet est annulĂ©. Il y a une chose que je ne comprends pas : pourquoi Vex oriente la vente de ces produits pour la compĂ©tition ? Ils ont une gamme de produits qui peut permettre la construction de robots assez sophistiquĂ©s. Le ‘Tumbler’ et le ramasseur de balles
 c’est tellement pratique, wow
 Connaissez-vous un bouquin illustrant quelques projets Vex ?

Merci !

Oui, j’ai regardĂ© pendant de longues heures la gallerie d’image sur le site de VEX et j’ai aussi consultĂ© votre site sur les projets. Il n’y a que le protobot, le tumbler et le tomahawk illustrĂ© (sans instruction pour le dernier). C’est plutĂŽt limitĂ© quand on compare avec le mindstorm de lego.

J’ai une question technique Ă  vous poser Ă  propos du VEX : si je fais tourner un moteur manuellement, est-ce que je peux lire la rotation avec le microcontroleur ? J’aimerais utiliser le mĂȘme principe que le robotsapien pour mon projet : enregistrer ces mouvements pour ensuite les reproduire.

Merci,

AprĂšs quelques recherches supplĂ©mentaires, les spĂ©cifications des moteurs VEX continues et Ă  positionnement (100 degrĂ©) n’indiquent pas la possibilitĂ© de lire une rotation mais seulement d’en produire


Cependant, j’ai trouvĂ© ceci :
vexrobotics.com/vex-robotics-analog-accelerometer-v1-0.shtml

"The VEX Accelerometer measures accelerations on three axis simultaneously. By measuring the acceleration of the robot, one can calculate the velocity of the robot, and more importantly the distance this robot has travelled. Accelerometers are also great for detecting collisions and determining if the robot is stopped or moving. "

et le potentiomĂštre :
vexrobotics.com/vex-robotics-potentiometer-kit.shtml

Donc il est possible de lire un dĂ©placement totalement
 ainsi, de me permettre de crĂ©er des objets du type “macro - excel” pour exĂ©cuter des actions.

C’est vraiment gĂ©nial


Merci,

yes you can as it’s possible on all the programming langages. Keep it mind that ‘logic’, in this context, will probably demands some sensors to interact with environment. Keep in mind that if the programming logic is not enough think, you risk to loose your airplane and your money
 Programming need a lot of tests and thinking. An example of a real risk : i want to program just a little car with four wheels that moves anywhere in my house and at random. If I forget the stair, it’s game over for my project
 An airplane acts in a 3 dimensional context. A car acts on a floor which is only in 2 dimensions. It will be a nice challenge to program logic in your project.

Before trying to put logic in a program, try to control a ‘robot’ and then, you will be able to understand more about logic.

Good luck,

Jeff