A Quick Word About Arduino Pins (ATmega168/328)

I recently received an email with a good question about pin usage on an ATmega328, and wanted to do a recap as well as offer a little worksheet that I use. I always use a standalone 328 vs dedicating a full Arduino in my project, it’s very economical, so pin assignments in the project are important.

Digital pins, or pins 0-13 on the Arduino are capable of input (detecting a high or low value) or output in a high or low state.

Analog input pins (A0 – A5) can also serve as input or output pins. These pins can also measure, in 1,024 steps, voltage applied to them. This is an invaluable function for measuring temperature, light, audio, or anything else that you need more than an off or on reading. These pins may also be referred to as pins 14-19.

Special pins to note: Pins 3, 5, 6, 9, 10, & 11 are capable of PWM output. Pins 0 and 1 are serial in and out. Pins 11, 12, & 13 are MISO, MOSI, and SCK respectively.

Often, when I do a project involving some LED’s, temp sensors, an LCD screen, buttons, and whatever else I can manage to hook up to it, I need to keep track of what pins I’m using for what function. I made a simple spreadsheet that has all the pins, there function, I/O checkbox, special functions, and DIP package assignments. This is a great tool to take a look at what I/O’s are being used for what, and I often use it to see if I can combine or move pins around to get the most out of my project. You can download it below in Numbers, Excel, or interactive PDF format. Excel does not support checkboxes, so the fields have been replaced with true and false. You can download the PDF if you wish, it has the text fields as well as the checkboxes. Below is also a link to the handy image on the top of this post. 🙂

Numbers File (Mac)

Excel File (Windows)

PDF File

168/328 Pin Image (PNG)

RGB LCD Arduino Intervalometer

I am getting ready to sell some kits and wanted a good way to photograph the assembly without fumbling around trying to hold a camera in one hand and a project in the other. The answer? An intervalometer. A device that can send an IR signal to my Nikon, triggering the shutter. The video above explains all of the features including; automatic delay calculation, auto stop, multiple LCD and LED feedback options, Li-Po charging, FTDI headers, and manual control via button or plug-in foot switch.

This project will work with most Nikon DSLR cameras without changing anything, but can easily be adapted to work with Canon, Sony, or any camera that will accept an IR remote.

You can get nice RGB LCD’s, as well as the foot switch at Adafruit Industries. They even have positive character, negative character (the one used in this project), positive graphic, and negative graphic versions!

Arduino intervalometer code

Eagle intervalometer schematic (Eagle format)

Eagle intervalometer schematic (PDF format)

Intervalometer Parts List (Numbers format)

Intervalometer Parts List (Excel format)

Intervalometer Parts List (PDF format)

The DSO Nano v2 Pocket Oscilloscope Explained

Hi everybody! I have had a few request for information about the small portable pocket scope I’m using in a few of my videos, so I’m going to share it with you. In this video, I’ll walk you through installing the BenF Firmware as well take you through the menu structure and functions of the device. Seeed Studio did a fantastic job with this little device, it really is an awesome portable tool. Compared to the stock firmware, the BenF firmware has better navigation, features, and the SD card features work a lot smoother.

The Nano (DSO Nano v2) is a great tool for a great price! You can get them for under $100, they come with a case, 2 sets of probes, a stand, and it’s open source!

Below is the feature summary from the manual and the links to the scope product page, firmware manual, firmware and firmware install tool.

*UPDATE: Adafruit now sells this scope! 🙂
Continue reading

Pogo Probes!

Pogo probes!

Everyone likes new tools right? Well, my eye caught some neat pogo probes posted on the Adafruit Industries Blog a few months back, and was intrigued. I wanted a pair, but I shied away from the short handles. Then, a few days ago, it happened. I was cleaning out one of my toolboxes, and voila! I found a pair of old probes with bent tips, perfect for making into pogo probes. I also had some pogo pins from Adafruit laying around, waiting to be used for something besides having breadboard wars with ‘micro spears’. Anyway, here is how I made them with a few pictures. You will need an old pair of meter probes, pogo pins, a small hand drill, a Dremel with a cut off wheel (a steel hacksaw will also work), a vice, heat shrink, and a few ounces of patience for this project.

*Just a side note: the vice used in these pictures is a PanaVice Jr. I got mine from Adafruit Industries. I did not want to mount mine to my bench permanently, so I filled the base solid with lead. It is awesome, if you don’t have one, get one. It will change your life. (Actual life changing experience may vary.)

Step 1: Select a probe to convert. It doesn’t matter if the end is bent as it will be cut off anyway.

The stock probe Continue reading