Instructables
Mousebot from Make vol 2 is a fun introduction to robotics. So fun that I've created this expanded documentation of a Mousey build from start to finish, with a few extra little tips you won't find in the mag. This how-to is best understood after reading the original article from page 100 of Make vol 2 however it is probably not required.

Mousebot is a simple bot that uses two "eyes" to sense light and then turns towards the light. A single large "whisker" is mounted on the front of the mouse to detect collisions. A collision with a wall will cause the mouse to reverse and turn then take off in another direction. This project is pretty cheap, if you have a mouse to use the other parts can be obtained for less than ten dollars.

If you have any questions or comments you can get me at jacob@makezine.com
 
Remove these adsRemove these ads by Signing Up

Step 1: Gather Materials and Tools

MATERIALS
1 Ball Mouse
2 Small DC Motors
1 Toggle Switch
1 DPDT 5v Relay (Aromat DS2YE-S-DC5V works)
1 LM386 op-amp
1 2N3904 or PN2222 NPN Transistor
1 LED (any color)
1 1K Resistor
1 10K Resistor
1 100uF Electrolytic Capacitor
1 Audio Cassette Tape (you know, from the 80s...)
1 CD-ROM or Floppy Disk (for the bumper)
1 9V Battery Snap
1 9V Battery
2 or 3 Wide Rubber Bands
22 or 24 Gauge Wire (some stranded and some solid core)

TOOLS
Multimeter
Phillips screwdriver
Dremel
Small pliers
Wire cutter/stripper
Razor knife
Soldering iron
Desoldering tool of choice
Superglue or epoxy
Hot glue gun and glue
Hacksaw

Step 2: Scavenge some parts

The Mousebot requires several parts which we can conveniently borrow from the donor mouse, its eyes and its whisker.

Open up the mouse and locate the components that we'll be harvesting, the momentary switch and the infrared emitters (the clear ones).

Remove the PCB and desolder the push switch and both IR emitters.

Step 3: Prepare the case

Next we need to give Mousebots insides a cozy place to reside, so break out the Dremel and remove all of the internal plastic structure from the top and bottom of the mouse. If your mouse is small you may have to remove the screw posts that hold the mouse together.

Now use the Dremel to cut openings for the bump switch in the front of the mouse and motors on the sides.

The best Dremel bit to use for this is the short cylindrical type, it will cut a good right angle if the Dremel is held vertically.

Step 4: Make the wheels

The axles on these motors are pretty small and if we want Mousebot to be stable at blazing high speeds we need to make him some rims. Cassette tapes have a rim of perfect size in the bottom right and left corners (if the open side is down). It might take a couple tries opening different brands of tapes before you get ones that fit your axles perfectly. Once you find some rims you are happy with super glue them to the axles.

Cut the rubber band and superglue it to the rim then wrap it around three times, adding superglue every half turn or so to keep it together. Cut off the leftover rubber.

Now glue another rubber band back to the one that you just wrapped. Complete one revolution and cut off the extra. Make sure to add enough glue to keep the outside rubber band on. Repeat the same process for the other wheel

Step 5: Layout the design and install the relay

DSCN1311.JPG
DSCN1316.JPG
There are quite a few good component layouts for the mousebot. The best layout is probably the one picture on the top of page 100 of vol 2. However this alternate setup pictured below works better on certain mice. I chose to use the standard layout. The circuitry of the mouse will be free formed since there is not much extra room for a pc board.

Once we know where everything will go its time to get to the real work. Set down the relay and solder wires in an X connecting pins 8 to 11 and 6 to 9. (see pin labels on second image)

Then connect pins 1 and 8 with a wire along the side and add stranded wire to leads 8 and 9.

Solder the collector of the transistor (right pin looking at the flat side) to pin 16 and clip the lead short. Then connect the wire we soldered to pin 9 to the emitter (left pin looking at the flat side) leaving a little bit of slack.

Now glue the relay into the case. I have added two clipped leads to act as positive and negative voltage rails which will get rid of some clutter in the motor area. Use your razor knife to strip the shielding from the wire connecting pin 9 and the emitter and solder it to the - voltage rail. Then connect pin 8 to the + voltage rail.

Step 6: Install the bump switch

Now lets give the Mousebot his whisker. Make it by soldering the positive lead of the capacitor and the 10k resistor to the end pin that is normally open. You can check which side is the open side of the push switch by using the continuity check feature of your multimeter. There should be no connection between the middle and normally open pin until the switch is pressed. Once this is done add stranded wire to the ground lead of the capacitor and the middle pin of the switch.

Connect the resistor on the switch to the base (middle pin) of the transistor and the wire from the ground side of the capacitor to the - voltage rail. Then connect the middle pin to the + voltage rail. To make your joints a bit more secure you can use heat shrink tubing to insulate the connections and bend the capacitor to the side to free up a little bit more space.

Step 7: Build mousebots brain

Mousebots brain is the LM386, flip it on its back (pins up) and bend pins 1 and 8 so that they are touching and add some solder.

Now place the 386 into position and connect pin 4 to the - rail, pin 6 to the + rail and add stranded wire to pins 2, 3 and 5.

We are almost ready to connect the motors so solder some stranded wire to pins 4 and 13 of the relay. At this point your Mousebot should look something like the third picture on this page.

Step 8: Construct Mousebots top half

First drill three small holes at the front of the mouse for the two eyes and sensitivity boosting LED. Then drill a larger hole for your toggle switch at the back of the mouse and install the switch to form mousebots on/off tail.

To create mousebots eyestalks twist two pieces of solid core wire together and solder the IR emitter to the leads on one end. Place the LED in the middle hole and connect the + lead to the 1k resistor.

Next use the diode check feature of your multimeter to find the - leads of the IR emitters and connect them to the - lead of the LED.

Step 9: Glue down the components

Use hot glue or epoxy to secure the bump switch and the motors to the mouse chassis. I used a combination of superglue and hot glue to hold in the bump switch and hot glue on the motors. Make sure the angle of the motors are roughly equal and extend down enough to raise the front of the mouse slightly off of the ground.

Step 10: Finish up making connections

Connect pin 13 of the relay to the left motor and pin 4 of the relay to the right motor. Now connect pin 5 of the IC (brown wire in picture) to the ground node of both motors. If you arent sure which side is + and which - on you motor connect it to a battery and observe the direction of the spin. The right motor should spin clockwise if you are looking at the wheel and the left should spin counter-clockwise.

Locate the wire coming from IC pin 2 (green) to the + lead of the left eyestalk and IC pin 3 (blue) to the + lead of the right eyestalk. Then wire the 1k resistor to the + voltage rail.

Hook up the battery by soldering the black wire on the battery cap to the negative voltage rail. Connect the red wire on the battery cap to the switch and then connect the switch back to the + voltage rail.

Replace the cover of the mouse and then cut a thin strip of your bumper material (CD) with the hacksaw. Attach the strip with epoxy or hot glue on one side so that wherever you apply pressure the button clicks. Once you have the strip attached give yourself a pat on the back, you're done.

Flip the switch and enjoy.
1-40 of 460Next »
ameera774 months ago

how many is it the DC dynamo size? and the size of relay? Please help :)

swolff123410 months ago
All I have is a LM358n. Will this work? 
Anybody?

yes it should...

Huuunksam4 months ago

This is a textbook quality Instructable !! Clear and concise - PERFECT!

Thanks!!

Kelly Smith made it!6 months ago

Thanx! Going to make another now :P

IMG_20130413_213303_977.jpg
ChippMarshal7 months ago

This is a really neat project. Where can I get all of these things?

RIP Donor mouse.

toxiq20113 years ago

Hey, I just finished mine but unfortunately it does not work. Don't know what I'm doing wrong... One motor spins real fast & the other spins really slow.

Thought I had done some wiring mistake the first time & re-wired the whole thing again, but still the same issue.

Any guess's, adding in a pic of what I have as if now though.


06062011278.JPG
hey dude i had the sam problem; once he had a circuit here and its different from the stuff he tells u; search for the circuit, it might be in the pdf
majswe Vapolord10 months ago
put a 200 ohms resistor 1 to 8 of the lm386
neoJunk7 years ago
Got this working a few weeks back. I had some of the problems other people have had, mainly one motor getting more power than the other. I found the bot worked perfectly in pitch black with one VERY bright light. It moves extremely quickly and the batteries don’t seem to last to long. It’s lots of fun!
mousebot-left.jpgmousebot-right.jpgmousebot-top.jpg
rimo neoJunk1 year ago
wht have u used bro http://cdn.instructables.com/FFS/NUTG/SRBEUXWQNIO/FFSNUTGSRBEUXWQNIO.LARGE.jpg
backcountry8 years ago
I finished my Mousebot over the weekend. It works perfectly thanks to the correct schematic at: http://streettech.com/robotbook/circuitMousey.html. The kids and cat are impressed. I made a rubber bumper by cutting a rubber washer in half and hot glueing it around the front of the mouse over the switch. Several mechanical challenges. The case doesn't close completely so I'm holding it together with rubber bands. And the back end is so battery heavy that it often can't get enough torque to back up. And it likes to circle to the left which is actually a nice feature - less mouse chasing.

I learned a lot from this project and it really got my interest up in BEAM bots.
this schematic http://cdn.instructables.com/FFS/NUTG/SRBEUXWQNIO/FFSNUTGSRBEUXWQNIO.LARGE.jpg is better that the first init pliiiz repliie
magiccowy4 years ago
+ is always the longer wire but look inside the actual thing and the smaller one is the anode (+) the larger one above it is the cathode (-) hope that helps
rimo magiccowy1 year ago
which one is correct dude http://cdn.instructables.com/FFS/NUTG/SRBEUXWQNIO/FFSNUTGSRBEUXWQNIO.LARGE.jpg
thankyou very very very very very very much!
can i use a 12vdc relay, or can i use two relays?
The number on the relay is telling you how many volts are required to trigger the switch by sending the voltage through a coil between two pins. If your robot uses a 9VDC battery, then you will need a relay that can be triggered by about 5 or 6 VDC. A standard 9V battery won't trigger a 12VDC relay.

You want one Double Pole Double Throw (DPDT) relay rated for 5VDC or two Single Pole Double Through (SPDT) relays rated for 5VDC.


You can purchase and appropriate 5V DPDT relay from Solarbotics or just read more about how they work on their site. http://solarbotics.com/products/re1/

Hope this helps.


Sincerely,
Christin Boyd
http://robotfun.wordpress.com
rimo christinb1 year ago
which one is correcthttp://cdn.instructables.com/FFS/NUTG/SRBEUXWQNIO/FFSNUTGSRBEUXWQNIO.LARGE.jpg pliz help
nospleen8 years ago
Wow, lots of comments here since I last was on. I have finished building my mousebot. Here are some pictures: I used Radio Shack's LM386N op-amp and it seems to be doing fine. I had to order my relay online. The best deal I could find was from futurlec.com. They had the exact part for $2. Worked great. Hecbot, regarding the LED. Did you wire the sensitivity boosting circuit with the revised schematic on streettech.com? I used that schematic and my LED lights up. The sensitivity of the IR beams seems to be pretty good too. I would think that there may be a problem in your circuit, although it may not have one. Check to make sure that the negative and positive are in the right spots, because the LED won't work otherwise. Stephen: that stinks that your bump switch isn't working. Did you check the poles on the switch to make sure that you didn't break off the wrong one. Out of the two side poles only one is connected to the switch, and that is the one that should be connected to the cap and the timer resistor. Other than that, I would just take a good look over the schematic and compare it to your circuit. I know that a few times I had some miswirings and they can drive you crazy! Also, I had a relatively small mouse and I had to cram it all in the case. My motors are also larger than normal, I took them off of an old xMod RC car. This has a been a fun project! Erich
P2190432.JPGP2200433.JPGP2200437.JPGP2200435.JPG
rimo nospleen1 year ago
have u yoused that http://streettech.com/robotbook/circuitMousey.html ?
62 comments to be exact.
robotix robotix8 years ago
Now 65
robotix robotix7 years ago
Now 117!!!
121...lol
123...yay
christinb3 years ago
I found through some testing that putting a resistor across the gain (Pins 1 and 8) of the OpAmp chip (LM386) rather than just soldering them together gave me better results. Every robot will be a little different because we're all using different IR emitters or IR LEDs in our bots.


You can read about my experiments and how I determined that a 200 Ohm resistor resulted in my mouse moving in the straightest line on my blog.

http://robotfun.wordpress.com

-Christin Boyd
IMG_2158.JPG
rimo christinb1 year ago
and also about the lm386 please help cuz i think that i fried them !!
rimo christinb1 year ago
im really impressed by your ideas !!! but i want ask you a question how can we know that IR light emitter works and not fired please help
chessman9082 years ago
i just finished making this and it doesn't work! i have no idea what i am doing wrong, it could be anything!
PLEASE HELP ME!!!!!!!!!!!
maybe like a schematic of something like that.
please respond ASAP! i am doing this for a science fair project and its due Monday!!!!! :0
......................or a circuit?
never mind i found something
wht waz your pbobleme brother because i also finished the project but it doesnt work ! please help me brother and i will be really thankfulllll ...thnx
rimo1 year ago
i've made the test in the bread bord when i on the toggle switch the motors run normally but the Led is still off .and when i put the light on the sensor they didn't work and also the bump switch didn't work :( :( :( please please help me i will be thankfull
cartilige5 years ago
I'm busy making a different project, but it requires a lot of similar components. I am looking for a LM386 op-amp but I'm finding it very hard to get, any ideas where I could get one. DO NOT SAY RADIO SHACK. I live in the UK and can't travel very far from Newcastle so where could I get one, if it is used in any household products I have aces to a whole range of them which I can strip down. Thanks
 you are retarted
You could maybe do some salvage.
1-40 of 460Next »