Sunday, April 29, 2018

Robogames 2018

This year, I competed in a combat robot competition called Robogames. If you are familiar with the show "BattleBots", Robogames is essentially the same thing. There are many different events, such as combat, hockey, autonomous or even things like robotic bar tending. I participated in the Junior League one pound combat category. In this event, your team has to build a robot less than a pound that will face others in a boxing-style combat arena with a dual-elimination tournament setup. I did this same event last year, and lost both my games. I pretty much built my robot the night before the competition and it didn't turn out too well. This year, I wanted to do a lot more planning and not procrastinate as much. I thought my design from last year, a horizontal spinning drum attached to the front of the robot, was decent, and I decided to stick with it. My friend and I formed a team and started researching. I saw a video by YouTuber Robert Cowan (link here) that seemed to match perfectly with the design I had in mind. I messaged Robert for the chassis and weapon files so that I could modify them for my particular components. I planned to 3D print the chassis and weapon, but would've liked to CNC the weapon out of steel or titanium if I was able to gain access to proper machinery. For electronics, I used the same parts from last year, with a quadcopter motor powering the weapon and Fingertech brushed motors and ESCs feeding power to the wheels. After modifying the chassis and weapon to fit the components, my friend and I 3D printed them in my engineering class at school. We printed duplicates of each so that we would have back-ups if anything broke during the competition. In Robert's design, he uses a plastic called Garolite G10 that is screwed onto the top and bottom of his chassis to cover and protect the internals. I went to my local Tap Plastics store and purchased some high-impact resistant acrylic plastic instead of Garolite G10, as it wasn't available. In school, we used the laser cutter in our engineering class to cut the acrylic to our specifications (again, we cut multiple plates so that we would have replacements for the competition). Finally, we assembled all the parts together. We used a skateboard bearing and a bolt to hold the drum into the chassis, and the motor was simply press-fit into the 3D printed weapon. After soldering and installing all the parts, we added some hot glue to strengthen the electrical connections. Next, we weighed the robot and found that we still had about 100g to spare. At that moment, it was the day before the competition, so we decided not to add any weight. We tested the robot and were pleasantly surprised at the strength of the 3D printed weapon and chassis. At the competition, we realized that we could've improved our design a bit. There were six screws that held the acrylic plates to the chassis, and were a pain to remove when we wanted to change the battery or fix something. Unfortunately, in the first fight, the weapon motor seemed to be stuck and not spin up very fast or at all. After the fight, I realized the battery we used, a 2S LiPo, could not sustain that constant spinning of the weapon for the full 3 minutes of fighting. This was the main issue for why our robot lost the first fight. Luckily, I had brought a larger 3S LiPo, and it barely fit the chassis. Also, it left about 20g of weight to spare. Thinking about it now, we should've used this battery from the very beginning, not just as a backup. I used the 2S LiPo batteries in the first match since I had only one 3S, and four 2S LiPo batteries, meaning I wouldn’t have to charge during the competiton. In the next fight (using the 3S), the robot worked properly, but we still lost. In this fight, the opponent had a robot shaped almost like a dustpan, with a very thin lower lip that was able to go underneath the spinning drum, essentially making it useless. This fight exposed another flaw of our design. However, all the other robots in this competition didn't have this dustpan design, and I think our robot would've competed better against any of the other bots. Next year, I plan to compete again in Robogames, but revise my design a lot more. I still do believe that the spinning drum is a great weapon, because it keeps the rotational forces balanced across the width of robot chassis, and it can flip/destroy other robots pretty easily. My revisions for next year's design would be to make the weapon out of metal, some how reduce the risk of failing against dustpan style robots, and make sure to use 3S batteries. See photos of the event






here.

Thursday, April 12, 2018

FPV and How to Get Started

FPV. It stands for First Person View. In other words, a camera on the front of your drone streams video live to VR-like goggles that you wear. Instead of flying the drone by a line of sight, you fly the drone using this video feed. FPV lets you do more acrobatic maneuvers and basically fly the drone better (because you see what the drone sees). Although I have been flying drones for a while now, none of mine have used FPV. I wanted to explore it without spending much money in order to see what it is like. I had heard of the Tiny-Whoop concept before, and I was interested in it. The Tiny-Whoop style quad is basically a cheap micro quadcopter that you can buy for around $35 to $50 that you add a camera to. Also, you need to buy a pair of FPV goggles in order to complete the setup. My friend was selling his micro quad for $40, so I bought it. Also, you need a transmitter (remote control) that is compatible with the quadcopter. Another friend was selling a compatible remote control (Spektrum DX5e) for $20, so I purchased that as well. Next, I bought a small FPV camera and cheap goggles from Banggood.com. Once all the parts arrived, I soldered the camera power wires to 5V output on the quadcopter board in order to power it. Finally, I plugged the quad into my computer and opened Cleanflight, which is a configuration utility for quadcopters. I made sure the accelerometer was working and that the propellers were all spinning in the right directions. I also assigned the switches on my transmitter to do various actions, such as arm the quad or put it into self-level mode. Once the batteries and FPV goggles were charged, I fired everything up and tested it. I was surprised about how easy the whole FPV experience was. Besides Cleanflight there isn't much configuration, and the only slightly skilled task is the simple soldering for the camera. After flying this quad for a few weeks, I am in love with the whole concept, and plan to do more projects that incorporate FPV. Not only does it make you a better pilot, but it is also a lot of fun to try and avoid obstacles or do tough maneuvers around the house. This quad is very durable due to its replaceable plastic frame that encircles the propellers, and since it can be flow easily indoors, it is something to do when you cannot fly your bigger quads outside. See photos here.






Monday, April 9, 2018

Adding Aux Input to 2006 Toyota Corolla

As I am going to start driving soon, I'd like to be able to listen to music from my phone in the car. I'll be driving a 2006 Toyota Corolla, which has a CD drive and radio, but no Bluetooth, USB, or aux input. An older car with a cassette tape drive would've actually been better, because there are cassette to aux adapters that can be bought for fairly cheap. I tried to use a device which connects to a specific radio station and routes the aux output from your phone to that station. While this device worked and met its claims, the audio quality wasn't great, and there were some instances where there would be a lot of radio static noise. I wasn't satisfied with this. I did some research online and found a cheap device which plugs into an empty slot of the entertainment system and acts as a another input by identifying itself as another CD. I purchased this product from Amazon for around $20, and watched some tutorials online on how to install it. The installation process is fairly simple, just removing the plastics panels in order to gain access to the entertainment unit. Next, I plugged the device into the empty slot at the back of the system and routed the aux cable out near the center console. Finally, I tested if the whole thing worked, and it did. The quality is better, but the main benefit is the stable playback. This is because the audio isn't being transmitted over radio. In the future, I plan to add Bluetooth by attaching a cheap aux-Bluetooth adapter to the aux cable.