So excited that I got you. If you follow on Instagram, then you know I have this and I’m so excited to show you guys here I have a pneumatic cylinder system. So let me just go ahead and show you guys kind of what it does. So I have the air going in and oh so I’m going to be teaching you guys in this tutorial how to control this, how to hook it up, control it and control it with an Arduino with motion sensor. So let’s go okay guys, so here are going to start off by what you will be needing to just run your run, your piston just to work just with a button or salt like that, so first of course you’re going to need to your cylinder itself. This is a park or parker, which i would say is a pretty good company. They make really high quality, cylinders really cheap too. You can get on Amazon and all the things I will have link down below to the Amazon. So you can buy it yourself. You’Re going to need to get some tubing a solenoid. Do you guys are going to need two big solenoid? Some of these connectors, like this, that have hose to 18, because this is a 18 here, so you’re going to have some way of connecting this middle port to the solenoid, which I will explain later. Optional are some exhaust ports for it and I’ll. Tell you what those are and then last but not least, an air compressor and air compressor hose and so let’s just get started, guys so here’s, the solenoid and here’s how these works.
So the solenoids have one side, has three ports in one side? Has two ports Sears that works air will go in through your middle port on the right side and then these two back ports right here and here are your exhaust. So air will exhaust out of that so we’re going to put these just exhaust mufflers right on there, just like this and that’ll just make it so it’s not as loud now, you’re still going to get that awesome haunted prop sound and I’m not going to be Putting teflon tape on this these exhaust fittings, because they don’t have to be a hundred percent airtight, because all this is is just like sponge on me and a little metal sponge on me and it just kind of muffles the air and instead of just going straight Out of the hole, kind of puts it in a sponge first, but this so this then the way I’m going to connect my compressor to the solenoid. I don’t want my air going straight into the solenoid at all time, so I’m going to use this little. This little thing right here, that’s just blower and I’m, just going to add a zip tie around it, so I can just zip tie it closed when I’m ready to use it. So next, what you’re going to want to get is something so these are 18 threads. All these are 18 threads, so we’re going to want to put the this on here.
So air goes in through, like I said, air goes into the middle, so you’re gon na want to put your air thing, your air source, going through the middle so but before we do that one you do want to tell on things because this does need to Be very air tight in teflon tape, just like tightens threads so now I’ve put teflon on here, and so we can go ahead and just screw this on there and so it’s Teflon just makes it air tight so and we’ll we’ll tighten everything with wrenches afterwards. So it’s super we want to be completely airtight. We don’t want any air leaking during the haunt now so now that we have that we’re going to want to work on this side now, so the top port is your port, a and port B, so port, a so here’s. How a two way valve works when there’s no power running through the solenoid air is constantly going to be going through port a now when we do apply power to the solenoid air is going to shut off from coming out of here and come out of here. Instead, until power is taken away and then air going to shut off from here and come out of here, so we’re going to want to put to preach we’re going to definitely want to get teflon and these come with teflon on them. But it’s really bad. And you should put it back, you should put some more, I mean because it doesn’t really do anything and tighten those really tight, get a wrench even so now that we have these in super tight, we’re ready to go and move on to our cylinders.
Let’S put this to the side and take out our cylinder, so how cylinder works is inside of here at the end of this rod inside there’s a little flat plunger so that plunger can, when air is pushed in through that side, it pushes. It fills up the air inside of here and pushes the plunger up when air goes in here pushes the plunger back down. So if we put air in here makes it go down so we’re going to want port put port a in here, because we always want. We want when it’s on standby. We want the cylinder to be down now that might change for, depending for your project but that’s how I’m going to want it default. You can always change this by switching the port’s around really easy, so we’re going to want to make sure we Teflon our ports again and, like I said, all the prot. All the things are in the description below and then put this one on now. It’S super tight, so hair is gon na leak, you’re ready to start getting your tubing, so you’re going to want to get two tubes about a foot long just like this and make sure when you’re cutting them you’re cutting them straight because you don’t want them at A point because they won’t go in here very well so here’s how you use these. You push this little part down and usually when you press them in, they just kind of go in automatically.
So you push this down and then just push in really hard and see that is that’s in there and if you want to take it out, you just press this back down and just pull it right out and comes right out. So to get it in. There push it down, pushing really hard. So now what we’re going to do is connect our air supply. So there we go I’m running, I think about 60 psi. Okay, so it looks like I actually got these two mixed around this time we can play around with so I’m just going to switch these two out now that I switched him around, it should be better now so there’s a so once we put air in so Let’S go ahead and put there and see now now, if we put air in now, we see that this mistook this right here on my advice: space, okay, so now air. So now I like can’t, pull this out because there’s the air pushing it push air is pushing in and pushing the plunger down. But if we press this little path, button right here, you’ll see that you’ll see that when we press the test button, kids really it’s. Actually, hot, and so, if you want to control speed, you can either change the psi put at a really low psi, or you can change these mufflers and put on these little screw caps that lower the amount of exhaust. I don’t have those to show you guys, but you can find them and I will have speed controllers in the description below, but so that’s cool but it’s not controlled by a switch or a battery.
So today, I’m going to be using just a regular old drill. Battery, so if you look at a drill battery we’re gon na look at the this is battery plus and battery negative, so it might be different, but these are for the D Walt. These are 20 volt batteries, and this solenoid goes from 12 to 24 volts. So 20 volts is perfectly so. I’Ve marked the positive which you’re just gon na have to figure out definitely say just have to figure out a positive and doesn’t break it. If you do the wrong sides, so you just put one in here, make sure your fingers are not touching the leads when you put in here, but just to test it out. We can put these positive, we can put the positive in there and then the negative can just go right in man will see, our piston will go off there, it goes and you can wire a switch and use a 12 volt battery like here. I have a 12 little batter, I think it’s dead, so let’s see if this works much stop yeah. This battery is dead, but it can give charge better than you know so or you can get a 12 volt adapter. So now that’s pretty cool. But this is not a haunted Halloween prop, because this has to be manually controlled let’s. Take it a step, further control it with Arduino, so we have the Arduino setting it off when you walk past it so that’s going to be the cool thing.
So for this tutorial, we’re going to use a Arduino Arduino board and a relay so let’s go ahead and look at the Arduino build for this process. Okay, guys, let me show you the general rundown of how this works, so we have our two wires coming from our solenoid. One of the wires is going to go to our negative into the battery. The positive one is going to go into one, the middle slot of our relay the other wire from the solenoid. The negative one is going to go into the right terminal of the relay outside of the relay we’re, going to put it in the ports that we defined. So that would be like eight and one that we defined in the code, okay, guys so for the code. We’Re going to be defining two integers and I’m going to go through this pretty quickly, but you guys can click the card in the right corner of the screen to just get a little peek of just how to more in depth control a motion sensor. So if you guys really want to get in the Arduino controlling of a motion sensor then watch the video in the card up in the right hand, corner to watch that video get used to coding sensors. But if you already know how to do that – or you think you can follow the code quickly stay on this video, so we’re going to start by doing so, we have the solenoid so I’m, just going to solenoid I’m going to say Sol will stand for solenoid.
I think we put it in port eight, so we have it in port, eight integer, so we’re going to change integer. I guess what is to st. Sen for sensor. I think we said we put it in port one. You know you can always chain these ports. So now we’re going to do, pin mode because we want to set up the pins so we’re going to put soul, Karma output because it’s our output as we’re out putting information I’m just going to copy this pin mode right here and we can change sin Music Sen to input now we’re going to be doing something called a read, so we’re going to just do vow because that’s a popular thing to use and again it’s got it still as an integer, so integer valve digital, because it’s a no it’s, an a it’s in A digital pin, not an analog pin. So if it’s an analog pin, you would put analog, read but it’s in a digital pin. So you do digital read. So we have digital read and then we want to be reading the sensor. So digital read sin: there we go now we’re going to if, if sin equals equals, you can say hi or 1 close that now we’re just going to you we’re, going to do digital, solenoid and let’s say well at the solenoid to be high for one second. 1000 milliseconds, then don’t forget to add your semicolons now we’re going to add a else.
So if that’s not happening, then what happens is we’re just going to do this cop. We can copy this and, if high means all if high means on, we just need to do low to be off and that’s the code upload that to your board, and you are ready to go so now guys. All you have to do is turn it. On start, your powers, I mean spark to your air source open and see there we go so our code tell it to run whatever senses motion for half four for 1.5 milliseconds. So I need to stop the motion. So if we put the motion sensor back or can’t release anything and then start our air going, you can see that see and you can change this this this sensor is really sensitive, so you can change the sensitivity pretty easily as well. So let’s wait until it calms down up sensing. Nothing then boom these guys go boom. Oh guys. That is the general idea of how this works. It is crazy, easy now you can buy really expensive prop controllers or you can learn how to code. Arduino really simple, and do it do it yourself for really cheap? If you guys are more interested in learning how to use relays, you guys can click the card up here to get a little peek of how to use a relay to just in the project that we do in that video. I just show you how to make a random flickering light with a relay, how to make your house lights flicker with a relay so watch that video to get more interested or more knowledge about relays stay tuned, guys I’m gon na have my first pneumatic prop build.
If you want to see that new first pneumatic prop build, please kick click right here, thanks guys, so much for watching this is Chris Connor.
arduino battery Video
arduino battery news
Posted on Tuesday August 20, 2019Game On With These Open Source Arduino Buzzers HackadayPlanning a game of Hacker Jeopardy at your next meetup? You’re going to want some proper buzzers to complete the experience, but why buy when you can … … Continue Reading »
Posted on Wednesday September 11, 2019How to Build a Low-Frequency Theremin With the Evive DesignNewsThe project explores the evive, an all-in-one electronics prototyping device for makers and engineers, by using it to build a theremin. … Continue Reading »
Posted on Thursday August 15, 2019Intervalometerator: Open Source Code for a Remote Timelapse DSLR PetaPixelWant to set up a remote DSLR for shooting a time-lapse? The Intervalometerator (AKA ‘intvlm8r’) is an open-source intervalometer that can help you do so at … … Continue Reading »
arduino battery Social
Originally posted 2016-05-25 16:31:09.