Milestone

Feb. 16th, 2014 03:22 pm
rbandrews: Super Famicom controller (controller)
For Christmas of 2006, my uncle gave me a Roomba. I started running it around my apartment, as you do, and after a couple days I noticed that it wasn't detecting walls right, it wouldn't follow edges correctly, that sort of thing. I took it apart to see what was up, and found that one of the leads to one of the sensors was broken off from the wire.

I went to Fry's, bought a cheap soldering pencil (no temperature control, not even a stand), some electrical tape, and a spool of solder. I did the world's worst solder joint, wrapped it in tape, and the Roomba worked again! And the electronics bug was planted.

Now, almost exactly eight years later, I have run out of solder.

In that time, I've gone from that horrible solder pencil (which I once dropped into my lap, but somehow managed to dodge away from), through two battery powered irons, three nicer temperature controlled stations, to my current station with the SMD rework gun and the smoke absorber.

What I'm a lot more proud of is, I've gone from building blinky-light kits to building much more complex kits, to designing my own things. I've built a gamepad, tweaks to my helicopter, Christmas gifts for people. I've taught myself everything from lighting up an LED with a battery to decoding radio signals. Gone from Dremeling a hole in a candy tin to printing my own enclosures. And from not even knowing what most tools do, to having a decent workbench setup.

And soon, I'm going to go from the little folding table I used in my apartment eight years ago, to having an entire room to build my stuff in, in my new house.

You know the whole thing about, to be a writer, you have to write a million (or whatever) words of bad writing before you get to start writing good things? That roll of solder was my million words. And now I'm going to take the plastic wrap off my next roll.
rbandrews: Monopoly house (house)
Yesterday, after work, Cassie and I went to look at a couple houses. One of them was sort of lame; it had narrow little everything, old-ladyish wallpaper and woodwork and such, and a kitchen that was probably really fancy in 1977. Which was a shame because it was the one I was looking forward the most to looking at. The garage was kinda nice too, it was clearly the domain of an old man who liked to tinker with things. It was an estate sale and there was random junk everywhere, too.

Anyway, that one was a no. The second one on the other hand, was nice. You walk in, and you think "huh, this is a decent sized living room," and then you turn on the lights and you see that you're standing in an entryway, and the actual living room is the size of a small skating rink. And covered in hardwood floors. With a kitchen next to it, that's got all modern appliances and a glass-top stove.

There are four bedrooms, all with laminate floors, and the garage is converted to a den, which we'll use as a library of both books and games (and which is the future home of a Geek Chic table).

We made an offer on it yesterday, and it was accepted today, pending an inspection Wednesday. Assuming the place isn't infested with Deep Crows or something, I'm going to buy it.

So, that's the news I have to share. :)

Lost an arm

Feb. 8th, 2014 03:58 pm
rbandrews: (quadcopter)
A couple days ago I bought Phoenix RC, an RC aircraft simulator. It's an amazing amount of fun, I've been playing with it like nonstop. Thursday night I stayed up Far Too Late messing with transmitter settings (on the transmitter itself; I can use my tweaks on the real quad) and last night I was playing with acrobatics (which I will likely never do with the real, $400 quad, but is a lot of fun on the imaginary one). It has a USB widget where I can plug in my actual controller, and the physics are great. It emulates different kinds of wind, you can tweak the weight / horsepower settings of the quad, simulate random equipment failures, etc.

Anyway, after doing that for two days, and today being the first nice day in a week, I took it out and immediately lost an arm. I was practicing zooming as fast as I could toward the construction site and then back, and I flew too fast too close to the ground and crashed.

That construction site makes me sad, too: we used to have this enormous field behind our office, but now past about 50 yards it's a muddy construction site. For what I'm sure is going to be Joe's Pine Tree, Doberman, and Swimming Pool Emporium or something equally unfriendly to fly over.

It was a pretty impressive crash, to be fair. Even from about 30 yards I could see little bits fly into the air, the thing flipped and rolled a couple times, it was very photogenic, unlike when I lost a prop flying it into a ping pong table. I managed to find all the bits that fell off, and I snapped an arm in half.

Funny thing: the props, including the ones that dug into the ground, were perfectly fine. Carbon fiber is some tough shit. The arm was toast but the prop on it still looks (and works) great.

I have eight (now seven) spare arms, so it's already flying again. But, first major crash! Woo!
rbandrews: (Default)
I was talking to Cassie today about RC flying culture, and how quadcopters are changing it. Unlike planes, quadcopters don't need an airstrip or a lot of space to fly, so you don't need to be part of a club to fly one. This change has been made possible by two major new developments: cheap microcontrollers (a quad without a computer-controlled autoleveling system is a crash looking for a place to happen) and Lithium-ion polymer batteries. The amount of power needed to run, essentially, four RC airplane power systems at once would have been too much to lift with those systems, until batteries got much smaller and better.

How much smaller and better?

Well, the batteries I use are fairly medium-sized ones, with 3000 milliamp-hours of charge, meaning that they can put out 3000 milliamps for an hour, or 6000 mA (6 amps) for 20 minutes, and so on. There's an upper limit to how fast they can be safely discharged, but let's ignore that and just look at the total power available.

If we know the voltage the battery provides, which the label tells us (and a meter confirms) is 11.1 volts, we can convert that to watt hours: 3 amp-hours times 11.1 volts is 33.3 watt-hours. One watt-second is a joule, so 33.3 watt-hours times 3600 seconds in an hour is 119880 joules. Let's round that off a bit and say 120 kJ.

Now, something to compare it to:

One gram of TNT is, Google conveniently informs me, 4184 joules. It's a bit harder to find the TNT-equivalent of modern grenades, but Wikipedia says that the stereotypical "pineapple" grenade seen in a thousand world war II movies contained 57 grams of TNT (the real ones, I mean, not the ones in the movies. Those were fake, I hope). That means a grenade in the '40s would put a total of 4184 joules-per-gram times 57 grams, or 238488 joules of energy into the Nazi tank of your choice.

So again, let's round that off for convenience and say 240 kJ. What that means is, the little blue battery pack on top of my quadcopter is the energy equivalent of half a hand grenade.

For a fun exercise, look up the specs on your smartphone. It's probably got a LiPo battery, just like my quadcopter. How much TNT do you carry in your pocket?
rbandrews: (Default)
I made the lights on the quadcopter operate by remote control. Here's how that went:

There were two general problems to solve here: one is, I needed to control 12 volts to the lights, with a 5 volt signal from the receiver. So there's the voltage mismatch. The second is, the signal from the receiver isn't a simple on-off, it's a pulsed signal, so I needed some way to decode that to decide whether the receiver was saying "lights on" or "lights off."

First, the voltage. The usual way to control one signal with another one is a transistor, so that's the first thing I tried, but the normal kind of transistor (that I have a drawer full of) really wants the signals to be the same voltage. If there's too much of a difference between the base voltage (that controls whether the transistor is on or off) and the source voltage (that the transistor allows through, or doesn't) then the source voltage just goes through the base. I burned up a resistor last weekend playing around with this.

The solution to this problem is called a MOSFET: metal oxide semiconductor field-effect transistor. The difference between a normal transistor and a MOSFET is that once a little voltage starts to go through, that sets up a reinforcement effect that lets the rest through. So a small voltage to the base starts this avalanche going, and so a 5 volt signal will turn on or off a 12 volt signal.

Next problem, the pulses. RC aircraft are designed to have a bunch of analog signals to control servos: some level for the throttle, an angle for ailerons or whatever. An on-off signal isn't very useful on an RC plane, so RC equipment isn't really set up to produce it. What happens instead is you get a pulse: if the throttle (say) is at 0, then you get a pulse 1000 microseconds long followed by 1500 microseconds of nothing; if it's at 100% you get a 2000 microsecond pulse followed by 500 microseconds of nothing. But it's never fully on or off: the minimum pulse is 1000 us, the maximum is 2000 us. So I need something to decode that.

There were a few solutions to this: build an analog circuit which will charge a capacitor with the long pulse but the short pulse won't charge it enough, for example. Or buy another component called a speed controller, which is meant as a go-between to translate this kind of signal for an RC aircraft engine (which the copter already has four of). In the end, I cheated, and took a more expandable approach: I used an Arduino.

The Arduino reads the pulses, looks at the width, and either writes (or doesn't) to an output pin, which is connected to the MOSFET. This is kind of cheating since I used a fairly powerful computer where a few cents of passive components would do, but on the other hand now that I have this, I can use the same board do to other things later, like landing gear or control a camera or whatever.

But for now, what I have is, a board sitting on top of my copter that allows me to flip a switch and turn some lights on or off in flight. Which is kinda useless (I know when I take off whether it's dark enough for lights or not) but also kinda cool.
rbandrews: (Default)
I finished putting lights on the quadcopter. Image album!

This involved making little feet to raise the whole thing up 30 mm, and making a little power supply board for them (since they want 12 volts and the batteries might provide anywhere from 11 to 14, depending on battery size). It means I can fly the copter at night, because I can see it. Cassie thinks it looks like a UFO and she's totally right. I'll have to get her to take a video of it next time.

The little yard-space in front of my apartment is big enough to hover in, although not as roomy as the field behind my office. I plan to fly there plenty. :)

Next step is making the lights controllable with a switch on the radio. I'm pretty sure I know how to do that, although the last time I thought that, on Sunday, I started a small fire.

Today I:

Jan. 25th, 2014 06:52 pm
rbandrews: (Default)
Today I:

- Went to EPO and spent about seventy bucks. I needed some parts for something I'm doing to the quadcopter, putting lights on it. Got 12V voltage regulators (Radio Shack supposedly sells them but they were out), LEDs (I actually already had these but I found better ones), perfboard, wires (better wires for this purpose than what I already had), stuff to make connectors, and some random odds and ends. I forgot to get a switch, which is a little annoying.

The goal here is to have red lights on the back arms of the copter and white lights on the front arms. This way I can see how it's facing in the dark, so I can fly it later in the evening, so I can fly it more often. One of the sort of annoying things about flying something like this is that it's easy to lose track of how it's oriented, since it's square and spends most of its time hovering in place.

- Cleaned my room. Cleaned off my desk, cleaned the work table, put things in boxes and in the closet. I hadn't done this since, oh, October sometime? And in that time I've built several small projects, one big project, added a tool (the cutter), spent two weeks sick, et cetera. My desk was actually buried. Like, the level of crap covered up the bottom of the monitor.

- Put the Commando 23 set on a keyboard. This was a group buy for some keycaps that I got in on a while back, and last week they were delivered. They were the final straw for junk piled on my desk. They look pretty all right on a keyboard though.
rbandrews: (Default)
I've had a piece of cardstock stuck to the cutting mat, ready to be fed through the cutter, for over a month. Tonight I finally got around to doing that, and now I have a little custom deck of Werewolf cards. They're not too fancy but they're definitely a proof that I can make cards. I'll post pictures tomorrow.

Part of the problem is that I am about at maximum table capacity: I had to run a USB cable across the room to reach the cutter, and I'll have to move the whole thing when I want to solder anything again. I can't wait to get into a house and have a room I can line with 6-foot tables.

Cards came out pretty well though. I need to do two things: one, figure out how to do the classic WarGames-like monoline font thing (looks like this). Since it's a cutter, it thinks it's cutting the outline of something, it can't shade in solid shapes. I need to teach it to be a plotter.

Two, I want a better way to remove the cards from the mat than "peel them off individually with a spatula." It's kind of annoying, especially if I want to make multiple cardsheets.

I also got a servo working on an Arduino, and got my print on with a little mount for a laser module. I can now send commands to aim a laser (although only on one axis; I haven't finished the whole assembly yet).
rbandrews: (Default)
My transmitter module came on Friday, so today I went to the field behind my office to fly. Mike, my friend who ran the class for building them, came too.

Hovering inside is more or less easy. Holding a constant altitude is tough, the throttle is really sensitive, making it pretty much like every other RC helicopter I've ever flown.

Flying outside is a bit harder. I don't have to care as much how high I am, so it's easier in that respect, but then there's wind. Holding it steady in the wind (even a fairly light breeze) isn't easy. I did figure out how to recover from an imminent crash: cut the throttle, so I start falling, then gun it right before I hit the ground to soften the landing. I saved the thing from being carried away by the wind a few times by doing that.

We found out that there's an RC hobby place about 15 minutes from work, and although they don't have replacement rotors, they do have tools, servos, radio stuff, batteries, et cetera. I bought some tiny screws and a hot air gun (for something else I'm building).

I also found that some (expensive, carbon fiber) propellers can be had from Amazon for about $16. This is more expensive than the $4 / set prop sets from the Chinese site Hobbyking, but they also don't take three weeks to be shipped.

Why do I care about props all of a sudden? Because, naturally, I managed to flip it over (I blame the wind) and break a prop in half. So, it'll be Wednesday before I can fly it again.
rbandrews: (Default)
A few months ago, Tina told me that Mike was running a class at the hackerspace on building remote-control quadcopters, so I signed up. The class was last weekend.

The class cost $250 or so, which included a bunch of quadcopter parts. It didn't include all the parts, though, because some stuff (a radio, batteries and a charger, etc) would already be owned by someone who was into RC stuff, so I had to buy those separately, another $200 or so. Which wasn't really a problem.

First day, I come in a little late, and we start assembling things. I brought my own soldering iron and some other tools, because I was kinda worried that the hackerspace would have crummy tools, and I wasn't disappointed: their iron was pretty low quality and the soldering we had to do was actually fairly hard (really giant wires, to pass really giant currents to motors) so I busted out mine. The guy I was sitting next to, Michael, was really cool and we helped each other out a lot.

First problem I had was that apparently my transmitter module was dead. The receiver works because it worked with Michael's (identical) transmitter, but I can't transmit. Still, I'm able to get everything built by borrowing his transmitter to test it. Solder on some wires, assemble the frame, attach components to the frame, use a laptop to set up the firmware and calibrate the sensors, balance the props, configure the RC controller, it took pretty much all day. But I had the hardware done!

Second day, we get to test them. Everyone took their copter out to a warehouse in the back of the building and we flew them around some. I lagged behind a little bit because I was trying to set up the firmware again on my laptop (I had used Michael's on Saturday) but I eventually get out there, borrow Michael's transmitter again, and fire it up.

The thing flies perfectly. It's completely stable, because the controller board is smart enough to sense whether it's level and adjust it. I can pretty easily hover it at about chest high, move it around, land it without letting it drop too far. Way easier to fly than my other (little bitty) one.

Of course, after flying it for a bit, I discover that the battery charger I ordered was also DOA. Argh.

So, now I have a nice quadcopter sitting on my bed that I can't do anything with. I bought another battery charger from a hobby store locally, and I ordered another transmitter but until I get it in I can't fly it. It's pretty annoying.

On the other hand, after this class, I have a pretty good idea how to build RC things. I think I want to build a little RC robot next, like a tanklike thing (maybe not a tank, maybe wheels, I dunno) with a turret I can aim. I think I can print most of it and I know enough electronics to make it.
rbandrews: (Default)
...is love, sweet love.

Well, no.

If you take an average sea creature and measure the elements it's made of, you find that it (like everything else) is mostly carbon. But there are also some larger elements in trace amounts, that are in a higher concentration in the creature than in the surrounding environment.

The element that is most over-concentrated like this happens to be phosphorus. Phosphorus is the limiting factor of life: given a source of extra phosphorus, life could find everything else it needs to exist in plenty.

So I would say, what the world needs now is phosphorus. That's the only thing there's just too little of.
rbandrews: (Default)
It sort of makes sense: before yesterday I didn't have the energy to post about how I was sick, so right after I did I start feeling better. I don't want to jinx it but you know how there's a sort of intangible switch that gets flipped where you go from "sick" to "tired and hungry but not sick?" That happened last night I think. I was able to eat something, and now I'm still hungry.

I'm also a little stir crazy. I am thinking about maybe going out to a bookstore or something this evening and pretending I have christmas money and spending it. :)
rbandrews: (Default)
On the 13th or so, I started coughing, a lot. I coughed up white stuff, then yellow stuff, then brown stuff. Then I stopped coughing up stuff, but I didn't feel any better: I still had a fever, I was dizzy and light-headed, and I couldn't eat anything. And I kept feeling like this. I took off the entire week before I was supposed to go on vacation, then stayed in bed the entire time I was on vacation. My fever stopped a few days ago, but I've still been light-headed and crappy. I alternate between lying in bed reading and sitting up watching Parks and Recreation on Netflix.

So I have had a kind of shitty christmas. I spent all day either in bed or on the couch, watching the Doctor Who special and Indiana Jones and the Last Crusade. I ate a couple of ginger snaps and Cassie's leftovers from going to the Cleburne Cafeteria. Finally got Cassie to go on christmas day, and I couldn't ever go with her!

Hopefully I'll start to feel better now. I can do stuff I had planned to do over the past two weeks, like mailing out christmas presents.
rbandrews: Jeb from Kerbal Space Program (Kerbal)
In my last Kerbal post, I had gotten Jeb (and his assistants, Bill and Bob) to Duna. They landed, they walked around some, they took off again. Then they were out of fuel and hung out in orbit for a couple weeks.

Tonight, I rescued them!

The first attempt was to just get them some fuel. I built a little robotic probe with a big fuel tank and flew it over there. Unfortunately, it took most of the fuel in it to get it there... I'm not good at interplanetary flight yet. So that was a bust. That was about a week ago.

Tonight I tried again though. I built a probe with a larger tank and a nuclear engine. I was able to get it into orbit really easily (I discovered a foolproof way to build launch vehicles), and then flew it over to Duna. I'm getting better, slowly, at interplanetary transfers. The hard part isn't getting to the planet, it's getting to a decent orbit once you're there. You have to spend a huge amount of delta v to get into orbit at all, and unless you make correction burns way before the encounter your orbit is going to be crazy tilted and really high. Like, the first Jeb mission ended up in a polar orbit around Duna.

So, okay, got there. Rendezvoused and docked with the stranded ship. Now for the second part of my plan: the ship that I first sent there had four small landing rockets on it. These are great for landings but they use way too much fuel for interplanetary flight. The nuclear engines are the exact opposite: low thrust but extremely low fuel usage. The same tank that had maybe 2000 m/s delta v gave me over 5000 with a nuclear engine.

Which meant that after I got to Duna, normalized my orbit, rendezvoused, and docked, it made sense to just throw away most of the original ship and carry the crew capsule home with the probe. Which I had about twice the delta v I needed to do. I burned back home, made a correction burn (getting decent at those by now), and got back into Kerbin orbit. I could have made a really fast reentry there, but I figured what the hell, and actually took a couple orbits to slow myself down. I managed to actually stay out of the red zone on the G meter during reentry.

Next task: rescue the guys I left stuck on Duna's moon. That'll be tough because they can't even take off, they're so out of fuel.
rbandrews: (chicken dog)
Silk Soymilk "Seasonal Nog" is not only not terrible, it's actually good.

I had low expectations, I'll admit...

Cameo

Dec. 7th, 2013 04:43 pm
rbandrews: Mississippi Queen piece (printing)
On Black Friday, I got an email from a website I go to sometimes, Inventables. They were having a sale on this thing called a Silhouette Cameo. I don't buy much there because they're somewhat overpriced, but this was a normally $300 machine for $220, so I went for it.

What it is, essentially, is a plotter. Sort of. It's a cartesian robot, like a 3d printer, in that it has a print head that it can position anywhere over a piece of paper (or other thin material). The print head can hold a pen, making it exactly a plotter, or a knife, making it a sort of poor-man's die cutter.

Back in the before-times, there was a thing like this sold in hobby stores called the Cricut. Like the Cameo, it was designed for crafting, cutting shapes out of cardstock and so on. I wanted one the moment I saw it, but in order (presumably) to keep from cutting into their industrial sales they nerfed the thing: you had to buy cartridges that had shapes on them, so you'd buy a cartridge with a bunch of butterfly patterns or whatever. I didn't want to cut out butterflies, so I didn't get one.

The Cameo has no such restrictions. It's pretty clearly a hobbyist machine at heart, despite the cutesy craftiness of the box. You can draw whatever you want to cut with it, put it on an SD card and plug it in, just like the Makerbot. They have a "Pro" version of their software for $50 that will import SVG, but the basic version will import DXF (from CAD programs) so I don't know why anyone would bother.

Already I've seen people cutting out stencils for surface-mount soldering with it, and papercraft things. I've cut out a little cardstock gear (as a test) and I drew a little pattern of lines. One thing I want to do with it: since I have the pens, I could make several files, for "red," "black," "blue," and "cut," say. Run the same sheet of cardstock through several times, to draw red lines, black lines, blue lines, and then cut out cards. So I could manufacture card games this way.

Which was actually most of why I bought it; I had just come home from BGG.con and I was thinking about making games. I think maybe my first big project with this thing may be a copy of Sail to India.
rbandrews: Jeb from Kerbal Space Program (Kerbal)
I've been playing on the "career mode" where you start with a few simple parts and have to do experiments in space to get science points to research more. So, last night I tried to make a rocket out of very basic parts to get to Minmus.

I got there, and got into orbit, but when it was time to go home I didn't have enough delta-v. I was able to escape Minmus but my Kerbin perigee was still about 1200 km.

I know that stage separators push the stages apart with some force, so I aimed myself right and separated my last stage. That got me down to 900 km.

Then it hit me: I still had one source of propulsion left. I had Jeb go on EVA, wedged him up against the capsule and fired his jetpack. One full load of jetpack fuel.

That did it, the last 30 m/s or so of delta V I needed.

So, at one point in the history of my glorious space program, yes, I had an astronaut get out and push.
rbandrews: Jeb from Kerbal Space Program (Kerbal)
What's this?

Just Jeb & company, in their new lander, aerobraking high over the south pole of Duna.

You can't tell from this picture but at 30 km up, they're in enough atmosphere to lower their orbit. A couple more trips through and I'll be going slowly enough to make a cheap landing burn.

(Duna, by the way, is the Kerbal equivalent of Mars).
rbandrews: Jeb from Kerbal Space Program (Kerbal)
Look at this. It may be my new wallpaper.

Jeb, with his shiny new-model lander, on the plateaus of Minmus, with a crescent Kerbin behind.

Minmus is Kerbin's outer moon, much smaller and with lower gravity. This same lander can actually land on the Mun unassisted, but it needs a refuel to get home. I should be able to return from Minmus easily though, since it takes so much less fuel to land there.