Showing posts with label tutorial. Show all posts
Showing posts with label tutorial. Show all posts

Monday, September 5, 2011

Quadcopter Tutorial 2: AeroQuad 1.9 Shield

So here's the second tutorial. This will be about how to solder the AeroQuad shield together to make the Arduino more user-friendly. I honestly think it might be easier for you to do the tutorial from the AeroQuad wiki here, but I'll be going through things I had trouble with that they might not completely explain.

So to start, this is what the shield will end up looking like in the end. I'll number all the sections so you know what part I'm referring to when.



Before I get started with that, though, I'll talk about soldering. First of all, when you solder, solder outside or somewhere with good ventilation. This is because the solder has lead in it, which you shouldn't inhale. Also, because of this, wash your hands after soldering because you don't want lead going into your mouth when you eat. Solder on a surface that either won't get damaged or you don't mind getting damaged if you accidentally touch it with the soldering iron. The soldering iron gets very hot, so you don't want to touch it either. If your soldering iron is like mine, it comes with a little ring which you can set it on when you're waiting for it to cool down or just want to take a break. This is a picture that shows what that's for, because I didn't know at first:


Since you're doing light soldering, the soldering iron should be 15 watts. If you look in the previous picture, you can see that mine can switch between 15 and 30. Your solder should be .032" in diameter. This is the thinner type meant for things like this.


When you solder, you should have a relaxed grip so that the soldering iron doesn't move around too much. Don't hold your hand in the air, because that's unstable and hard to keep still.


This is extremely easy once you get the hang of it. There are two ways I've found I could do this. One is to heat up the metal you will be soldering onto with the soldering iron and just touch the solder to it to melt onto it. Another way is to touch the solder directly to the soldering iron, which is much faster but a little harder. If you look closely in this demonstration, you can see that surface tension causes the solder to gather in a cone shape at the base of wherever you're soldering, so it's very unlikely that you will accidentally connect two pieces of metal that shouldn't be connected.


If, however, you do accidentally solder something you shouldn't have, simply touch the solder with the soldering iron. It should melt again and stick to the soldering iron because of surface tension. Repeat this until it's all gone.

Now,for the actual tutorial:

1: 8 pin stackable headers:

In the bag of stackable headers you should have, take out the two longest ones. They should each be 8 pins long. Stick them through where you see the number 1 on the first picture so that the black parts are on the top and the pins are sticking through to the other side. Go to the back of the shield and solder them in there using the tips above.

2: 6 pin stackable headers:

There should be two more stackable headers that are 6 pins long each. Do the same with those, but on the other side, at the number 2 in the picture at the top.

3: Last stackable header:

take the last header. This one is going through the other direction, through the bottom so the black section is on the other side than those of the other headers. I made the mistake of soldering this on last, which makes it really hard as there's not much room once everything else is on. That's why I recommend doing it now.

4: Breakout pins:

Take out these things and break out three segments of 10 pins each. While you're at it, for later, break out one more that's 8, another that's 7, and finally, two that are 6. Now, take the three 10 long segments and put them where you see the number 4 in the picture. The black section should be on the top and the shorter side of the pins should be pointing downwards. Solder these in from the other side. Make sure they're completely pressed into place.

5: Accelerometer:

The accelerometer is the longest sensor. Take it out as well as the pins you broke out that are 8 long. Put the short side of the pins through the bottom of the accelerometer so the circuitry is facing up. Put the long side of the pins through the top of the shield so that the accelerometer is on top. Look at the first picture at 5 for reference. Solder both the bottom of the shield and the top of the accelerometer. Try to keep it as level as possible so that the readings of the quadcopter aren't thrown off.

6: Gyroscope:

The gyroscope is the simpler looking of the last two sensors. Take it and the 7-long pins and do the same as with the accelerometer, taking care to keep it level as you solder it.

7: Last Sensor:

This is the sensor that came with the shield. I don't know what it does, just that it's necessary. Take out the two sets of pins that are 6 long each and put them on both sides of the sensor. Solder it as you see in the first picture and you're done for sensors.

8: Resistor:

Your shield should have come with two resistors. These are the little light brown things with wires coming from both ends. Take the one with the gold, red, green, and purple stripes. stick it through the two holes you see in the picture directly under the arrow coming from the "x". It doesn't matter which way it's flipped. It works the same either way. I find the easiest way to solder these (as well as the LEDs later on) is to stick the wires through and pull them from the bottom in opposite directions so the wires are pointing outwards and holding the top section in place. Afterwards, solder like normal, and break off the extra wires by either using a cutter or bending them back and forth until the break like a paperclip.

9: Resistor 2:

Do the same thing with the second resistor. This one should have gold, orange, green, and brown stripes. Solder it directly under the previous one as in the picture the same way as before.

10: Green LED:

This is simple. Take out the green LED, and solder it in the corner where you see the circle with the flat side. Make sure the flat side of the LED and the flat side of the outline match up. Otherwise, the polarity is messed up and the LED won't work. Solder it in the same way you did with the resistors.

11: Red LED:

This is the same as the green LED. Just solder it in next to it by the next outline. Once again, be sure to match up the flat sides.

Thank you for reading this, and I hope it helped.

Wednesday, August 31, 2011

No Tutorial Today

The title says it. This will be short because I have to leave soon. Apparently, although I was never informed of this, you're supposed to celebrate holidays. Just kidding. I knew that, I just expected to have more time on my hands today. I'll probably barely have enough time at this computer to get all my schoolwork done. I'm trying to finish my week's work today. So hopefully, I'll be able to put up the second tutorial on Friday or Saturday, or maybe before since I may have a good amount of free time.

Sunday, August 28, 2011

Quadcopter Tutorial 1: Parts list

EDIT: This "tutorial" is inaccurate compared to my final build. Many of these parts I have not or will not have used, and I will need things other than what I've posted here. After I've finished documenting my build, I will post another parts list, but of only things I needed to use. Also, please don't use this as a full tutorial. I'm not experienced enough to help with everything, but I do mean to help people who have trouble with the beginning concepts as I did.

So, as I said before, I'll be posting the first tutorial today. For all that don't know what a quadcopter is, it's like a remote control helicopter, but while a helicopter has a complex rotor that needs to tilt and move in complex ways, the quad only needs four fixed propellers. I want everyone to know before I start that most of this will be based off the tutorials at AeroQuad. I'll just be focusing a lot more on the simple things that beginners like me don't understand and that the tutorials ignore, as they assume anyone reading them is at least slightly experienced. I'm not. I'm also not doing general tutorials. These are specifically to build exactly what I will be building.

There are several different places to get these parts from, and most if not all of it can be bought online. Every time I buy something else, I'll update this post. So far, I've gotten most of my parts from AeroQuad and HobbyKing, and some things from RadioShack, Ebay, and Home Depot. I'll go in order.

AeroQuad

The most important thing you get from AeroQuad is the Arduino and its shield. You don't actually have to get the Arduino from there, but it's easier unless you already have one because it ends up being less orders on your part.

1. Arduino Uno: This is basically the brain of the quad. You upload the code (which is open source thanks to AeroQuad, by the way) and connect the antenna and ESCs. It gets input from the antenna and sensors and tells the four individual speed controllers what to do. The Arduino Uno is one of the simplest ones so it's good for beginners. $29.95

2. AeroQuad Shield 1.9: This is placed on top of the Arduino Uno with all the sensors so people like me don't have to worry about the complex connections they would have to have otherwise. It comes with everything you see, but the shield is slightly modified to fit resistors, which are not shown in the picture (the picture is of the 1.8 shield. $24.95

3. Gyroscope Sensor: This is one of the sensors you will attach to the shield. It senses the tilt of the quad so it can tell whether or not it's level. $49.95

4. Accelerometer Sensor: This is similar to the gyro, but instead of sensing tilt, it senses acceleration, so it can tell which direction the quad moves, and therefore, keep it stable in midair if needed. $29.95

5. Stackable Headers: You solder these to the edges of the shield so you can place it on top of the Arduino. If you have other shields, those can be stacked on top of this as well. $4.95

6. Breakout Pins: These are soldered to the shield for the sensors and plugs for ESCs to connect to. The shield comes with them, but I've forgotten whether I've needed these. Don't feel inclined to buy these. $2.50

7. USB A to B Cable: You probably already have one of these, but if you don't you might as well buy it here. You could also probably get one from Best Buy, Radio Shack, Ebay, or any number of other places. This cable is to connect the Arduino to your computer. $3.95

8. Reciever Cables (6-7x): These are used to connect the separate antenna slots to the shield. You need one for every slot, and I think that's 6, but you may need an extra. I've forgotten. $1.50 each

9. Propellers and Pusher Propellers: You don't have to get these specific propellers, but they must counter-rotate. You will need at least two of each, but from what I've read these break frequently and you will want spares. $3.00 each propeller, $4.00 each pusher propeller

HobbyKing

Before I start with this section, I want to say that since most of the things you buy from HobbyKing ship from Hong Kong, the shipping will be very expensive, probably around $50.

1. Hextronik 24 gram Outrunner Motor (4x): These will be the motors that you put your propellers on. They're very light compared to other options, so the quad should be under a kilo. $8.53 each

2. 10amp ESC (4x): These connect the motors to the Arduino. They are given a number between -1 and 1 I think and based on that number tell the motor they're connected to how fast to go. $9.24 each

3. Battery: If you don't know what this is for, leave... now. $19.99

4. Transmitter: This is basically the remote control. It transmits to the antenna, and the antenna gives information to the Arduino. It's a cheap alternative to the $300 one recommended by AeroQuad. The only difference is that theirs has 9 channels, not 6, so you can use more switches/buttons and stuff, but you don't need more than 6, and theirs has a screen that makes it easier to program the ESCs. With this one, you need to know how to use the joysticks to tell the ESC, which I still have yet to learn. $22.99

5. Bullet Connectors: AeroQuad recommends buying these off Ebay, which I did, but only because I didn't realize that I could have gotten them from HobbyKing, and because of that I need another one. These connect your main power supply to the battery, and you may want another one for charging the battery. This comes with ten, but you only need a couple. $3.58

6. Balancer/Charger: This is to charge, discharge, or balance your battery. Discharging and balancing are used to optimize battery life, especially when you're storing one, but I'm not focused on learning how to use those features just yet. This is basically a computer that charges your battery based on what kind it is and its features (voltage and stuff) $22.99

7. Power Supply: This gives power to the charger, but you may already have one for laptops and other devices. The one needed is 12 volts and 5 amps, so before using one you already have, make sure it's the right kind. $9.99

8. Battery Monitor: Not required. This checks on the juice in the battery, and if it gets below a certain point, it buzzes and blinks. This is only if you're flying it for a long time, but if it's far away, you may not hear or see it. I won't be putting it on until after I'm already done, so there won't be anything about it in these tutorials unless I add one later on. $3.99

General/Locally Found Parts

These are the things that you can't get from HobbyKing or AeroQuad and are probably scattered around the house or easily found at stores like RadioShack and Home Depot.

1. 18 and 16 Gauge Wire: This is necessary to have for your power distribution system. The 16 gauge will come directly off the battery and the thinner 18 gauge wire will branch off to the separate ESCs and the Arduino to give them all the power they need. You will probably only need a few feet of each. Most experienced people would tell you to get red and black, but I'll only be using one color although I may use electrical tape to color-code the positive and negative wires.

2. 15 and 30 Watt Soldering Irons: These are to solder wires together for your power distribution as well as solder your Arduino's shield together. The lower wattage is for smaller things like the Arduino while the 30 watt would be for things like the power distribution. You can get soldering irons with both settings built in. This is the kind that I have. I got mine from RadioShack.

3. .032" and .062" Rosin Core Solder: If you have a soldering iron, you obviously need solder. The thicker solder is for the power distribution, which is why you need a hotter soldering iron and the thinner is for the shield. I don't know if rosin core solder is required, but AeroQuad said to get that kind and RadioShack had it, so I got it.

4. General Tools: For any project like this, you need tools. You'll need things like wire cutters, wire strippers, allen wrenches, screwdrivers, and maybe a knife.

5. Scale: Since the motors on this quad are light, it needs to be under a certain weight, specifically around a kilo. Because of this you need something to weigh the parts. This can be a 20 dollar scale found at Wal-Mart or Target in the cooking section. Just make sure you are able to weigh in grams because no one uses the English system except for Americans. The metric system is much simpler and widespread. Believe me.

That's all for parts. You may have noticed I didn't mention anything about the frame. That's because I don't know how I'll build the frame yet. That's not important to me until I get everything else straight. I have to go now to get ready for bed and go to school tomorrow. My next tutorial will be something I've already done, soldering together the AeroQuad shield.

Saturday, August 20, 2011

Tutorials

So, although no one reads this, I'm back, because, once again, talking to yourself really is fun. The reason is because of the quadcopter I'm building. I've showed everything I've done so far, but that doesn't really show how to do it. Therefore, I will be reposting the things I've done in a more "tutorialish" way. I will hopefully continue until the end of the build and I hope anyone interested will read them.

Keep in mind that these tutorials will be for complete beginners, and not people who have already done big projects like these. This is because I was a complete beginner (on most things) and others will probably encounter similar problems, like, for example, how to attach a propeller to a smaller motor, which is kind of strange. So, that's all I have to say, and I hope I don't keep posting months apart like I have been.