Video: Analog to Digital Conversion on the ATmega328p

In this week’s video, we continue on where we left off last week with another in our series of videos where we discuss how to program for the ATmega328p processor. This week, [Jack] takes a look at the analog to digital converter and takes us through how to set things up and then how to perform a conversion using the potentiometer on the 3pi as the analog source. Playing with potentiometers isn’t the most interesting thing in the world, but after watching this video, you will be able to do things like take light readings using a cadmium sulfide cell, read the weight applied to a sensor, calculate the temperature from a resistor and a thermistor, or interface with an analog gyroscope.

If you have missed our previous videos, here are some links:
Part 1: Setting up the development environment
Part 2: Basic I/O
Part 3: Pulse Width Modulation

Stay tuned for next week’s* video where we will take a look at how to interface with the 3pi’s line sensors.

Video is after the break…

* HAD is in the process of moving our secret headquarters so next week’s video may come some time later than next week.

[Read more...]

Video: performing I/O with the ATmega328p

Today we continue on with part 2 of our series where [Jack] shows how to program for the ATmega328p processor using the Pololu 3pi robot. In this video, he starts to dig deeper than last week’s video by showing you how to program in C so that you are directly reading inputs and directly sending data to outputs. Specifically, this video shows how to set up your I/O pins and then how to interface with LEDs, buttons, and a beeper.

There were a few comments on last week’s video about not wanting to buy a 3pi robot to learn on. That’s fine. For this series there really is no reason that you need to use the 3pi robot. We picked it because it is a great device to learn about the ATmega processors since it has so many things that you can play around with to get your feet wet but there really is no reason that you couldn’t wire up a DIP version on a perfboard and still follow along with these videos. In fact, if you have a good writeup about the cheapest possible way to get started with the ATmega series of processors, we’d love to hear about it.

Looking for part 1 of this series? [Click Here]

Video is after the break.
[Read more...]

Video: Learning to program for the ATmega328p Part I

Many of you are familiar with the Arduino. Many of you hate it…* This post isn’t about the Arduino. It is about the processor that is at the heart of many Arduino boards. If you are in the camp of people who can’t understand why others dislike the Arduino so much, this series is for you. In this series of videos, [Jack] will explore how to program for the ATmega328p processor using C. If you have been programming for the Arduino, you may have had some issues with the speed of your code at points. Programming in C will allow you to wring out nearly the last ounce of processing power that the ATmega processors can provide. It will also let you access the peripherals on the processor directly and to switch between different processors when you need more (or less) capabilities.

In this first video, [Jack] shows you all of the features of the 3pi robot, which he will be using as a fancy development board for the ATmega328p. He then shows you how to get your development environment set up and then walks you through one of the sample programs provided for the 3pi robot.

*Here at Hackaday, we are officially neutral in the ongoing Arduino love/hate war. We don’t care what microcontroller is used in the hacks that we show, only that they are cool.

Video is after the break!
[Read more...]

Video: Soldering our PIC development board

For those of you who followed along with our Eagle CAD series, here is the final payoff where we assemble the circuit board that was designed. In this video, [Jack] explains where things will go on the board and then shows you how to solder the parts. For the advanced folks out there who haven’t moved to solely surface mount parts when you can get away with it, he shows an easy way to solder the processor, which is a TQFP-44 part. This can seem like a daunting task but it really isn’t.

If you would like to make your own board like this, you can find the files here. Please note that although this board shouldn’t have any issues, we haven’t tested it ourselves yet. [Jack] is going to do some videos about a different topic for a few weeks but will pick back up with this board again when they are done.

Video is after the break. [Read more...]

Video: Eagle CAD Layout

This week’s video is the last in a series of videos where we show how to use Eagle CAD. Today we will look a the Layout portion of the program and will create a circuit board from the schematic that we created previously. We start by creating a layout file and then moving all of the parts to appropriate places on the circuit board. After that, [Jack] shows how to route the traces. Along the way, he talks about the tools that he is using and various ways to use them. The end result is a prototyping board for the PIC18F44J11.

Like the others, this video is fairly long at 29 minutes, so make sure to have some time dedicated towards watching it if you do.

In next week’s video, we will be showing this board as it arrived to us from a manufacturer and will do a tutorial on how to solder.

If you have missed our previous videos, you can find them here:

Schematic part I
Schematic and Custom part creation
CAM Processor

We have also created many supplemental videos explaining how to use many of the tools in the tool palettes. You can find them on our Youtube channel:

Check out the video after the break!
[Read more...]

Video – Eagle CAD’s CAM processor

Here is the next installment in our series of Eagle CAD videos. In this video we skip ahead a bit and show off the CAM processor that you use to create the files necessary to have your circuit boards be manufactured. After watching this video, you will know how create a new CAM program, load a circuit board into the CAM processor, tell it where to save your files, and actually use it to create the files.

We’re skipping ahead today because of a screw up on our part. We meant to show the layout portion of the program today but edited the wrong video… We’ll show layout next week. After that, we will show the completed circuit board and solder the parts onto it.

If you are itching for some Eagle CAD layout info, you may be interested in some supplementary videos that we have uploaded to our Youtube channel. In those videos, we show how to use the most important features in the layout portion of the Eagle CAD.

Have you missed the previous videos? Here are some links to them:

Schematic and the beginning of a custom part: [click here]
More custom part stuff: [click here]

Video is after the break:
[Read more...]

Video: Learning Eagle CAD part 2

This week we are continuing on with our multi-part series where [Jack] shows you how to use Eagle CAD. This video continues where last week’s video left off by showing how to create a custom part and how to use the schematic editor. If you haven’t seen last week’s video, you can find it here. Also, check out our youtube channel where we have uploaded several supplementary videos that go into further detail about many of the tools that are commonly used in the schematic editor. After watching these videos, you should have all of the knowledge that you need to start designing the schematic portion of a circuit board.

This is a fairly long video, clocking in at about 25 minutes, so be prepared to dedicate a chunk of time.

Follow

Get every new post delivered to your Inbox.

Join 91,933 other followers