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.


Email notification bell

Step 3Parts: Electronics

Parts: Electronics
You need four electrical components.  I will be describing these very briefly, but ultimately I will have to leave it to you to make your own educated decisions on which components to use (or use exactly the same ones that I did).

A transistor
Choosing the right transistor for a project is a whole book in itself.  Fortunately, for this project, most transistors with a pulse current rating of at least a few amps, and an hFE above 40 should probably work.  I'm using a BDX53B Darlington transistor which I had lying around from other projects, it's not ideal, but it does the job.  A TIP29 transistor would probably also work.

If you are using a MOSFET, you should add a pull-down transistor of about 1k after the gate resistor, otherwise the pull-up current of Forebrain in programming mode may be enough to fire the MOSFET.

If you don't know your transistors, I would suggest learning about how to choose the right transistor or asking someone about whether a certain transistor is suitable for this application or not before continuing, as the wrong choice might not work, damage something, or in the worst case blow up in your face.

A capacitor
A largeish aluminium electrolytic capacitor is required to supply some of the peak pulse currents required when the solenoid activates.  The voltage rating must be above 5V, and I would recommend at least 470uF.  I am using a 10V 2200uF capacitor

A diode
A diode is necessary to avoid flyback voltage spikes when the solenoid is switching.  I'm using a 1N4004 general purpose diode

A resistor
Is needed to allow the microcontroller to drive the transistor.  The value you should use depends on the the transistor you are using, if you don't know which resistor to use, I would suggest that 150ohms would probably work for most BJT devices, or 10ohms for a MOSFET.  I am using a 150ohm resistor


« 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!
13
Followers
4
Author:meseta