3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Furby Hijack

Step 3Add Motors

Add Motors
The furby would have been boring just sitting there, unmoving, bleeping its speaker when sensors were activated, so I decided to add two 9v lego motors so that the furby could drive around while sampling its sensors.

To control motors from a PIC (or other microcontroller) one must use an H-bridge (http://en.wikipedia.org/wiki/H-bridge). You can build your own using transistors or you can buy an h-bridge IC.

I used an L293 H-Bridge IC to drive the motors, it's a nice small, simple IC. See the diagram below for how the IC works.
As you can see from the table below the diagram, all your PIC has to do to control the motor is to change the high/low states on the DIRA1 and DIRB1 pins to control motor A, and the DIRA2 and DIRB2 pins to control motor B.

Makesure to put a capacitor between the motors' power and ground. A different power supply (higher voltage) from the one that supplies your PIC must be used for the motors. However the grounds should be shared between the two power supplies.
Because motors can cause voltage spikes when turned on and off, make sure to put a capacitor between the motors power and ground. Also put a cap between the PIC power and ground.
« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
81
Followers
40
Author:leevonk
www.leevonk.com