Thread: Help with programming my mobile robotic arm in C

  1. #1
    Registered User
    Join Date
    Sep 2010

    Help with programming my mobile robotic arm in C

    Hi everybody this is my first time posting on here. Im working on a senior project of a wireless mobile robotic arm that I bought from a company called Lynxmotion Ive arealdy built it and made it wireless, now I want to write a program to show both in my presentation. I used their IDE when I was testing a few things that was in Basic language. There is an option under tools/preferences so I can use C/C++ which I do have some knowledge of I took the class a couple yrs ago. Im taking a class right now for programming microprocessors and my Prof. is teaching it in C (not C++). I think between that class and this forum I can build a program for my bot, maybe trying to keeping it in C. Id like for for it go forward about 3 ft, pick something up and then move it somewhere else. A problem that I may have is that the usb/serial port cable is pretty short, about 8" long. I dont know if I can compile and run the program, then unplug it so it can run the bot, if that makes sense. If it helps it does have two separate switches; one for the microcontroller(servos) and motorcontroller for the motors. Some how delay it in the beginning of the program for 10 secs or maybe use a while loop for a couple of rotations on the motor before they actually start up. I dont know. I'll video tape it and post it on here when Im done. Just need to get pointed in the right direction, asking questions when I get stuck. I have different pics of my bot but when I tried to download them I got a message of saying the jpg is too big so I have to figure that out. Also I dont know if I can post a brief video of the bot on wireless, which may help on what I want the program to do. If anybody can let me know.
    Last edited by zman35; 09-08-2010 at 08:37 PM.

  2. #2
    Registered User
    Join Date
    Sep 2006
    Stick to C, it's much simpler than C++. Where C++ shines is when OOP is needed to model a lot of "things" in a complex system.

    For "close to the metal" work, C is a great choice.

    I'd suggest doing it in steps:

    1) keeping it wired, learn how to work the arm, in every axis of motion, the full range. Learn how to make pauses, handle the inertial energy correctly ("ramping"), etc.

    2) then run it wirelessly, and keep in mind the small delay in transmit and receive.

    And have fun!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mobile Version Of The Forum
    By nathanpc in forum General Discussions
    Replies: 12
    Last Post: 04-14-2010, 12:56 PM
  2. Replies: 0
    Last Post: 11-22-2009, 11:23 AM
  3. Replies: 2
    Last Post: 11-22-2006, 09:13 AM
  4. Windows Mobile 5.0 == Windows Mobile 2005?
    By George2 in forum C Programming
    Replies: 4
    Last Post: 08-02-2006, 10:53 PM
  5. new Opera mini - web browser for any java enabled mobile
    By xErath in forum A Brief History of
    Replies: 0
    Last Post: 01-29-2006, 04:23 PM