Let's Make Robots!


Avoiding obstacles, chasing light
LMouseR_without_light sensor.pde3.68 KB
LMouseR_Light_with_sensor_2.pde5.18 KB

Inspired by many other mouse bots I want to build my own one. Some parts are already collected and ready to being used.

The bot should follow the light, detecting the edge of the table and change direction when a sensor (mircro switch) is triggered. I want to keep the mouse board inside to have a feedback from the mouse LED in the bottom. Still no idea how/for what to use it but it's there and why not make a use of it. Also a very fancy 3 colour LED is included.

No time to start yet but after my holiday...

UPDATE May 12 2011:

Got some time to proceed. I canceled the idea with the tracking LED since the bottom is to high above the ground to trigger it. so i rip-off out the mouse board completely.

This is the currend state. The motor controller is in and two battery holders as well. One of the battery holders i glued just two metal clips of an old holder into the mouse case and the seconmd one is break out holder from a board. These two battery holders are for CR2 batteries since I have plenty of them with no other use. These are connected in serie to supply 6V for the Arduino.

This is the bottom side with the hotglued gear motors and the back wheel. The battery clip is for a 9V battery to power the motors.

This is with the first cover (the final upper cover of the mouse is still not attached. On the backside is a switch to power on/off the Adruino and the motor power. The opening on the left (front side) is for the Arduino Nano and some head space for the batteries since the room down there is not very high...

It's not what I planned in the first place but I like it. Those big wheels and the little mouse case match perfectly.

The next thing is to attach an infrared sensor in front (also canceled the micro switch) to get an idea how to use these sensors...

UPDATE May 15:

After struggeling with the power supply i learned that the 9V block battery is not suitable to power the gear motors. I had to replace it with 4x AA Eneloop for now.

UPDATE June 6:

Well, do you also have the experience that projects not could be done as planned? Here we go, LMouseR are finished but not as expected. Even with the standard Arduino Nano I did not get all the guts under the hood, so the mouse cover is thill not closing tight. Anyway, this is the final status of LMouseR, please watchg the video.

I got 2x AA batteries as the replacement of the 9V block battery and see how slowly it moves. Kind of cool i think and I am still loving those big wheels. Maybe leter I will reactivate this project and put one power source (LiPo) in or under to get the cover closed.

UPDATE June 11:

Do you know the feeling when you have something (an idea) in mind? I just reactivated the as finished considered LMouseR and put two light sensors on it. Why? OK, i found two unused photoresistors and remembered that I wanted to solder the pieces together to check how I can use it. So i just did and hotglued one to the left and one to the right front side. Then I hanged the code in the program to follow the light. Still not sensitive enough but it gives the little bot a very different behavior and motion pattern. Will try to get a video taken and uploaded by this weekend ;-)

UPDATE June 13:

As promised and on OddBot'S suggestion I changed the picture with one of the current status. I also atached the code for the upgraded version, the one with light sensors. As you can see the light sensors are just hot glued on the front side of the mouse and the mouse cover does not close thight since it's not enough space inside. Will see if I can make another one with a smaller Arduino.




Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I am not sure if you are going this route, but I built a beam bot from the MAKE/Solarbotics kit, sorry I haven't posted it yet.  Very simple and it utilized some parts from the mouse.  you can find the instructions here.


If you can fit that motor in the mouse body, I'll be very impressed.  Good luck. 


...is not my goal but I will give him a brain ;-) My target is to see how to get all this into the small mouse case.

Great idea. Maybe you can use the mouse sensor as a line sensor or to measure the distance travelled. Those mouse sensors have a builtin camera and can be controlled via a SPI interface.

Yes this is what I am planning but then i have to use other motors or attach them in another way to get the bottom of the case down to the surface of the table.

What motor driver is this? L9110 is shown on the picture, but never heard about it. I only find a chinese data sheet. Looks like a Si9986 in a 8pin DIP package.Very interesting, where did you get these driver?

BTW, nice design, I like it.

Right, the IC is a L9110 bought in China. The whole H-bridge is called MQ-12 and I got it in Taobao.com


Thanks, I found it at ebay. 10 ICs for 10€ include shipping from Hongkong isn't a bad deal.

Nice!  I like the mouse.  Very cool looking and inspiring.  


Could anyone help me with the mouse sensor?

I was wondering if there was any way I could attach it to my ubontino board?


I suggest that you post your question in your own forum post instead of asking a question on this post. Explain what you have and what you are trying to do.