AVR101
Friday, July 13th, 2007 running time 21:45
So you've heard about the DIGG button and P.O.V. toys, and maybe even LCD drivers. What drives them? How do they work? Why should you care? On this episode of Systm, we tackle that very question as Patrick and Dave take a look at AVR microcontrollers. What should be simple becomes an overly complicated project that only a super NASA engineer would even think of handling if the world's fate was hanging in the balance and Bruce Willis was our only hope. So sit back and enjoy the ride as we make an LED blink on and off.
Welcome to the first day of the rest of your life. After you start with AVR programming you will never stop. It's kinda like smoking or drinking, except without the crippling effects of cancer, or crashing into the side of a grade school. So Let's get started with the parallel port wiring. We've included a simple image for you to follow while building your programmer.
Let's go shopping:
| DB25 Male Solder connector | Radio Shack #276-1547 |
| 20 pin IC socket | Radio Shack #276-1991 |
| Solder board | Radio Shack #276-159 |
| AVR2313 | DigiKey #ATTINY2313-20PU |
| LED | Radio Shack #276-022 |
| Resistors | Radio Shack #271-1321 |
After you have all the parts and built it to match the drawing, then you should jump over to instructables.com and follow "The Real Elliot" as he takes you through some of the basics that we discussed in the show.
Links
http://www.instructables.com/id/E5H5UDWB5UEUKIKV8V
http://www.lancos.com/prog.html
Highlights
Hello world
(
12:52, 12:52
)
television screen
(
18:54, 18:54
)
steroids
(
10:20, 10:20
)
micro
(
0:26, 0:31, 0:33, 1:13, 1:25, 2:17, 2:32, 3:02, 3:17, 3:36, 4:02, 4:45, 4:50, 5:57, 6:03, 6:11, 6:32, 6:48, 9:01, 15:54, 16:48, 18:50, 19:36, 19:50, 20:43, 0:26, 0:31, 0:33, 1:13, 1:25, 2:17, 2:32, 3:02, 3:17, 3:36, 4:02, 4:45, 4:50, 5:57, 6:03, 6:11, 6:32, 6:48, 9:01, 15:54, 16:48, 18:50, 19:36, 19:50, 20:43
)
Hello world
(
12:52, 12:52
)
television screen
(
18:54, 18:54
)
steroids
(
10:20, 10:20
)
micro
(
0:26, 0:31, 0:33, 1:13, 1:25, 2:17, 2:32, 3:02, 3:17, 3:36, 4:02, 4:45, 4:50, 5:57, 6:03, 6:11, 6:32, 6:48, 9:01, 15:54, 16:48, 18:50, 19:36, 19:50, 20:43, 0:26, 0:31, 0:33, 1:13, 1:25, 2:17, 2:32, 3:02, 3:17, 3:36, 4:02, 4:45, 4:50, 5:57, 6:03, 6:11, 6:32, 6:48, 9:01, 15:54, 16:48, 18:50, 19:36, 19:50, 20:43
)
Automatically Generated Transcript(may not be 100% accurate) ( more )
" You have better Norton would be LTV I'm David Randolph. We're talk to you on system twelve about micro controllers. Not Digg buttons accident that the little black thing there that is micro controller why are we premium micro controllers. Auctioning some. Different things with them and I -- like the big buttons and excellent project a lot of people use them for pretty much. It happened generic circuit he went election night rarely anything across some people use an interface with LCD's because they can do all that. People isn't just build their own calculators whatever type of -- a product you really want to -- usually start with one. So it's a generic processor it basically did is they all a lot of these kits like these -- wide program. There they are not use it responsibly custom pieces of you know microprocessor technology it's a generic processor. You speeds encoding to that and it doesn't stilted to you right and -- to find that a lot of things like do it yourself that's basically the micro controllers preprogrammed with their own code. And like those I don't think that's the reason is already pre program. Well you know we figured the good way to get you started so what if want to make your own chip and your own thing so basically it's micro controller 101. Very -- one okay. I'll we're gonna get overly complicated and we're gonna make we -- line is the actual purposes that's that's pretty overly complicated -- have some pretty big project for us I'm afraid I now. But one of the things as the will have to start there are some income to it. Hence the giant cable connecting America's we've actually pull this off of the the control of their and it would still -- right exactly so are we using the and north to 32 for what is that. Now that's a parallel port that's the girls yeah that's it -- old school now let's move this apparel ports that that's what that's what had a -- that I and my laptops have parallel ports on them anymore. But and if you don't have parallel port you can go out. And get you know you 67 dollar boards. There for scenario all for USB -- same thing and we're just using these boards are in this case that cable on the parallel port you -- be code into the micro controller exactly. Eight one nice things this is that if you parallel port of the things you're talking maybe you don't parts that I sell you just keep that three resisters animals and a liar and you're done. So when I can get into too much of the programming on the worth about how you take the program to get it on micro Ruddock bout that oftentimes a little bit and a programming. Moment instructive balls."
" There was a guy that actually did. Really good tutorial has names the real -- And he -- shows that we're actually gonna use this code to show -- blinking light. But I'm also there's other website something like ADR freaks dot com and they have made it. 500000. Different ADR program -- projects out there for you."
" So they ADR 2313 that's kind of a favorites. Micro controller for folks are doing projects right now it's one more popular ones. And don't like dollars a piece there dirt cheap I mean you're talking you can go to town perform oxen and the thing so pretty much so that the idea here is is this could be used or almost any kind of micro controllers thought can figure out there may be some differences between the code -- how to -- but the basic idea kick the can computer is. Pretty standard."
" Right exactly they all have different genetic just kind of write data ports and put the wire that and your program in -- way womanizing is about whether they're reports like this. As -- they have slots for each of the different types of micro controllers out there's different sizes. And basically take it based on you know. How much speed you need how much storage you need how many different county controller you're controlling food and you'd like -- 150 million transistors to me you know easily exact or even do it. Freeman editing button that would be ridiculous after a while to imagine when call. To be about the size of our actual time the Clinton -- So pretty much world talked about basically they're -- if the code on the micro controller right. Com want these would actually do is you want to actually pull that little connector off just credits and there suddenly kill the machine knows they're gonna killed when the nice parts of this. And you'll notice that the into the cable there we only got five wires for you know basically you know power ground and in that three data cables to worry about. Or the resisters and the data cables others just isn't -- cables there weren't there to protect. Your computer than anything if you're really brave person for the resisters highly say don't. But you know that's the dollar part that's the most expensive -- your lives now it's worth it. Or you'll blow parallel port like -- previous ones. Palm now what it is is that that we pretty much on that and each micro controller has different -- to run two. Intact. So -- so micro controller have a supposed to signal to the point with the pins are in case you've never really -- chip before. Right and if it well well one blessings this is that if you've ever worked with my C. You always have level and in and he's in there cookie cutter the look cookie cutter that's gonna show you the orientation orientation of the actual chip. At most the time the don't work when you put him about you know they don't. Most the time is usually going to start with one on the left side work its way down to whatever the final numbers and start up on the other side basically numbering opinions and number depends exactly. -- you can do and I've actually got here. Is that you can always go and download the muscle machines. From. The company and this is this actual chip made by eighteen now. And oh have a penthouse for is that you know exactly what to look for excellence which is pretty nice. Everybody -- there's that different ways to. Do the penthouse on that I find the safest way. Was either early this made a simple lists of what he knows what and it works every time so RT FM and don't assume the same page and does the same thing -- different micro controller exactly look for compare it and compare both draw lines. Cool that's the nice. Find micro controller war world is that they have all the documentation out there and just so many people."
" Well it's also it's like you know if you need to be little micro control assured they go for obvious most of our building they they want the big contract with the alarm clock company's China so they don't want anything screwed up between point -- exactly want to sell millions and -- sell millions by -- exactly -- What do you find these parts due to radiation activists from online. -- get -- effect at the micro controllers generally want to get them now I expected to see if he's awesome hold a digital -- analogue -- A beautiful part of my account right now. And the like this thick and it's it's you know everything from like knobs to batteries to your daily you displeased micro controllers to -- does everything everything motors and if you haven't these -- catalogue -- to catalogue -- life. And a -- website like yes say if then go online adults if possible. So we do next we've got our parts we got the -- that we're gonna spit the information -- the technical term information. Or."
" Right and we got to move quickly far points and you don't -- you know fancy what this is what we've by the way mounting in control here this is a wonderful level RadioShack board. I usually don't promote RadioShack but. I love this as windows or ever needed parts in the middle of like you -- about it that's the owners -- It -- that. But it -- great -- here and it literally we can just pop the chip and from the other side. Sought aren't and we have always multiples lot of points like -- those nasty traces that you normally use sockets -- just put the -- I -- he's sockets there isn't -- because he scripted programming and that's the chip or burn it out. You don't want factory -- all things and doing drop one those. And this map right there and he'll snap to chip and that."
" This is like the worst part a pair of like tiny wires can be really useful tufts where you just get old school. Can find it flat surface and then all the pins in it wants to open too -- like I just. In if you give and the too far you can just use the corner of the table then back out. This nice that that we ordered lots of Baxter's case the -- it is true. But they have the right there were in the -- were -- the cutaway it's."
" Always if you go backwards you're gonna end up. Usually blown out the chip because of power on a long time. And yeah. Yeah. What's next. -- well now we have had two programs one actually compile what we're gonna right hand and end one too as you put it that keeps the code to the actual -- Download would be another useful term for yes if moms around and get the girlfriend boyfriend whoever's listening to my significant. So that the program uses winning yards basically C -- environment. Just for you ours okay that's pretty nice pretty straightforward. And wants to get that we're gonna build a text file which is what actually runs micro controller and we use pony -- programmer -- Prague. To download the code to the actual chip so a compile or takes written language or the code that people can understand it compiles that -- something that you can understand exactly as most of us can't code in assembly or -- exactly story. If you think. Now there's there's also the an eighteen -- and also have an in your studio in which you can actually write in assembly language appeared just that hard core. That's hard core but they have other ways -- can -- you know these different things but."
" There Wilson didn't write assembly probably watching this right now and if you are banks we appreciate that yes thank you tell your friends you can expect -- six. Hearts we got modest turnaround we can see it we got the machine hooked up that there -- two through two cable these parallel port who don't to a programmer. Expo in which put did you do need power connected to the icy if you want program."
" That's correct okay. If you don't have that is going to not see the chip and not know how to look. And it's an easy entry AAA batteries for this it really. Mindful and awful. Excellent well that -- So what we're gonna do here -- start with open at the programmers notepad. Which is that we know we are ahead on steroids for programs -- exactly. And I think that this is has -- the include files for all those chips out there. And include files if you have my empathy environments that it that was my next question. What's an included file -- and it's basically a library is kind of its its earning goes. If they type in this command I want to do this it -- cells acronyms no shortcuts for you."
" Basically glass at the same time and if so if you're seeing programmer maybe you don't millions and that's the VR by typing in the appropriate language it'll give you all the additional us."
" Exactly cool so we're gonna do here is that them over the indestructible group's website that guy really only get. We're gonna actually open up this code that he's got."
" And called a leading demo. And this is this I mean this --"
" Done."
" So for those of us who don't speak see what exactly are we looking adhered to you or. -- appeal to me. Period that's medical PD for parenthetically cynical -- a way along. That's documentation. After documentation has called commenting. Edible output on port key and for exactly that's that's now we know what that does but. What does that really mean we're using half of the company that processor pretty much."
" But that he are part of that actually stands for -- data direction registered. One of the nice things on these little chips. Is that each panel that. Can set it as an input and output it. They have you know as substance which is -- a bunch -- these what are you want to deliver. Functionality of the chip or -- want the chip today right okay you know I can have eight buttons eternal one only DER one button turns on it'll say one thing like that powered this tells these pins and these -- to turn that on and some of -- percent ultimately exactly cool. But what we want to -- who wants -- to be the output of content. And basically organisms that program launches on the ship. As saying set the PD four to the opposite of whatever currently use so you can go wrong okay. With that to zero. Which would be an input we're fortunate to be says an output which would be one in that case. So that's this is so when we say input and output in this case were actually powering currently. Apparently be exactly. Mom and listeners here is this while. If you remember back in the old days they think you can -- Hello world twenty go to -- right about when I've been the whole program exe was -- so world's. Coral -- monitor. -- But this is pretty much that version for C and within this spheres -- same port the equals. Which is the which we've assigned to -- for. Right actually there's there's several different ports and there's pins and side. Ports okay and it depends on which port on the chips are chips slightly different. 2313 it had like 380s. And some odd number from B. It's like reading the manual as important exactly. They command oddly fun. And have you had to -- like you know Willard C 21 days interfaces with with them the specifics you need program processor. Com well you have to have a really. You know electronics ideas and -- idea eternal life on -- on optics which can -- things. But if you actually go and get the manuals from like the eighteen now companies and all that stuff. They actually will say here's all ports here's all the addresses here's an example codes. And that really help out C programs."
" So if I'm sort of a new B rather than go into that probably have a simplistic if you are formatting look at the code that they've put together."
" Right like if you are freaks hasn't great forms they have good you know. Amazing things like. -- number like 20000 projects right now while it's a huge database. And he a lot of people and includes the source code how twos and how much of electronic designs on it. Heck I'm eighteen now -- in the rear references them on their website and says -- to start ago here cool -- now. So. And we'll get back to this but that this."
" Clearly in our listeners to real sense of commands and the first one says take -- before. And turn to the opposite of whatever it is and then delaying I was most Americans so accountant. And then. This is the opposite. As -- personally upset. Is this whole combination would that is seen as much as whole combination makes. This part here actually makes it finally something to do with the two key. And then it waits and other you know thousand milliseconds and we Blake and edit links forever. Or hey or thing about Iran's nuclear battery runs out. So act we have that we're gonna do is go up to and tools that -- program. And this is basically going to build program for so we're going from C to -- CSX now. -- and actually come out here look in the folder. You'll see the only the underscored. In so. Text right there that's. And now we have rated for the -- file on the chip answer an application called pony prologue. That's a sense of the month but has basically it's a simple program report an -- is open the device file."
" That's basically designed to download code into micro controllers right. What we look at and we got a bunch of hex code -- one to see you know to a C OC zero C zero to a C 029 season basically that's the C has been turned hacks right exact."
" You have the big buttons you'll have to parallel port them there's actually lines and every minute changes to say is testing. You can change the -- clicks. You now they're saying. You hit this innocence and display. There's actually in the ways you can change the numbers and so long. You press the button you don't have to wait as long repressed and again that's in chief deputy county button and that's exactly it could on the over on their over on the -- Google links how to make your own and everything. They have gone all out these on how to act in here and modify stuff so we've tweaked their hacks in liberated to download the tax on to the micro controller -- of the -- ports exactly see you and I can say pero vertically deal. It so we got hooked up I would do it but man and go right all a bit. And say yes. And it disappears the healthy it's -- it seems just writing it starts running the program. No he basically disconnect their apparel Portland forever it'll run for everything came along and you just probably humility or until about Apple matters right now. It's important note that there are other ways to make blinking on the out there like -- iPod -- with resisters and last. That's more math involvement anything else. This is the nicely easy way kind of just say I -- turn on my second offered ten winners won't work activity advanced -- like technology -- it at that. And that's what all it takes the right to that cool. One of the nice things that I want to mention kind of long backed the Digg button. And something that."
" Think about when your network and mark controllers how those things work. -- You know -- sadness say that displays because it basically seven parts to it. 1234567. Right so also -- an eight. Exactly. And that's how it works and now the problem with this is and the humanities -- is not at him for each one of those. Seven segments for each one of those characters so we have a clever moment we have clever map moment or eight clever trick Regina. You probably heard the concept appealed the objects out there -- different blogs and stuff. Persistence of vision -- toys you wave back and forth and write something here. That's how these things actually work really so there's another space and I'm not actually seen like the six segments and he did or five segments and make appropriate. Right what -- well you're seeing that that -- for a fraction of a second. Because it's you have is you have one him for each one of those seven saves him. You also have one -- for each character on the display. That so basically what you're -- micro controllers things coasts. It's just like actually writing line across the television screen progress them there exactly except and I really different way and a different way and the -- you're right that the -- of the brighter it looks to you. Interesting -- so in the if you slow it down down my new CD actually make stuff they you know been paid down change in the -- and -- pretty -- and fun to play with. And come all different shapes and sizes he Solomon Digg button at the giants and a three inch tall ones that all the way up to twelve inches for most things and just. Their -- very cool. Well what about the the really fancy displays. These -- displace there's lots of twirls out there a little more than probably can cover and a short show like this but you can use a micro controllers actually drive -- these displays and her face for yeah. Are monitoring the temperature of your motherboard essentially years some other cool thing that. Exactly in fact I forgot -- I think there was want to guys on our forums that. Got one micro controller and actually got used are -- but program. And got it to register -- with the council on one of these -- medicine from this."
" Here's kind of neat and it's very people who worked out well. So somebody gets together you know they do the only B project check out ADR freaks and other sources they should be looking for for ideas about -- learn how to program like her controller. All basic stance and there's there's all these -- the different fields where people have gone nuts in this."
" Oh there's the gun nuts unstoppable got a lot on our website had a lot of different ones a lot of code examples. Failure rates by it has -- the largest repository you're gonna find out there it's was pretty good on its now have a lot of cross linking on their website -- and he does help you out and just download the manual for."
" 2313 and this is really this is a great way if you're you know if you think alike when groping meet incredible robots this is the way to get the basic building blocks. Programming. Dealing with micro controllers -- they had interface with codes and how to solder a lot of basic skills you can really build on to a basic project."
" Yeah I mean this has several different areas like you say -- media programming and see which is -- language Arctic island that. Yes and basic solder as electronics war as pretty much. Forces them on Patrick Norton to -- TV and they around soft. Yeah. I might have controlled. I -- your father. Yeah for. He should."
" Jelly as the show ahead of this is important revision3.com. Let us know -- your idea not only is he sure wouldn't let him up on the show."
" You have better Norton would be LTV I'm David Randolph. We're talk to you on system twelve about micro controllers. Not Digg buttons accident that the little black thing there that is micro controller why are we premium micro controllers. Auctioning some. Different things with them and I -- like the big buttons and excellent project a lot of people use them for pretty much. It happened generic circuit he went election night rarely anything across some people use an interface with LCD's because they can do all that. People isn't just build their own calculators whatever type of -- a product you really want to -- usually start with one. So it's a generic processor it basically did is they all a lot of these kits like these -- wide program. There they are not use it responsibly custom pieces of you know microprocessor technology it's a generic processor. You speeds encoding to that and it doesn't stilted to you right and -- to find that a lot of things like do it yourself that's basically the micro controllers preprogrammed with their own code. And like those I don't think that's the reason is already pre program. Well you know we figured the good way to get you started so what if want to make your own chip and your own thing so basically it's micro controller 101. Very -- one okay. I'll we're gonna get overly complicated and we're gonna make we -- line is the actual purposes that's that's pretty overly complicated -- have some pretty big project for us I'm afraid I now. But one of the things as the will have to start there are some income to it. Hence the giant cable connecting America's we've actually pull this off of the the control of their and it would still -- right exactly so are we using the and north to 32 for what is that. Now that's a parallel port that's the girls yeah that's it -- old school now let's move this apparel ports that that's what that's what had a -- that I and my laptops have parallel ports on them anymore. But and if you don't have parallel port you can go out. And get you know you 67 dollar boards. There for scenario all for USB -- same thing and we're just using these boards are in this case that cable on the parallel port you -- be code into the micro controller exactly. Eight one nice things this is that if you parallel port of the things you're talking maybe you don't parts that I sell you just keep that three resisters animals and a liar and you're done. So when I can get into too much of the programming on the worth about how you take the program to get it on micro Ruddock bout that oftentimes a little bit and a programming. Moment instructive balls."
" There was a guy that actually did. Really good tutorial has names the real -- And he -- shows that we're actually gonna use this code to show -- blinking light. But I'm also there's other website something like ADR freaks dot com and they have made it. 500000. Different ADR program -- projects out there for you."
" So they ADR 2313 that's kind of a favorites. Micro controller for folks are doing projects right now it's one more popular ones. And don't like dollars a piece there dirt cheap I mean you're talking you can go to town perform oxen and the thing so pretty much so that the idea here is is this could be used or almost any kind of micro controllers thought can figure out there may be some differences between the code -- how to -- but the basic idea kick the can computer is. Pretty standard."
" Right exactly they all have different genetic just kind of write data ports and put the wire that and your program in -- way womanizing is about whether they're reports like this. As -- they have slots for each of the different types of micro controllers out there's different sizes. And basically take it based on you know. How much speed you need how much storage you need how many different county controller you're controlling food and you'd like -- 150 million transistors to me you know easily exact or even do it. Freeman editing button that would be ridiculous after a while to imagine when call. To be about the size of our actual time the Clinton -- So pretty much world talked about basically they're -- if the code on the micro controller right. Com want these would actually do is you want to actually pull that little connector off just credits and there suddenly kill the machine knows they're gonna killed when the nice parts of this. And you'll notice that the into the cable there we only got five wires for you know basically you know power ground and in that three data cables to worry about. Or the resisters and the data cables others just isn't -- cables there weren't there to protect. Your computer than anything if you're really brave person for the resisters highly say don't. But you know that's the dollar part that's the most expensive -- your lives now it's worth it. Or you'll blow parallel port like -- previous ones. Palm now what it is is that that we pretty much on that and each micro controller has different -- to run two. Intact. So -- so micro controller have a supposed to signal to the point with the pins are in case you've never really -- chip before. Right and if it well well one blessings this is that if you've ever worked with my C. You always have level and in and he's in there cookie cutter the look cookie cutter that's gonna show you the orientation orientation of the actual chip. At most the time the don't work when you put him about you know they don't. Most the time is usually going to start with one on the left side work its way down to whatever the final numbers and start up on the other side basically numbering opinions and number depends exactly. -- you can do and I've actually got here. Is that you can always go and download the muscle machines. From. The company and this is this actual chip made by eighteen now. And oh have a penthouse for is that you know exactly what to look for excellence which is pretty nice. Everybody -- there's that different ways to. Do the penthouse on that I find the safest way. Was either early this made a simple lists of what he knows what and it works every time so RT FM and don't assume the same page and does the same thing -- different micro controller exactly look for compare it and compare both draw lines. Cool that's the nice. Find micro controller war world is that they have all the documentation out there and just so many people."
" Well it's also it's like you know if you need to be little micro control assured they go for obvious most of our building they they want the big contract with the alarm clock company's China so they don't want anything screwed up between point -- exactly want to sell millions and -- sell millions by -- exactly -- What do you find these parts due to radiation activists from online. -- get -- effect at the micro controllers generally want to get them now I expected to see if he's awesome hold a digital -- analogue -- A beautiful part of my account right now. And the like this thick and it's it's you know everything from like knobs to batteries to your daily you displeased micro controllers to -- does everything everything motors and if you haven't these -- catalogue -- to catalogue -- life. And a -- website like yes say if then go online adults if possible. So we do next we've got our parts we got the -- that we're gonna spit the information -- the technical term information. Or."
" Right and we got to move quickly far points and you don't -- you know fancy what this is what we've by the way mounting in control here this is a wonderful level RadioShack board. I usually don't promote RadioShack but. I love this as windows or ever needed parts in the middle of like you -- about it that's the owners -- It -- that. But it -- great -- here and it literally we can just pop the chip and from the other side. Sought aren't and we have always multiples lot of points like -- those nasty traces that you normally use sockets -- just put the -- I -- he's sockets there isn't -- because he scripted programming and that's the chip or burn it out. You don't want factory -- all things and doing drop one those. And this map right there and he'll snap to chip and that."
" This is like the worst part a pair of like tiny wires can be really useful tufts where you just get old school. Can find it flat surface and then all the pins in it wants to open too -- like I just. In if you give and the too far you can just use the corner of the table then back out. This nice that that we ordered lots of Baxter's case the -- it is true. But they have the right there were in the -- were -- the cutaway it's."
" Always if you go backwards you're gonna end up. Usually blown out the chip because of power on a long time. And yeah. Yeah. What's next. -- well now we have had two programs one actually compile what we're gonna right hand and end one too as you put it that keeps the code to the actual -- Download would be another useful term for yes if moms around and get the girlfriend boyfriend whoever's listening to my significant. So that the program uses winning yards basically C -- environment. Just for you ours okay that's pretty nice pretty straightforward. And wants to get that we're gonna build a text file which is what actually runs micro controller and we use pony -- programmer -- Prague. To download the code to the actual chip so a compile or takes written language or the code that people can understand it compiles that -- something that you can understand exactly as most of us can't code in assembly or -- exactly story. If you think. Now there's there's also the an eighteen -- and also have an in your studio in which you can actually write in assembly language appeared just that hard core. That's hard core but they have other ways -- can -- you know these different things but."
" There Wilson didn't write assembly probably watching this right now and if you are banks we appreciate that yes thank you tell your friends you can expect -- six. Hearts we got modest turnaround we can see it we got the machine hooked up that there -- two through two cable these parallel port who don't to a programmer. Expo in which put did you do need power connected to the icy if you want program."
" That's correct okay. If you don't have that is going to not see the chip and not know how to look. And it's an easy entry AAA batteries for this it really. Mindful and awful. Excellent well that -- So what we're gonna do here -- start with open at the programmers notepad. Which is that we know we are ahead on steroids for programs -- exactly. And I think that this is has -- the include files for all those chips out there. And include files if you have my empathy environments that it that was my next question. What's an included file -- and it's basically a library is kind of its its earning goes. If they type in this command I want to do this it -- cells acronyms no shortcuts for you."
" Basically glass at the same time and if so if you're seeing programmer maybe you don't millions and that's the VR by typing in the appropriate language it'll give you all the additional us."
" Exactly cool so we're gonna do here is that them over the indestructible group's website that guy really only get. We're gonna actually open up this code that he's got."
" And called a leading demo. And this is this I mean this --"
" Done."
" So for those of us who don't speak see what exactly are we looking adhered to you or. -- appeal to me. Period that's medical PD for parenthetically cynical -- a way along. That's documentation. After documentation has called commenting. Edible output on port key and for exactly that's that's now we know what that does but. What does that really mean we're using half of the company that processor pretty much."
" But that he are part of that actually stands for -- data direction registered. One of the nice things on these little chips. Is that each panel that. Can set it as an input and output it. They have you know as substance which is -- a bunch -- these what are you want to deliver. Functionality of the chip or -- want the chip today right okay you know I can have eight buttons eternal one only DER one button turns on it'll say one thing like that powered this tells these pins and these -- to turn that on and some of -- percent ultimately exactly cool. But what we want to -- who wants -- to be the output of content. And basically organisms that program launches on the ship. As saying set the PD four to the opposite of whatever currently use so you can go wrong okay. With that to zero. Which would be an input we're fortunate to be says an output which would be one in that case. So that's this is so when we say input and output in this case were actually powering currently. Apparently be exactly. Mom and listeners here is this while. If you remember back in the old days they think you can -- Hello world twenty go to -- right about when I've been the whole program exe was -- so world's. Coral -- monitor. -- But this is pretty much that version for C and within this spheres -- same port the equals. Which is the which we've assigned to -- for. Right actually there's there's several different ports and there's pins and side. Ports okay and it depends on which port on the chips are chips slightly different. 2313 it had like 380s. And some odd number from B. It's like reading the manual as important exactly. They command oddly fun. And have you had to -- like you know Willard C 21 days interfaces with with them the specifics you need program processor. Com well you have to have a really. You know electronics ideas and -- idea eternal life on -- on optics which can -- things. But if you actually go and get the manuals from like the eighteen now companies and all that stuff. They actually will say here's all ports here's all the addresses here's an example codes. And that really help out C programs."
" So if I'm sort of a new B rather than go into that probably have a simplistic if you are formatting look at the code that they've put together."
" Right like if you are freaks hasn't great forms they have good you know. Amazing things like. -- number like 20000 projects right now while it's a huge database. And he a lot of people and includes the source code how twos and how much of electronic designs on it. Heck I'm eighteen now -- in the rear references them on their website and says -- to start ago here cool -- now. So. And we'll get back to this but that this."
" Clearly in our listeners to real sense of commands and the first one says take -- before. And turn to the opposite of whatever it is and then delaying I was most Americans so accountant. And then. This is the opposite. As -- personally upset. Is this whole combination would that is seen as much as whole combination makes. This part here actually makes it finally something to do with the two key. And then it waits and other you know thousand milliseconds and we Blake and edit links forever. Or hey or thing about Iran's nuclear battery runs out. So act we have that we're gonna do is go up to and tools that -- program. And this is basically going to build program for so we're going from C to -- CSX now. -- and actually come out here look in the folder. You'll see the only the underscored. In so. Text right there that's. And now we have rated for the -- file on the chip answer an application called pony prologue. That's a sense of the month but has basically it's a simple program report an -- is open the device file."
" That's basically designed to download code into micro controllers right. What we look at and we got a bunch of hex code -- one to see you know to a C OC zero C zero to a C 029 season basically that's the C has been turned hacks right exact."
" You have the big buttons you'll have to parallel port them there's actually lines and every minute changes to say is testing. You can change the -- clicks. You now they're saying. You hit this innocence and display. There's actually in the ways you can change the numbers and so long. You press the button you don't have to wait as long repressed and again that's in chief deputy county button and that's exactly it could on the over on their over on the -- Google links how to make your own and everything. They have gone all out these on how to act in here and modify stuff so we've tweaked their hacks in liberated to download the tax on to the micro controller -- of the -- ports exactly see you and I can say pero vertically deal. It so we got hooked up I would do it but man and go right all a bit. And say yes. And it disappears the healthy it's -- it seems just writing it starts running the program. No he basically disconnect their apparel Portland forever it'll run for everything came along and you just probably humility or until about Apple matters right now. It's important note that there are other ways to make blinking on the out there like -- iPod -- with resisters and last. That's more math involvement anything else. This is the nicely easy way kind of just say I -- turn on my second offered ten winners won't work activity advanced -- like technology -- it at that. And that's what all it takes the right to that cool. One of the nice things that I want to mention kind of long backed the Digg button. And something that."
" Think about when your network and mark controllers how those things work. -- You know -- sadness say that displays because it basically seven parts to it. 1234567. Right so also -- an eight. Exactly. And that's how it works and now the problem with this is and the humanities -- is not at him for each one of those. Seven segments for each one of those characters so we have a clever moment we have clever map moment or eight clever trick Regina. You probably heard the concept appealed the objects out there -- different blogs and stuff. Persistence of vision -- toys you wave back and forth and write something here. That's how these things actually work really so there's another space and I'm not actually seen like the six segments and he did or five segments and make appropriate. Right what -- well you're seeing that that -- for a fraction of a second. Because it's you have is you have one him for each one of those seven saves him. You also have one -- for each character on the display. That so basically what you're -- micro controllers things coasts. It's just like actually writing line across the television screen progress them there exactly except and I really different way and a different way and the -- you're right that the -- of the brighter it looks to you. Interesting -- so in the if you slow it down down my new CD actually make stuff they you know been paid down change in the -- and -- pretty -- and fun to play with. And come all different shapes and sizes he Solomon Digg button at the giants and a three inch tall ones that all the way up to twelve inches for most things and just. Their -- very cool. Well what about the the really fancy displays. These -- displace there's lots of twirls out there a little more than probably can cover and a short show like this but you can use a micro controllers actually drive -- these displays and her face for yeah. Are monitoring the temperature of your motherboard essentially years some other cool thing that. Exactly in fact I forgot -- I think there was want to guys on our forums that. Got one micro controller and actually got used are -- but program. And got it to register -- with the council on one of these -- medicine from this."
" Here's kind of neat and it's very people who worked out well. So somebody gets together you know they do the only B project check out ADR freaks and other sources they should be looking for for ideas about -- learn how to program like her controller. All basic stance and there's there's all these -- the different fields where people have gone nuts in this."
" Oh there's the gun nuts unstoppable got a lot on our website had a lot of different ones a lot of code examples. Failure rates by it has -- the largest repository you're gonna find out there it's was pretty good on its now have a lot of cross linking on their website -- and he does help you out and just download the manual for."
" 2313 and this is really this is a great way if you're you know if you think alike when groping meet incredible robots this is the way to get the basic building blocks. Programming. Dealing with micro controllers -- they had interface with codes and how to solder a lot of basic skills you can really build on to a basic project."
" Yeah I mean this has several different areas like you say -- media programming and see which is -- language Arctic island that. Yes and basic solder as electronics war as pretty much. Forces them on Patrick Norton to -- TV and they around soft. Yeah. I might have controlled. I -- your father. Yeah for. He should."
" Jelly as the show ahead of this is important revision3.com. Let us know -- your idea not only is he sure wouldn't let him up on the show."









