Video: Analog to Digital Conversion on the ATmega328p

posted Nov 3rd 2011 9:01am by
filed under: news, video hacks

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 the rest of this entry »

Video: performing I/O with the ATmega328p

posted Oct 20th 2011 8:01am by
filed under: video hacks

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 the rest of this entry »




Video: Learning to program for the ATmega328p Part I

posted Oct 14th 2011 9:12am by
filed under: news, Software Development, software hacks

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 the rest of this entry »

Video: Soldering our PIC development board

posted Sep 30th 2011 8:01am by
filed under: news, video hacks

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 the rest of this entry »

Video: Eagle CAD Layout

posted Sep 21st 2011 12:14pm by
filed under: news, video hacks

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 the rest of this entry »




Video – Eagle CAD’s CAM processor

posted Sep 14th 2011 11:01am by
filed under: news, video hacks

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 the rest of this entry »

Video: Learning Eagle CAD part 2

posted Sep 7th 2011 10:01am by
filed under: Featured, how-to

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.

A Design Contest with High Odds of Winning!

posted Aug 25th 2011 7:03am by
filed under: contests, news

[John] wrote in to tell us about this contest hosted by Avnet. All one has to do is upload a video of their design to Avnet’s Youtube page.  There are four categories to choose from including: Solar, Communications, Transportation, and Entertainment. Four contestants can win an iPad2.

The only catch, if you can call it that, is that one would have to use at least one component from their “more than five million SKUs available.”  The thing that makes this contest more interesting than it usually would be is that there appears to be no contest entries as of August 24th. Official rules can be found on their site here.

The contest runs through the end of August, so there isn’t a lot of time to get a design together. However, it’s possible that you have something already built that fits into their product catalog. Make a 30-90 second video of it in action and you’ve got a (very good apparently) chance of winning an iPad2! Check out the contest video after the break. Read the rest of this entry »




Hack a Day serves up fresh hacks each day, every day from around the web as well as hacking related news.

Send us your hacks






     




Hacks

Resources