Servo move with mouse and botBoarduino

Hi want to make this web site;
circuitsathome.com/mcu/progr … -usb-mouse

I have a BotBoarduino and usb host shield, i didn’t have a renbotic, I want to move according to the movement of the Mouse, Then I will direct power from the botboardino, but I’d appreciate if you can help how you can code.

Please don’t double post. Most of us look over everything posted, so it is not necessary.

The artical gives you a link to their code base up on github. As you mentioned, the code uses the ServoShield to control the servos. Not sure what you are wishing to use instead? SSC-32?? or try to have the Botboarduino do it directly?

You might try with the Botboarduino directly using the Servo library. Not sure after you have the HID support for the PS2 mouse if you will have enough CPU and lack of interrupts to get it to work smoothly but you can always give it a try and see.

Kurt

I want to control direct BotBoarduino, I uses USB Mouse, I can mouse clicks events, but while Mouse click right down, Mouse whell go-back servo. Can i make this?

Quick update: I actually have one of the Tiny os USB shields, so I got it out and found a Botboarduino and plugged it in.
Actually I first looked over the documentation for USB shields and found that by default I believe they use IO pins 8,9 as well as SPI (10,11,12).

So on Botboarduino to be safe I removed some of the jumpers that enabled the LEDs and buttons (I actually left the A one on as it is on pin 7). I tried it out with a version of USB shield version 2 up on github (I will probably update to the current stuff).

I then plugged in a mouse and tried the example USBHIDBootMouse example and it works. So at least I can tell you that much works with the Botboarduino. Have not tried using it Servos yet.

Kurt

hey :slight_smile:
may ask about the code you used
and where can i get it
i have botborduino and usb shield from sparkfun
and i want to connect them together but i am a little lost on connection and linraries also in programming
i will be thankful for any help

It has been awhile and I think they may be using his (Oleg) version 2 stuff. There is a link on the Sparkfun page to go to his writeup at circuitsathome… On that page is a link to his R2 code announcement as well as a link to github, where the code is located (github.com/felis/USB_Host_Shield_2.0)

Note: If you have a version 1 board, then there is a different link on the circuits at home.

Looking at the description up on Sparkfun, again it looks like this shield wants pins 10-13, which if you look at the documentation for the Botboarduino (lynxmotion.com/images/html/build185.htm). If that is correct (different than previous version), than I believe it will not interfere with the buttons/leds or speaker on the botboarduino. So you may not have to remove any of these jumpers. But again I don’t have this version, so the only way to find out is to try it.

Good Luck
Kurt

yes i have the latest edition of Botboarduino just like that in the link can i please have more information about how to connect the USB shield tho the Botboarduino
also could you give me a precise code on gethub
i couldn’t find what i am looking for because i am kind of a beginner on programming
thank you in advance