Raise A Flag Everytime you Get Gmail: Microcontrollers 101
Monday, May 4th, 2009 running time 24:26
Learn how to use microcontrollers to control just about anything as we build a device that raises a flag every time you get a new email!
Microcontrollers form the heart of many electronics projects big and small. David uses them constantly for robots, and he helps you get the ball rolling with an introductory look at microcontroller, including Arduino and Parallax.
How? By building a simple gmail notifier and raises a flag whenever a new email message arrives in your inbox.
If you don't have an electronics supply store nearby Parallax is Dave's favorite store/supplier for microcontrollers. If you simply must go the open source route you can check out the Arduino board.
For a copy of the Python code that Dave used in the show just systm@revision3.com with "python code for gmail notifier" in the subject line.
Highlights
squarespace
(
0:39, 7:31, 7:39, 7:45, 7:58, 8:16, 0:39, 7:31, 7:39, 7:45, 7:58, 8:16
)
meg ryan
(
21:10, 21:10
)
edward norton
(
0:44, 0:44
)
open source
(
10:27, 10:28, 10:58, 11:28, 12:42, 10:27, 10:28, 10:58, 11:28, 12:42
)
squarespace
(
0:39, 7:31, 7:39, 7:45, 7:58, 8:16, 0:39, 7:31, 7:39, 7:45, 7:58, 8:16
)
meg ryan
(
21:10, 21:10
)
edward norton
(
0:44, 0:44
)
open source
(
10:27, 10:28, 10:58, 11:28, 12:42, 10:27, 10:28, 10:58, 11:28, 12:42
)
Automatically Generated Transcript(may not be 100% accurate) ( more )
" Wow."
" That little pop up in the corner of your screen this is new email not cutting it anymore. Put it for less subtle way to see if you've got I've already built we're gonna show you how to make a Michael control power email notify put the flag. Well today's episode of systm. This episode has brought to -- by Squarespace. Godaddy.com. And netflix.com. All the system up."
" Edward Norton Condit pockets. We're doing today email notification and micro control. So we're gonna do a physical notification emails -- physical notification of email you know if you're going to happen across your cubicle and talking to people. And here wait for that. Built around these -- someone. And you might be notified what a physical. Notification. This is obviously an excuse to -- around micro controllers the heart of pretty much. Robots projects. And electronics. Every modern car just about everything. So what's control so. First of all it's important understand the difference between microprocessor. In micro controller. A microprocessor is strictly chip that processes information as the mean component your PC. A micro controller takes a microprocessor. And adds several functions to -- such as memory. As well as I controller functions so for example Patrick's got here. Is the parallel -- micro controller called the basic stamp. The basic stamp. Has the major feature on the bottom a microprocessor. Nasty -- X micro processor. It also has two other little microchips above that you can see one of them is -- you prom which stores the program on that -- so you have to always be talking to computer. And the other is the interpreter which converts that store programs into machine language for the SX chip to run. In addition to -- lacks basic stamp on there are. Thousands if not millions of different micro controllers that you can buy. You can buy everything from what are called picks. Which are small single chips such as we have here this is a -- I'm and we also have pick burners so the thing with a pig is it's a very very cheap micro controller you can biopic for under a dollar and they're very very powerful the problem is it that you that have. Have to buy a pick. Burner. Which can be several hundreds of dollars so I brought into different pick burns. On one of which is an older one and yes actually uses an RS 232 point. I'm so -- ancient. Com and attended the newer version so actually uses serial for some reason I can't explain all too many. Birders still use serial or parallel rather than US be. Just of his -- that no one has bothered to update them all all the guys you're programming these are old unix guys with the authority though isn't really scraggly beards. I meant and so you can buy a basic -- burning hit for a couple hundred -- dollars. Now let me see inexpensive but if you're going to be making a whole bunch of things and basically have that initial cost of the -- burner -- say a hundred dollars 150 dollars. But then all of your actual micro controllers might be as cheap -- eighty sense. So you know you're burning the pick -- you -- late this horses for permanent installation and they're cheap they're dirt cheap so of pig is generally used for permanent installation that other board is something called a prototype board. Now what you've got now Archie from -- this is like your first version where you're just burning -- at home. A permanent board where it would be permanently -- And the other one of the light green one. Is the actual final version so once you've figured out how to do it home for your permanent board. Then you send it off to Taiwan or wherever and have a million of them but in this case on the to torture looking at our robot controller boards in my friend Jack Huffington and I came up with. Specifically so that we can make cheap ones rather than more expensive. As you said like these controls like forty bucks a pop. And fixer a buck yeah at a particular -- I think was a dollar -- That's where Thomas yeah the thing with something like either an -- do we know. Which is this one. Or a basic stamp such as that -- and there's others you can buy basic exports and I'm generally cost in the twenty to forty dollar neighborhood right a general are doing a prototype in -- such you've got there the blue one. On cost I think 25 dollars off the top I had. -- but again it's a prototype -- where is not really something that you want to put in a major production. But if your building for some -- you're."
" Only four or something basically it's it's the rule of tends to -- if you're building -- zero to ten reserve and nine. It when it does if you're building ten to 100. Do something like that that most people I think who watched this program. Want to build something -- right so that's a report this is actually the same port we used for the RFID and refrigerator episode. And it just so happens because I'm a former teacher I have a bunch of these boards I think he has the classroom so I use them all the time because I happen to have them. -- Everest is -- making a single RFID controlled refrigerator and protecting -- is perfect. If you're going to manufacture a whole bunch of RFID controlled. Refrigerators for. Sale or for whatever this is the kind of thing you think it's. So beyond like the scale I mean are -- this apparent lax. She stamps those are likely forty dollar or how to choose between them the development language or. That project excellent question and generally it is your personal experience. The end user with. Programming languages is not so much an electrical. Kind of question terms of your abilities to CPU performance -- performance is generally negligible com a lot of people would argue that point. It depends on what you're doing any and what is your your final goal so for example we are -- controlled refrigerator. The stamp. Runs -- 4000 Hertz which is more than fast enough now. -- nowadays -- talking about you know. Pageants are running in the gigahertz. I'm almost in the terror its capacity or just don't need got speed port your standard micro controller which is it mostly that was an this is a signal goes and and it. Turns on a -- or has a little light any day to serve phobos in my experience inning over 2000. Cycles is really is a waste time for for micro controlling you know whether it's a robot -- RFIDs refrigerator whatever or a bit. An email of the fire it's really you know you don't need 2000 instructions per second -- You know that to be two I mean I definitely made robots that need ten to 20000 instructions per second. My bargaining room -- for example he operates in about 40000 instructions per second which operates the lyrics it's amazing what he's not wearing drink so -- is circuit board."
" But that solid stream of light which have ever. Been with a related to that particular robot he really raise it out of -- since. What signal would affect what are our sponsors Squarespace your table or what routes in -- favorite interns. Tyler basis the viewers I'm Tyler our intern at Revision 3 I'm here to talk about Squarespace which is hands down my favorite publishing platform on the Internet. What I liked most about Squarespace is that it's fast and easy to use it's so easy you can build a site in three simple steps. One she's -- modules pages features you want your site. To pick one of the beautiful templates provided by Squarespace all made by professional designers. And three sit back and relax your website off set up to just play around add more content and enjoy. Congratulations you just save a ton of money by not hiring a web design your Internet -- just went up ten points. So what are you waiting for you can try for free right now it's Squarespace dot com. And be sure to use the code system that SY FTN when you sign up to get 10% off like -- membership. --"
" If you're starting you've never actually program anything before -- the marketplace and -- talking about programming languages. The basic language is probably the best way to start if you're if you're afraid of things and so. Parallel ax has two great books one of them is robotics with the -- on the other is what is a micro controller. Both of these books are not only well designed for beginners in terms of the language involved. But they're really good in sort of a step by step start to finish. Kind of thing so basically they take you presuming you know absolutely nothing about electronics where programming. And it really walks you through so basically if you can get the -- robotics with a robot. Book and kit by the end of that you can make just about anything working to turn lights on and off into all sorts of other cool things. Other books like prettier do we know in my experience there are not as well organized so wanted to things are relatively new chunk of -- type of -- So this is the O'Reilly book making things talk. If you're an experienced C programmer this is a great book if you are in neo fight who has never actually program before. I really dislike this book and I like everybody meek. They're all my good friends and I really think this book is a horror fest in terms of organization. -- a good book for you know any -- she basically say okay this is how to -- hello world and then for hello world you go to this is poetry and only be on and off. And that book goes from hello world to drawing triangles on your pictures screen. This is his -- is perfect for little. I with little technical training and lots of interest I disagree I think it's just it's too much of it cookbook rather than novel and I think that a good. Teaching curriculum is -- novel which means you have to start page one and and it page 100 -- and a cookbook which is you. Turn know anything about one of those novels about like Hawaii that starts with earth cool yeah we continents formed enough novel again and again. If your experience you programmer desperate. I just think it's a good book so there's also lot of talk now is not open source hardware and so what open source viruses is that anybody can make -- Com there's a million different -- variants out there it's like twenty. It's I would say it's probably over hundred now but and any and are we know is a great place to start if you -- make your own board. On if you don't want the -- we -- guess familial for example is up for that you invited as premed and rated ago. Interestingly enough though Carol actually unaffiliated products I just like their product. They -- the originators of open source -- this is the parallel -- Oh -- I don't know what they call it a stamp because it's much larger than a stamp its presence and basically. Everything that's on that particular board in your hand right now is the same. As that tiny little microchip which in the beginning. And what it is is they actually give you -- parts list so that you can maker boards that you can buy your own microchips not necessarily from them this is actually using eight. Microchip -- it is just this is just -- it's open source. They -- all of the the code and things like that's and to that end you know they're not treatment that regulate okay so it is actually under trademark for you lose yet and it's it's out there yelling about her paralyzed is is all of -- software and their books are free so basically if you want what -- micro controller. You can buy the book for whatever the cost of the book is twenty bucks something like that or you can download -- Pia for. From the side trickle mom. But again you know boulevard Reno and her relax our great starter boards there's lots of others there's the basic tax. Which is basically it's a much much faster version. The parallel -- basics. On and it can also multi thread. If you need multi threading which I would say for most starters you don't need multi threading. -- you want to go with the basic tax or -- like propeller chip or your Wii or all that multi threading chips. The basics it does not multi threading it is not capable of doing two things at exactly the same time you can gently takes them."
" We try to summarize this real quick. If you're a newbie -- experimenting with controllers the first time you recommend some type of parallel export. Because of the especially if you're unfamiliar with programming because it runs on basic and there's some excellent and free. Educational materials available for that for learning correct if you are sort of I must be open source for -- your -- is an excellent option. And if you think you need more than two kilohertz you probably don't."
" Yeah I'm really. Including most prominent and powerful are probably far beyond this to get you don't need this for it and -- yet powerful if you're just trying to turn on a flight when you get a new email. You don't need. There's no reason to buying a Porsche. To drive a -- down to -- we should take a moment. To pay the bills thicker sponsors people who let's bring the show you're gonna sit up our project and then marina do cool things are aren't. Six."
" It's able to thank one of the sponsors of today's -- that -- system godaddy.com. Speedy reliable secure web host it would no long term contract good daddy's hosting plans are bigger and better than ever with 99% up time free 24 sevenths support and no annual commitment. Starting at less than five bucks a month web hosting from godaddy.com includes access to the godaddy hosting connection we're talkin' be -- to quickly install over fifty free apps like word press Joomla Drupal as commerce and quite a few more. To what do scored discount enter into exists to when you check out -- additional five bucks off any order of thirty bucks or more. Not spend that much check out for reason three dot com slash godaddy for all the system go to the heels of codes do us a favor here. It's system -- piece of the Internet at godaddy.com. And what of the system couldn't when you view. So."
" Okay for our project we're gonna make a very simple email notify are based on a really cool project be found on the Internet by Cheney got work. And what -- he had done is he's taken on our do we know. And it turned on a little LED so basically when the -- You know came in in his Gmail account. It would talks to -- Reno and ten. And turn on a little early days of my box LED's."
" All bonds awful. Well this is superior really wanted something better than an early eighties so that meant and using it Serbo. And so we want it like a little little flaky -- thing just so that's the reason today is our email like he played I think that's the official terms like like right now. I have to call our mailbox flag mailbox -- On it and I have simulating the operation of the -- we'll -- here. In the reality this this will turn and that the entire -- roads so. It's. This -- So."
" In terms of the reprogram it operates -- fundamentally the same as as Jamie's original programming we can find online. I'm except for or we're doing two different things one we're gonna use -- already and only -- and number two I mean is the apparel export -- we know. Not because of my great love apparel exports. But out of sheer unadulterated laziness is the apparel -- development board has a servile attachment built into it. And they are between aboard does not have Acer -- adapter built into it and I really didn't want to take up the soldering iron because the soldering -- that is. Yes so that -- export has four built in server adapters and here we don't work this time so two there's nothing -- doing now I am just. Saving a step and using apparently export Ratner aboard. Thick -- here we know board will also be available on the system website. So you can pick your code which -- want to use our Reno for. That paralyzed or. Was this some sort of in the translation thing going on to get what was originally virtually no code to run who know him both codes and especially kind of a good first project on both codes. Just wait for a cereal character to come out of the computer and so they're always listening -- just little little micro controller you're going you know. Time and as soon as the computer sends out a signal on says cool. I'm gonna have a character that character is what in your twit no case would turn on the LED or in the parallel -- case -- Open to serve that we should -- this point it could -- though you can use to trigger a relay your conclusion to turn on a remote switch and turn on a -- you can use it to. In this case sound alarms you know you can be had have a."
" Submarine that's our basic building steps you can raise it to use of fundamental base with a fundamental code that would fortified controller to do something controllers do something these are being mis steps and you can do more interesting thing the controller not that. Our survey of like if not fascinating."
" It's exactly. And it's an interesting thing of of what she really certain getting in the mall involved as micro controllers. Turning on and -- basically sending a current through that LED. And as Patrick mentioned you can also use that for a relay and what it really is electromagnetic device that closes. I'm. When it feels current and that connects another device -- you can actually use this tiny little. And bridge to it which would normally turn on -- LED to close a relay. And that really they can carry AC current for example so you could turn it on a lightbulb a regular old 410 volt AC lightbulb using a board like this. By replacing the only."
" So we've got over hardware hooked up right we basically -- the server -- in the parallel ax or into a USB serial adapter into the computer. We need to have python installed on machine if you're."
" I'm sure you've got python or not you can go to python dot org to download it. And that includes all of different variants whether you're running a windows machine on an X machine or Mac machine or via steam machine. Most Macs with OS-X half python preinstalled so that developers that'll developers folders never going -- and there's all sorts -- weird stuff on on computers you know express. And now you just need to modify the python script. And fortunately you know that the script you don't have to worry about any coding at all you're modifying you're putting in your username and password. For your Gmail account. And saving you're saving it how -- right now. Depending on how your pipeline installation is configured -- different ways to run. On a windows machine you can run as a batch file on the under shell script so it's constantly running in the background. Com online game. Macintosh on the ridiculous file -- to make available for you. And basically that he -- file we'll just run on boot and so it'll automatically run on iPods as well. So it's running on that OS-X bucks right now is running on excellent advice and much right now so if I see you so -- using mail me at Gmail account. Time Gmail -- message to your Gmail accounts an email to my Gmail accounts. Tom what should happen is that. Once the speed of the Internet has caught up to this machines and it has notified my Gmail account we'll suddenly seeing that go up. That's really the simplest not a word you know leaving out any crucial components or anything like that anytime a software installation happens. You might have -- few little issues. The real issue here is basically. Trying to install something here if you want to use an -- we know board. You're gonna have to do a little bit of configuration to get a Serbo on -- are going aboard. Because the ground and the power which is what powers the -- But is very different on the board from where the actual date at port is -- and -- up those wires com or get -- or we don't shield."
" Okay the test message is. The way what -- monitor to work. Our way beyond that. Computers talking really is on 247 you probably want a nine volt adapter and nine volt batteries. Hello how fassel the originally -- report does have one big advantage to it is you're doing -- board can actually get its power. From the USB cable which apparently you cannot so you don't necessarily need. Two on power it. Via a nine -- don't need a USB to serial adapter you're doing this kind of a more modern design that a lot of the other by the modern parallel experts -- have you have you this -- Having set the cycle and at that was his personal."
" How do you like and any an intern here at system. And this week's Netflix picket the week is you've got mail it's a hilarious and touching film can be teaching -- what Leno asked. What -- opinion people who dialed up to the Internet on a regular basis were still -- marginalized. It starts a pre botox Meg Ryan and younger Tom -- is to business rivals who hate each other in real life. But eventually bonds and -- he's the information superhighway. Filled with adorable integrated tech jargon you've got now -- on your -- today. Or browse the other 90000 titles Netflix has to offer including Blu-ray. -- vowed to find any title you're looking for. Plus with over forty shipping centers almost all deliveries happen in just one this Thursday and shipping both ways it's totally free. Plans start at 499 but it's -- system here you can get a free trial by signing up today at www. Netflix.com. Flash system support asked by supporting man. So this."
" so a lot of other little repetitive -- for reporter -- that this is really the foundation to robotics true. Electronic controls it's not just like check email but. This is the universal widget that for for oppressing the people he's an art projects and robots in humans use these are where you start programs you know."
" Applications you know so this is exactly -- I certainly with -- projects -- just making a tiny little robot go forward with these kinds of -- us. And it's important understand for this episode there are all these different micro controllers out there. So just tons of cool when you registered Republican who whether you're using art we know whether you're using her relax whether you're using picks who picks. I've chased -- him or treating -- lots and -- of code out there and it doesn't all have to work connected to your computer like we have here. On you can definitely have suffered that you know you unplug and then -- of the the board does its own thing. So I can have like this sensor like there photo optical or -- with the dog -- exactly and and you know it emails you when the dog door -- open and close I don't know perfectly okay on the dock you could put an RFID -- and done -- since -- is what exactly all of these different things -- are within your ability to -- on -- just a question of choosing the right micro controller for your needs if you're gonna make -- hundred of something. It's better to go with a two dollar taken hundred. If you're gonna make wind of something is probably better to go with an."
" Cool it's being called check out Scam School Brian -- source for -- friends -- scam a free drink at the bar it's like a crash course in social engineering. Gets you up so. Of Scam School every Thursday only reason 3COM slash scam school and as always if you have any ideas comes or suggestions please email us isn't it revision3.com. And don't forget. This man lives in the forums revision3.com/forum. In the archives of -- upset. That's all the horrible episodes revision3.com slash system. Where you can now watch her older episodes and hopefully make some of the projects to me like the RFID your. Little production history. I'm very important."
" Wow."
" That little pop up in the corner of your screen this is new email not cutting it anymore. Put it for less subtle way to see if you've got I've already built we're gonna show you how to make a Michael control power email notify put the flag. Well today's episode of systm. This episode has brought to -- by Squarespace. Godaddy.com. And netflix.com. All the system up."
" Edward Norton Condit pockets. We're doing today email notification and micro control. So we're gonna do a physical notification emails -- physical notification of email you know if you're going to happen across your cubicle and talking to people. And here wait for that. Built around these -- someone. And you might be notified what a physical. Notification. This is obviously an excuse to -- around micro controllers the heart of pretty much. Robots projects. And electronics. Every modern car just about everything. So what's control so. First of all it's important understand the difference between microprocessor. In micro controller. A microprocessor is strictly chip that processes information as the mean component your PC. A micro controller takes a microprocessor. And adds several functions to -- such as memory. As well as I controller functions so for example Patrick's got here. Is the parallel -- micro controller called the basic stamp. The basic stamp. Has the major feature on the bottom a microprocessor. Nasty -- X micro processor. It also has two other little microchips above that you can see one of them is -- you prom which stores the program on that -- so you have to always be talking to computer. And the other is the interpreter which converts that store programs into machine language for the SX chip to run. In addition to -- lacks basic stamp on there are. Thousands if not millions of different micro controllers that you can buy. You can buy everything from what are called picks. Which are small single chips such as we have here this is a -- I'm and we also have pick burners so the thing with a pig is it's a very very cheap micro controller you can biopic for under a dollar and they're very very powerful the problem is it that you that have. Have to buy a pick. Burner. Which can be several hundreds of dollars so I brought into different pick burns. On one of which is an older one and yes actually uses an RS 232 point. I'm so -- ancient. Com and attended the newer version so actually uses serial for some reason I can't explain all too many. Birders still use serial or parallel rather than US be. Just of his -- that no one has bothered to update them all all the guys you're programming these are old unix guys with the authority though isn't really scraggly beards. I meant and so you can buy a basic -- burning hit for a couple hundred -- dollars. Now let me see inexpensive but if you're going to be making a whole bunch of things and basically have that initial cost of the -- burner -- say a hundred dollars 150 dollars. But then all of your actual micro controllers might be as cheap -- eighty sense. So you know you're burning the pick -- you -- late this horses for permanent installation and they're cheap they're dirt cheap so of pig is generally used for permanent installation that other board is something called a prototype board. Now what you've got now Archie from -- this is like your first version where you're just burning -- at home. A permanent board where it would be permanently -- And the other one of the light green one. Is the actual final version so once you've figured out how to do it home for your permanent board. Then you send it off to Taiwan or wherever and have a million of them but in this case on the to torture looking at our robot controller boards in my friend Jack Huffington and I came up with. Specifically so that we can make cheap ones rather than more expensive. As you said like these controls like forty bucks a pop. And fixer a buck yeah at a particular -- I think was a dollar -- That's where Thomas yeah the thing with something like either an -- do we know. Which is this one. Or a basic stamp such as that -- and there's others you can buy basic exports and I'm generally cost in the twenty to forty dollar neighborhood right a general are doing a prototype in -- such you've got there the blue one. On cost I think 25 dollars off the top I had. -- but again it's a prototype -- where is not really something that you want to put in a major production. But if your building for some -- you're."
" Only four or something basically it's it's the rule of tends to -- if you're building -- zero to ten reserve and nine. It when it does if you're building ten to 100. Do something like that that most people I think who watched this program. Want to build something -- right so that's a report this is actually the same port we used for the RFID and refrigerator episode. And it just so happens because I'm a former teacher I have a bunch of these boards I think he has the classroom so I use them all the time because I happen to have them. -- Everest is -- making a single RFID controlled refrigerator and protecting -- is perfect. If you're going to manufacture a whole bunch of RFID controlled. Refrigerators for. Sale or for whatever this is the kind of thing you think it's. So beyond like the scale I mean are -- this apparent lax. She stamps those are likely forty dollar or how to choose between them the development language or. That project excellent question and generally it is your personal experience. The end user with. Programming languages is not so much an electrical. Kind of question terms of your abilities to CPU performance -- performance is generally negligible com a lot of people would argue that point. It depends on what you're doing any and what is your your final goal so for example we are -- controlled refrigerator. The stamp. Runs -- 4000 Hertz which is more than fast enough now. -- nowadays -- talking about you know. Pageants are running in the gigahertz. I'm almost in the terror its capacity or just don't need got speed port your standard micro controller which is it mostly that was an this is a signal goes and and it. Turns on a -- or has a little light any day to serve phobos in my experience inning over 2000. Cycles is really is a waste time for for micro controlling you know whether it's a robot -- RFIDs refrigerator whatever or a bit. An email of the fire it's really you know you don't need 2000 instructions per second -- You know that to be two I mean I definitely made robots that need ten to 20000 instructions per second. My bargaining room -- for example he operates in about 40000 instructions per second which operates the lyrics it's amazing what he's not wearing drink so -- is circuit board."
" But that solid stream of light which have ever. Been with a related to that particular robot he really raise it out of -- since. What signal would affect what are our sponsors Squarespace your table or what routes in -- favorite interns. Tyler basis the viewers I'm Tyler our intern at Revision 3 I'm here to talk about Squarespace which is hands down my favorite publishing platform on the Internet. What I liked most about Squarespace is that it's fast and easy to use it's so easy you can build a site in three simple steps. One she's -- modules pages features you want your site. To pick one of the beautiful templates provided by Squarespace all made by professional designers. And three sit back and relax your website off set up to just play around add more content and enjoy. Congratulations you just save a ton of money by not hiring a web design your Internet -- just went up ten points. So what are you waiting for you can try for free right now it's Squarespace dot com. And be sure to use the code system that SY FTN when you sign up to get 10% off like -- membership. --"
" If you're starting you've never actually program anything before -- the marketplace and -- talking about programming languages. The basic language is probably the best way to start if you're if you're afraid of things and so. Parallel ax has two great books one of them is robotics with the -- on the other is what is a micro controller. Both of these books are not only well designed for beginners in terms of the language involved. But they're really good in sort of a step by step start to finish. Kind of thing so basically they take you presuming you know absolutely nothing about electronics where programming. And it really walks you through so basically if you can get the -- robotics with a robot. Book and kit by the end of that you can make just about anything working to turn lights on and off into all sorts of other cool things. Other books like prettier do we know in my experience there are not as well organized so wanted to things are relatively new chunk of -- type of -- So this is the O'Reilly book making things talk. If you're an experienced C programmer this is a great book if you are in neo fight who has never actually program before. I really dislike this book and I like everybody meek. They're all my good friends and I really think this book is a horror fest in terms of organization. -- a good book for you know any -- she basically say okay this is how to -- hello world and then for hello world you go to this is poetry and only be on and off. And that book goes from hello world to drawing triangles on your pictures screen. This is his -- is perfect for little. I with little technical training and lots of interest I disagree I think it's just it's too much of it cookbook rather than novel and I think that a good. Teaching curriculum is -- novel which means you have to start page one and and it page 100 -- and a cookbook which is you. Turn know anything about one of those novels about like Hawaii that starts with earth cool yeah we continents formed enough novel again and again. If your experience you programmer desperate. I just think it's a good book so there's also lot of talk now is not open source hardware and so what open source viruses is that anybody can make -- Com there's a million different -- variants out there it's like twenty. It's I would say it's probably over hundred now but and any and are we know is a great place to start if you -- make your own board. On if you don't want the -- we -- guess familial for example is up for that you invited as premed and rated ago. Interestingly enough though Carol actually unaffiliated products I just like their product. They -- the originators of open source -- this is the parallel -- Oh -- I don't know what they call it a stamp because it's much larger than a stamp its presence and basically. Everything that's on that particular board in your hand right now is the same. As that tiny little microchip which in the beginning. And what it is is they actually give you -- parts list so that you can maker boards that you can buy your own microchips not necessarily from them this is actually using eight. Microchip -- it is just this is just -- it's open source. They -- all of the the code and things like that's and to that end you know they're not treatment that regulate okay so it is actually under trademark for you lose yet and it's it's out there yelling about her paralyzed is is all of -- software and their books are free so basically if you want what -- micro controller. You can buy the book for whatever the cost of the book is twenty bucks something like that or you can download -- Pia for. From the side trickle mom. But again you know boulevard Reno and her relax our great starter boards there's lots of others there's the basic tax. Which is basically it's a much much faster version. The parallel -- basics. On and it can also multi thread. If you need multi threading which I would say for most starters you don't need multi threading. -- you want to go with the basic tax or -- like propeller chip or your Wii or all that multi threading chips. The basics it does not multi threading it is not capable of doing two things at exactly the same time you can gently takes them."
" We try to summarize this real quick. If you're a newbie -- experimenting with controllers the first time you recommend some type of parallel export. Because of the especially if you're unfamiliar with programming because it runs on basic and there's some excellent and free. Educational materials available for that for learning correct if you are sort of I must be open source for -- your -- is an excellent option. And if you think you need more than two kilohertz you probably don't."
" Yeah I'm really. Including most prominent and powerful are probably far beyond this to get you don't need this for it and -- yet powerful if you're just trying to turn on a flight when you get a new email. You don't need. There's no reason to buying a Porsche. To drive a -- down to -- we should take a moment. To pay the bills thicker sponsors people who let's bring the show you're gonna sit up our project and then marina do cool things are aren't. Six."
" It's able to thank one of the sponsors of today's -- that -- system godaddy.com. Speedy reliable secure web host it would no long term contract good daddy's hosting plans are bigger and better than ever with 99% up time free 24 sevenths support and no annual commitment. Starting at less than five bucks a month web hosting from godaddy.com includes access to the godaddy hosting connection we're talkin' be -- to quickly install over fifty free apps like word press Joomla Drupal as commerce and quite a few more. To what do scored discount enter into exists to when you check out -- additional five bucks off any order of thirty bucks or more. Not spend that much check out for reason three dot com slash godaddy for all the system go to the heels of codes do us a favor here. It's system -- piece of the Internet at godaddy.com. And what of the system couldn't when you view. So."
" Okay for our project we're gonna make a very simple email notify are based on a really cool project be found on the Internet by Cheney got work. And what -- he had done is he's taken on our do we know. And it turned on a little LED so basically when the -- You know came in in his Gmail account. It would talks to -- Reno and ten. And turn on a little early days of my box LED's."
" All bonds awful. Well this is superior really wanted something better than an early eighties so that meant and using it Serbo. And so we want it like a little little flaky -- thing just so that's the reason today is our email like he played I think that's the official terms like like right now. I have to call our mailbox flag mailbox -- On it and I have simulating the operation of the -- we'll -- here. In the reality this this will turn and that the entire -- roads so. It's. This -- So."
" In terms of the reprogram it operates -- fundamentally the same as as Jamie's original programming we can find online. I'm except for or we're doing two different things one we're gonna use -- already and only -- and number two I mean is the apparel export -- we know. Not because of my great love apparel exports. But out of sheer unadulterated laziness is the apparel -- development board has a servile attachment built into it. And they are between aboard does not have Acer -- adapter built into it and I really didn't want to take up the soldering iron because the soldering -- that is. Yes so that -- export has four built in server adapters and here we don't work this time so two there's nothing -- doing now I am just. Saving a step and using apparently export Ratner aboard. Thick -- here we know board will also be available on the system website. So you can pick your code which -- want to use our Reno for. That paralyzed or. Was this some sort of in the translation thing going on to get what was originally virtually no code to run who know him both codes and especially kind of a good first project on both codes. Just wait for a cereal character to come out of the computer and so they're always listening -- just little little micro controller you're going you know. Time and as soon as the computer sends out a signal on says cool. I'm gonna have a character that character is what in your twit no case would turn on the LED or in the parallel -- case -- Open to serve that we should -- this point it could -- though you can use to trigger a relay your conclusion to turn on a remote switch and turn on a -- you can use it to. In this case sound alarms you know you can be had have a."
" Submarine that's our basic building steps you can raise it to use of fundamental base with a fundamental code that would fortified controller to do something controllers do something these are being mis steps and you can do more interesting thing the controller not that. Our survey of like if not fascinating."
" It's exactly. And it's an interesting thing of of what she really certain getting in the mall involved as micro controllers. Turning on and -- basically sending a current through that LED. And as Patrick mentioned you can also use that for a relay and what it really is electromagnetic device that closes. I'm. When it feels current and that connects another device -- you can actually use this tiny little. And bridge to it which would normally turn on -- LED to close a relay. And that really they can carry AC current for example so you could turn it on a lightbulb a regular old 410 volt AC lightbulb using a board like this. By replacing the only."
" So we've got over hardware hooked up right we basically -- the server -- in the parallel ax or into a USB serial adapter into the computer. We need to have python installed on machine if you're."
" I'm sure you've got python or not you can go to python dot org to download it. And that includes all of different variants whether you're running a windows machine on an X machine or Mac machine or via steam machine. Most Macs with OS-X half python preinstalled so that developers that'll developers folders never going -- and there's all sorts -- weird stuff on on computers you know express. And now you just need to modify the python script. And fortunately you know that the script you don't have to worry about any coding at all you're modifying you're putting in your username and password. For your Gmail account. And saving you're saving it how -- right now. Depending on how your pipeline installation is configured -- different ways to run. On a windows machine you can run as a batch file on the under shell script so it's constantly running in the background. Com online game. Macintosh on the ridiculous file -- to make available for you. And basically that he -- file we'll just run on boot and so it'll automatically run on iPods as well. So it's running on that OS-X bucks right now is running on excellent advice and much right now so if I see you so -- using mail me at Gmail account. Time Gmail -- message to your Gmail accounts an email to my Gmail accounts. Tom what should happen is that. Once the speed of the Internet has caught up to this machines and it has notified my Gmail account we'll suddenly seeing that go up. That's really the simplest not a word you know leaving out any crucial components or anything like that anytime a software installation happens. You might have -- few little issues. The real issue here is basically. Trying to install something here if you want to use an -- we know board. You're gonna have to do a little bit of configuration to get a Serbo on -- are going aboard. Because the ground and the power which is what powers the -- But is very different on the board from where the actual date at port is -- and -- up those wires com or get -- or we don't shield."
" Okay the test message is. The way what -- monitor to work. Our way beyond that. Computers talking really is on 247 you probably want a nine volt adapter and nine volt batteries. Hello how fassel the originally -- report does have one big advantage to it is you're doing -- board can actually get its power. From the USB cable which apparently you cannot so you don't necessarily need. Two on power it. Via a nine -- don't need a USB to serial adapter you're doing this kind of a more modern design that a lot of the other by the modern parallel experts -- have you have you this -- Having set the cycle and at that was his personal."
" How do you like and any an intern here at system. And this week's Netflix picket the week is you've got mail it's a hilarious and touching film can be teaching -- what Leno asked. What -- opinion people who dialed up to the Internet on a regular basis were still -- marginalized. It starts a pre botox Meg Ryan and younger Tom -- is to business rivals who hate each other in real life. But eventually bonds and -- he's the information superhighway. Filled with adorable integrated tech jargon you've got now -- on your -- today. Or browse the other 90000 titles Netflix has to offer including Blu-ray. -- vowed to find any title you're looking for. Plus with over forty shipping centers almost all deliveries happen in just one this Thursday and shipping both ways it's totally free. Plans start at 499 but it's -- system here you can get a free trial by signing up today at www. Netflix.com. Flash system support asked by supporting man. So this."
" so a lot of other little repetitive -- for reporter -- that this is really the foundation to robotics true. Electronic controls it's not just like check email but. This is the universal widget that for for oppressing the people he's an art projects and robots in humans use these are where you start programs you know."
" Applications you know so this is exactly -- I certainly with -- projects -- just making a tiny little robot go forward with these kinds of -- us. And it's important understand for this episode there are all these different micro controllers out there. So just tons of cool when you registered Republican who whether you're using art we know whether you're using her relax whether you're using picks who picks. I've chased -- him or treating -- lots and -- of code out there and it doesn't all have to work connected to your computer like we have here. On you can definitely have suffered that you know you unplug and then -- of the the board does its own thing. So I can have like this sensor like there photo optical or -- with the dog -- exactly and and you know it emails you when the dog door -- open and close I don't know perfectly okay on the dock you could put an RFID -- and done -- since -- is what exactly all of these different things -- are within your ability to -- on -- just a question of choosing the right micro controller for your needs if you're gonna make -- hundred of something. It's better to go with a two dollar taken hundred. If you're gonna make wind of something is probably better to go with an."
" Cool it's being called check out Scam School Brian -- source for -- friends -- scam a free drink at the bar it's like a crash course in social engineering. Gets you up so. Of Scam School every Thursday only reason 3COM slash scam school and as always if you have any ideas comes or suggestions please email us isn't it revision3.com. And don't forget. This man lives in the forums revision3.com/forum. In the archives of -- upset. That's all the horrible episodes revision3.com slash system. Where you can now watch her older episodes and hopefully make some of the projects to me like the RFID your. Little production history. I'm very important."
haku
Started discussion: May 4, 2009 @ 4:32pm GMT
Episode 102 - Build an Email Alert System with Microcontrollers [Discussion]
Learn the basics of microcontrollers but building yourself an email alert system. It's fun and functional!
Watch / download here.
----------------------------------------------------------------------------------------
Extremely pleased to have a show with microcontrollers, this is exactly the kind of show I want to see much more (MOAR!) of.
PICs, no mention of PICAXE's? a programmable PIC which doesn't need a $100 device to write code to, and has lots of extremely useful native functions such as PWM (pulse-width-modulation) outputs, servo controlling, i2c communcations, analogue input, program it (very easily) in a version of BASIC. The only drawback is the higher price per chip compared to standard PIC chips but that's fine if you're not going to be programming tens of chips.
namochan
6 months ago
I was really suprised about the 'you need either a 200$ controller, or these expensive arduino boards' message of the show.
Arduino uses AVR contollers that are just as good as those PICs, but their programmer is _really_ easy and cheap to build. Some of AVR controllers don't even need the crystals, just plug GND and VCC in and off you go.
Those heavy chip programmers really brought back memories from the 80's, thanks for that ;)
Simple AVR Programmer
Very simple AT2313 board
Arduino uses AVR contollers that are just as good as those PICs, but their programmer is _really_ easy and cheap to build. Some of AVR controllers don't even need the crystals, just plug GND and VCC in and off you go.
Those heavy chip programmers really brought back memories from the 80's, thanks for that ;)
Simple AVR Programmer
Very simple AT2313 board
haku
6 months ago
Hardware wise to program most of the PICAXEs all you need is a serial cable, two resistors and 5v power.
The argument for not moving over to USB as standard for a lot of microprocessors is that it would needlessly increase the price of the chips, much cheaper to have a USB-serial cable.
The argument for not moving over to USB as standard for a lot of microprocessors is that it would needlessly increase the price of the chips, much cheaper to have a USB-serial cable.
fishtoprecords
6 months ago
Great to see a show on microcontrollers.
But it could have been better. I think the "pick a microcontroller" section was done at an uneven level. I think its pretty self explanitory that folks watching the show don't need 1000 units, so the bias should be towards the Arduino or Basic Stamp for quantities of one to five.
Would have been nice to have at least a sentence or two on how the client code on the PC/Mac detects that You Have Mail. Give a bit of insight into the issues and approaches. Even if you are going to use a magic library, its still worth a sentence on how it works.
But it could have been better. I think the "pick a microcontroller" section was done at an uneven level. I think its pretty self explanitory that folks watching the show don't need 1000 units, so the bias should be towards the Arduino or Basic Stamp for quantities of one to five.
Would have been nice to have at least a sentence or two on how the client code on the PC/Mac detects that You Have Mail. Give a bit of insight into the issues and approaches. Even if you are going to use a magic library, its still worth a sentence on how it works.
Guytheninja
6 months ago
Excellent episode! Bravo! I may actually buy a parallax propeller and try it out (when I get some money of course).
adderx99
6 months ago
great episode! it definitely inspires me to get out and make some micro-controller projects, which is what i like to see from systm!
i think that the code aspect of the project was glossed over at the expense of the comparison of boards, and i felt like the comparison of the various types of boards, while good for general background, was overkill. this episode could have easily been split up, one episode covering the comparison, and another covering the actual project. i felt like the actual project was boiled down to 'find it online' and a 30 sec example of it running.
i guess an analogy is a cooking show. instead of watching them baking a cake and showing why the ingredients are added, i felt like the episode was just about saying theres 3 different types of cake, and then after beating that point to death, we watch them eat a cake.
i understand that the whole point isnt so much to create something useful as just to inspire people to start playing with micro controllers in general. though i would have liked to see some of the actual micro-controller voodoo though.
again, great episode! dont take my criticism too much to heart. i did learn a lot and i love to these garage-style hardware/software, weekend make something projects, even if i get to live vicariously thru watching. :P
i think that the code aspect of the project was glossed over at the expense of the comparison of boards, and i felt like the comparison of the various types of boards, while good for general background, was overkill. this episode could have easily been split up, one episode covering the comparison, and another covering the actual project. i felt like the actual project was boiled down to 'find it online' and a 30 sec example of it running.
i guess an analogy is a cooking show. instead of watching them baking a cake and showing why the ingredients are added, i felt like the episode was just about saying theres 3 different types of cake, and then after beating that point to death, we watch them eat a cake.
i understand that the whole point isnt so much to create something useful as just to inspire people to start playing with micro controllers in general. though i would have liked to see some of the actual micro-controller voodoo though.
again, great episode! dont take my criticism too much to heart. i did learn a lot and i love to these garage-style hardware/software, weekend make something projects, even if i get to live vicariously thru watching. :P
jimlovell777
6 months ago
namochan like you I was a little disappointed to hear David say to program Microchip PIC microcontrollers you needed an expensive "PIC Burner", this is simply not case. I program $1 PIC chips using a $14 programmer all the time and everything works great. Microchip has their own programmer they sell for $35 http://www.microchipdirect.com/productsearch.aspx?Keywords=PG164120 At that price even a project you only plan to make twice represents a savings over the other options mentioned on the show. A glimpse at the code would have been nice and since the show was geared towards beginers showing how to get on the code onto the chip probably should have been included. Great show and neat idea I'd just like to see more accuracy in their technical statements.
Oh and if you have the ability you can make a PIC programmer using "junkbox" parts http://www.jdm.homepage.dk/newpic.htm
Oh and if you have the ability you can make a PIC programmer using "junkbox" parts http://www.jdm.homepage.dk/newpic.htm
kiwifrog
6 months ago
Dave way over complicated this entire project, this project can be achieved with a $4 picaxe and a few resisters. As soon as he mutted the words "Servo Driver" I thought he's talking crap. Servos are controlled using pulse-width-modulation, This can be achieved using a simple 555 timer or any micro-controller (servo driver what a crock) . I've included a schematic I wiped up while listening to this episode out of pure disgust.
So its about time you were really educated by this programme,

As you can see from this schematic, nothing more that a picaxe and a few resistors, It's programmed through the 3 input lines, then you need to switch over to the other input. The pulses are sent out pin 5 (software pin 2) through a 330ohm resister, this tiny picaxe can control 3 servos at once.

Picaxe 20m, this PCB I built in around 1 hour, is currently running 8 servos, the cap and regulator is so I can run both the picaxe and servos of the same power rail.
I haven't tested this code but this should work with the programme Dave's programme, after changing the port speed down to 2400. The code is quite simple to follow if it doesn't go.
[code] symbol flag_down = 50 'Change if flag is in wrong spot when down
symbol flag_up = 160 'Change if flag is not vertical when up
symbol Email = b0
Main:
serin 4 , N2400, (email) 'Program will pause till it receives an input
If email = "M" then
servo 2, flag_up
pause 600 'this pause gives the servo time to get in place
Pause 5000 'Flag stays up for 5 seconds
servo 2, flag_down 'Then drops
pause 600
end if
goto Main [/code]
Dave you underestimate the intelligence of your audience, If you really read the forums you'd see some of Haku's post regarding picaxe also, this entire ready made PCB approach you have is disappointing.
So its about time you were really educated by this programme,

As you can see from this schematic, nothing more that a picaxe and a few resistors, It's programmed through the 3 input lines, then you need to switch over to the other input. The pulses are sent out pin 5 (software pin 2) through a 330ohm resister, this tiny picaxe can control 3 servos at once.

Picaxe 20m, this PCB I built in around 1 hour, is currently running 8 servos, the cap and regulator is so I can run both the picaxe and servos of the same power rail.
I haven't tested this code but this should work with the programme Dave's programme, after changing the port speed down to 2400. The code is quite simple to follow if it doesn't go.
[code] symbol flag_down = 50 'Change if flag is in wrong spot when down
symbol flag_up = 160 'Change if flag is not vertical when up
symbol Email = b0
Main:
serin 4 , N2400, (email) 'Program will pause till it receives an input
If email = "M" then
servo 2, flag_up
pause 600 'this pause gives the servo time to get in place
Pause 5000 'Flag stays up for 5 seconds
servo 2, flag_down 'Then drops
pause 600
end if
goto Main [/code]
Dave you underestimate the intelligence of your audience, If you really read the forums you'd see some of Haku's post regarding picaxe also, this entire ready made PCB approach you have is disappointing.
scott01581
6 months ago











[SIZE="1"]Just noticed at the end that the credits were wrong btw[/SIZE]