Bummer! This is just a preview. You need to be signed in with a Pro account to view the entire video.
Soldering, Wiring, and Prototyping Survey13:39 with Joe Flasher and Zach Saale
Joe Flasher and Zach Saale give a short introduction to the world of interconnected devices. Having built many fun projects for various companies, they go over basic soldering, using breadboards for rapid prototyping and finally how to write a simple arduino project.
[MUSIC] 0:00 >> This one's gonna be a little a lively demonstration. 0:04 A little bit of song. 0:08 A little bit of dance. 0:09 Right? >> I hope not. 0:10 >> Okay, a lot of song and a lot of dance? 0:12 And here they are. 0:14 >> So, hello everyone. 0:16 We're Zach and Joe as we have introduced ourselves. 0:17 We work for iStrategyLabs and just quickly I'm gonna show you two silent 0:21 videos to kind of show you why [CROSSTALK] we're up here doing this. 0:25 Yeah they're just like two loops. 0:29 So, basically the two of us get paid to wire, solder and prototype everyday. 0:31 So, like, we build stuff like this, 0:38 like, crazy interactive installations that are one off. 0:39 So, like, we don't manufacture PCBs or anything like this, like, most 0:44 of the stuff we finish it, like, five minutes before it goes live. 0:48 >> Hm. >> So, it's all very much a prototype. 0:51 And this 0:54 was one that we did for Redd's Apple Ale which is a really terrible beer. 0:54 [UNKNOWN]. 0:58 >> [LAUGH] The next one. 0:59 >> So doing it and say what it is real quick. 1:01 >> Yeah, so just a, tell you about this. 1:02 So this launcher right here is controlled through the Internet. 1:06 It's basically a turret that we built. 1:09 So people would go online and destroy this, 1:11 like, 3,000 square foot set that we built. 1:13 >> So there's one Arduino wired up to 1:16 control the launcher, and then there's another one behind 1:19 the set that's wired up to all the targets. 1:22 So when the targets get hit there's a, a sensor that then sends 1:25 things up to the Internet and lets us know that things are hit. 1:29 >> Then our the next one we did is like a Nickelodeon project where it's 1:32 a skill crane that people can also go online and control it and pick things up. 1:35 So, we basically went through all the trials and tribulations 1:39 that you guys were talking about with the watercolor bot. 1:42 >> Yeah the top leg, the top of this thing 1:45 looks a lot like the top of your watercolor bot. 1:46 >> [CROSSTALK] Yeah. 1:48 A lot of a lot of steppers just jamming things in the corners. 1:48 >> but, yeah, so we went through that. 1:53 We built that. 1:54 Like, this is all in it, and it's fancy looking and everything. 1:55 3D printing, like, everything that we do is all about 1:59 rapid prototyping, and we throw it all together really quickly. 2:01 >> Yeah, and so I think the, the cool part about it is that the 2:05 things that we're gonna show you in a second. 2:10 So, we're gonna show you a really simple demo. 2:12 And I'm gonna show you some of the code to make two LEDs blink. 2:14 So, that's pretty advanced. 2:17 But pretty much, the hardware code that we use to do those things are 2:19 what we're gonna show you now, just with a lot more wires touching a lot more things. 2:25 >> Yeah. 2:30 Our, our specialty is generally Internet connected devices. 2:30 So we built out a little project 2:34 in such a way where it'd be very easy for you to connect the server to it. 2:36 They're the hooks that are in the code for that and that's really simple. 2:41 but, so what we're talking about is obviously soldering. 2:44 This is a soldering iron. 2:47 It looks a little different than the ones that are in the room over there. 2:48 All the soldering irons are luckily preset for you. 2:52 They're set around 720 degrees roughly, which is what you use to solder. 2:55 If you don't know what that is, 2:59 which I'm sure all of you do, it's 3:01 basically taking metal to fuse metal to other metal. 3:03 Like that's simply what it is. 3:07 And it's gonna be the most important thing, probably. 3:09 I mean, I guess outside of code maybe. 3:13 But it's like the most important thing that 3:15 you're gonna do when you're building these bots. 3:17 Especially, if it's something that's moving because you want 3:19 things to hold together, because breadboards don't work for everything. 3:21 Breadboards are great because you can just 3:24 jump things around, and just like move 3:26 things in holes and basically how they work. 3:28 Is you have voltage trails, or you have rails that 3:30 go across, so anything that's plugged here also works here. 3:33 You have voltage trails and then 3:37 everything can communicate with one another. 3:38 Sorry, that's a really terrible explanation. 3:41 >> Okay. 3:44 >> But we, and then you move on to like perf 3:44 boards, which are essentially just breadboards 3:47 that you can make permanent, and 3:49 that's basically it. 3:51 >> And then we can show one on the demo cam. 3:53 >> Yep. 3:55 >> In a couple minutes. >> And then wiring. 3:55 So, this is our Nickelodeon project when we were throwing together. 3:57 Which is a complete rat's nest of projects. 4:00 But hopefully, like, you guys, as you come 4:04 to use where where all the soldering irons are. 4:07 Like, we'll help you try to make everything as nice and as 4:10 clean as possible, like I try to pride myself on making very clean 4:13 looking projects. >> Just not at this point. 4:16 >> Yeah, this was a, these things got on fire and we had to 4:18 quickly redo everything and then someone with the camera had to take a picture. 4:21 So, that's why we ended up with that. 4:24 And then to talk about on what we're gonna do next, like, I'm just. 4:25 We're gonna quickly show you a simple, another silent video of 4:29 me, like, soldering this little project together that we're gonna show you. 4:33 [BLANK_AUDIO] 4:37 >> Totally should add the music. >> Yeah, I should've put sound. 4:43 >> [LAUGH] 4:45 >> yeah, so, I mean, the idea is that is, if you can see on the 4:46 right-hand side, like, I built it all on 4:49 a breadboard and then I'm just moving everything over. 4:52 Luckily with the magic of time lapse you can't see me when I screw up a couple of 4:55 times because working on it upside down is like a pain, but this will be done. 5:00 >> So if you do screw up, how do you un-screw up? 5:06 >> So you un-solder everything. >> [LAUGH] 5:08 >> So, like, I mean basically like that's a solder 5:11 sucker, it's generally what I've kinda like grew up using. 5:14 So you heat up the solder, suck it out of there, and then you can take the part out. 5:18 And that's pretty much how it works. 5:22 >> And I know that there's also some wick I guess, over the table 5:24 >> Yep. 5:28 >> Which is it's like a little piece of another wire-looking 5:28 piece that you can hold against the hot solder and it will suck it up. 5:34 >> Yeah, so it's basically like a mesh that as 5:36 you, as you heat it and the solder up, will suck 5:38 up the solder and take it out of basically the hole 5:41 or whatever that you're using or the piece that you're using. 5:44 So this is just gonna repeat forever. 5:47 >> Yep, and then also the the thing that you're using there, do you wanna 5:49 explain that real quick, the helping hands thing cuz we have a couple of those. 5:52 >> Oh yeah, so what you'll see at our station are obviously 5:55 soldering irons, solder. 5:59 We have heat guns, which you'll use to basically make, like, when you solder two 6:02 wires together, you put a nice piece of rubber over it, heat it up, shrinks it. 6:06 So it's basically shrink wrap. 6:10 So you'll do that. 6:12 And you will also see some of the helping hands, 6:13 which are more like they're alligator clips with a magnifying glass. 6:15 It's very helpful to just get two wires held together, 6:19 because when you're trying to solder, like, you're trying to 6:22 do tiny things, it gets very frustrating. 6:24 If you were trying to do it without something like that. 6:27 What I'm using here is like a panavise, which is basically 6:30 like a circuit board holder to, to help me do the work. 6:32 And there's, Helping Hands are probably somewhere in the frame, somewhere. 6:35 yeah, that's basically it. 6:40 >> And we also have several of the first aid kits right behind. 6:42 >> Yeah, so. 6:45 We most likely will be people where you hear the ouch 6:46 coming from other than I imagine the drone area. 6:49 >> [LAUGH] 6:53 >> Which we have our own horror stories about those. 6:53 >> Yeah. 6:56 >> But yeah so, now we're just gonna go and we're gonna 6:57 show this little thing that we built which is, I said, very simple. 7:00 We're just using a relay which I love because they make a nice clicky sound, so 7:03 I love using relays and it's just switching 7:08 between two LEDs and Joe will explain it all. 7:10 >> Yeah, so I, I 7:14 think the other piece of prototyping is you can put this stuff together. 7:15 Thank you and you can see our board here and 7:18 this is what he built in our shop the other day. 7:21 >> Yeah. 7:24 >> And so, you can put this stuff together but 7:25 it's not gonna do anything we are using Arduino here. 7:26 And so we need to tell the Arduino to do something. 7:29 So, I don't wanna turn this too much into an introduction 7:31 to Arduino, but I will quickly show you the interface for getting 7:34 code onto the Arduino. 7:40 And if you haven't played around with an Arduino before, I think 7:41 a lot of people raised their hand when Frances asked about the Arduinos. 7:43 There is a whole examples section up here 7:48 in the, in the IDE, which is freely available. 7:50 And there are tons and tons of examples. 7:54 And so, I'm going to show you one of the a pretty complicated way to blink two LEDs. 7:55 So I will zoom in so people can see this. 8:01 Alright, so this is, 8:03 I'm just gonna hit some of the high points here. 8:05 So what we're trying to do is, using the relay, we're trying 8:08 to jump between the two states to make the different LEDs blink. 8:10 Right? 8:14 So, the relay has two states. 8:14 We will we have the relay connected to an output pin here. 8:16 You can see my finger, yeah, this one. 8:22 >> [COUGH]. >> [CROSSTALK] 8:24 >> To the orange, the orange wire. 8:25 >> So we have it connected here. I see your wiring was getting, getting. 8:27 >> Yeah, 8:30 it's alright. 8:30 >> So we have it connected to a an output pin here and then it will flip 8:31 the relay state which will light up one of 8:34 the two LEDs and then it'll switch between them. 8:36 So, right now we start by saying it'll blink between them in two seconds. 8:38 And then, what I wanted to do to show something that I find really useful 8:44 for prototyping is, I'm just going to decrease 8:47 or increase that delayed time between them, right? 8:51 So I can illustrate something that I find useful for prototyping. 8:52 And that is this serial command here. 8:57 So, this is actually going to allow us to do serial communication. 9:01 Once I hook up the USB, we'll be able to use the serial port to communicate. 9:06 and, so the reason why I'm doing this, there's other ways you could do this. 9:11 Like there's examples of just using the keyboard, right, so 9:14 you could use the up arrow and the down arrow. 9:16 But the reason why I always do it this way 9:18 is because for what we do for our work, a lot 9:19 of our communication comes from the Internet, right. 9:22 So we actually need to be connected with Wi-Fi or Ethernet. 9:25 And the, the serial library parallels very 9:28 nicely the same thing that Ethernet library uses. 9:32 So, instead of just saying, like, you'll see in a 9:35 second when I say if I have data on the serial 9:37 port do something, I can do the exact thing by saying 9:40 if there's data coming across the Ethernet port, do something, right? 9:43 Whereas if I hooked it up 9:46 with the arrow keys, I'd have to write something else to handle those. 9:47 So, right here the set up is something that happens once when the program starts. 9:50 Alright, I set the pin mode to be an output. 9:55 You can have an output or input pins. 9:57 And then we do this loop over and over and over again until we turn the Arduino off. 9:59 So I set the pin state one way. I don't really care which way it is. 10:03 I'm just gonna flip between them. 10:07 This will make one LED blink, and then I delay 10:09 for a certain amount of time. 10:12 This is actually gonna delay the Arduino from doing anything so it's not 10:13 the best way to do it, but it's the easiest way to do it. 10:16 I then, switch the pin states, and then I delay again. 10:19 And here's where I listen serial input. 10:22 So I say, if I've done, if there's something coming into the 10:25 serial port, turn it into a string and act on it, right? 10:28 So, in this case, I'm acting on it by just decreasing, 10:33 sorry, decreasing and increasing the delay time. 10:38 So again, the reason why I do it this way with the serial monitor, which I will 10:45 show you here in a second, is because 10:48 it mirrors very nicely the Wi-Fi or Ethernet libraries. 10:49 So I'm gonna go ahead and plug the Arduino in, if I put it in the right port. 10:55 Okay. 11:01 And you see, it already has a code on it, so it's already doing it. 11:04 We're just looking at the two LEDs blinking. 11:07 But for me to be able to actually 11:09 communicate with it, I need to re-flash it here. 11:11 >> I guess while he's doing that, I can quickly explain. 11:16 I know we keep saying relay over and over again. 11:18 For you guys that don't know that, a relay, a relay is essentially a 11:21 mechanical switch that's on the inside of 11:25 this little black box that the Arduino controls 11:27 by sending voltage to it. 11:29 So, as it's switching a, that's why you get this nice clicky sound. 11:31 Like there is a piece of metal or copper on the inside. 11:35 It's essentially switching between two rails that are sending out the voltage. 11:37 >> And so, if I put in a string like decrease. 11:42 So DEC for decrease. 11:44 You will see it's now, this is the serial monitor of Arduino which I'm sure a 11:47 lot of you have used if not for 11:49 getting information but you can also give it information. 11:51 So you see every time 11:53 I type in the DEC string, it'll decrease 11:54 and it will start blinking faster. 12:00 And so you can use this to do anything, right? 12:04 Like you can use this to communicate with your code in any way. 12:05 And like I said, there's also ways that you can take straight things from the 12:09 keyboard, and then, because I'm reckless, we will 12:12 take it down to a zero second delay. 12:17 I'm excited. There we go. 12:22 [SOUND]. And you can stop now. 12:24 >> Yeah, if we're, I mean, for the most part, that's generally it. 12:34 And he's he's gonna show a slide that has 12:37 the URL for this code, which is extremely simple. 12:39 But we are here to help you guys make what you want. 12:42 Like, reality 12:47 basically. 12:48 So, it's like we're, we're the 101 for this and hopefully you'll 12:48 be coming to us multiple times throughout this whole entire project or conference. 12:54 >> And I just need to make that smaller, oh, this is nice. 12:59 Alright, there we go, okay. 13:03 So that simple code is on GitHub if anyone wants to grab it. 13:06 Or just grab us. 13:08 What are we, what are we gonna do in our workshop? 13:09 >> oh, yeah, so what we're 13:11 gonna be doing is just kind of messing around with some 13:13 text to voice Arduino applications that are controlled by the Internet. 13:17 >> Yep. 13:22 >> So we will be soldering, wiring, and prototyping our own little project. 13:24 And we will be glad to help anyone do the same or something else. 13:28 >> Excellent, thank you. >> [SOUND] 13:33 >> [SOUND]. 13:38
You need to sign up for Treehouse in order to download course files.Sign up