How can AL5D Robotic Arm use with BotBoarduino and use mouse

Hi, i want to control AL5D robotic arm with BotBoarduino, Which codes can the servo motors control? how can i learn of Mouse act ? How do I make the connection with between Mouse(will use Usb Host Sheild) and BotBoarduino and AL5D Robotc Arm ? Can ı help you… This is my the final Project…

If you look at Sparkfun at the USB Host shield: sparkfun.com/products/9947
You will see a link to a Circuits at home project: circuitsathome.com/arduino_u … d_projects
There is a section talking about Application specific Operations. One is Human Interface Devices. If you follow that link it shows example of Mouse. Mouse should plug directly into this shield.

You can use the Servo library to control servos and/or you could add the SSC-32 board as well… Servo library is standard Arduino library, so you can look up the documentation on how to use it.

As for code to do arm, there are several posts recently talking about AL5 code that you can do a search on. How you use the mouse to control the arm is something you will need to figure out. 2D device to control 3d movement of mouse…

Also may run into issues like, don’t know how much interrupt code is running on the USB shield, but it’s handlers may cause jitter issues with the servos as the Servo library relies on timing the pulses correctly and interrupts can be an issue.

Good Luck
Kurt

Thank you for the answer first Kurte… :slight_smile:

Like you said, i researched Usb Host Shield and added “arduino libraries” it after i downloaded from circuitsathome web site.
In arduino libraries has been a servo libraries than i have been looked into servo libraries like servo motor identification.

But How can i make control click events like both mouse right and middle ?
for example ;
if(mouseleftdown == True and mousemiddledown == true)
{ servo1 = servo.value + 70; }
i know, This code wrong :slight_smile: i want to make somethings like it.

i want to make this ( circuitsathome.com/mcu/progr … -usb-mouse )
GitHup used materials;
1-Arduino duemilanove
2-Usb Host Shield
3-Renbotics(for servo control)

but i have ;
1- Arduino BotBoarding
2- Usb Host Shield, (i dont have renbontics)

I want to make it through the control of servos on Arduino BotBoarding.
the Arduino BotBoarding has to make through the control of 13 servos.

would be glad if you help

Sorry I don’t have your setup, so I don’t think I can be much help.

It you look up at the github source that was mentioned in the link you provided, it shows the code he used for the video. This included things like wheel pressed and the like. If it were me, I would start off with simple program that read mouse data and printed it to debug terminal, to see how all of the inputs work.

As you mentioned, he is using a Servo Shield. I did play with one of these earlier, but it has been a long time. Not sure what you mean by servo motor identification. You can try using the the botboarduino directly to drive some servos, but 13 is pressing it. Also not sure about code space and how the interrupts from USB will interact with servos.

So again I can only give you some general help.

Good Luck
Kurt