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.

Build your own (cheap!) multi-function wireless camera controller.

Step 14Adding Infrared Output

Adding Infrared Output
«
  • DSC_6562.jpg
  • DSC_6563.jpg
  • DSC_6564.jpg
We're going to connect our infra-red emitter to the micro in a slightly more complicated way than with the other LEDs. Because it draws so much power, we need to find use the circuit i talked about ages ago to power it. That would be the FET circuit (shown in the images below).

Now, the output pin is going to be PD0, or PORT D, PIN 7. In numerical pins, that is number 13. Locate it (it's the second from the bottom on the left hand side of the chip) so you know where to plug things into.

Next, take a look at your FET. Check the data sheet so you know which pins are Gate, Drain and Source. Plug in the FET across three rows on the breadboard. Take a wire and connect the gate (generally the middle pin, but check) to PD7, pin 13. When we tell PD7 to go high, the FET will start conducting.

The datasheet for the 2N7000, recommended, is included below.

Connect the source pin on the FET straight to ground.

Connect the resistor in series with the Drain pin. Then, connect the LED up to the 3V power rail, making sure to get the polarity the right way round (short legs are generally negative, but do make sure).

The resistor value was calculated based on the following assumptions:

1. We have a 3V power source going through a resistor and the LED to ground via a FET
2. The LED should have a current of around 60-80mA with a forward voltage of 1.7V (could be different for your emitter!)
3. Current is equal over all components in series
4. This means that to load 60mA and drop 1.3V over the resistor, we need a resistance of 22 Ohms. The FET provides up to 5 Ohms extra, so you could go with 18 or even 12 to get a higher current going.

With that all set up, we can start writing the code!

2N7000.pdf(612x792) 94 KB
« 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!
15
Followers
1
Author:Whiternoise
I'm a third year physicist at Warwick University, dabbling in electronics and photography and currently seeing what interesting combinations you can make with the two :)