Sleepy Friday #2: Stuff, stuff, failure

So, quick status report before I sleep. I haven’t been getting enough sleep, so I’m kind of wiped out right now.  My day went like this: school, talk to professor, eat, school, work on next iteration of coilgun, break an ott light, eat greasy food, go to a concert, made a smoothie, and tried to hack a quickie robot before realizing that I am an idiot and have no place on this earth. So.

School was fine: day on which nothing is due, which is good. Talking to a professor, I now have a smaller chance of being rejected outright by USC. Next iteration of the coilgun will have multiple stages, and we almost have it all set up, but the charging system we’re using seems to have broken over winter break. However, we got the arduino-controlled firing system working, and have a separate 328 chip on a breadboard acting as our arduino, since we fried our last one. Great fun. There were more than a few instances in which I had an LED plugged in the wrong way, so I had no idea it was working.

After we found out that we were hungry as heck and needed to eat, my fellow hacker left, and since I couldn’t figure out how the ott stand was screwing with wall power, I just plugged the bulb directly into the wall. Of course that was a bad idea, and now everyone should know that while the stand doesn’t screw with the voltage, it almost definitely tamps down the current available, probably through the inductor-looking thing. Fortunately, it did not blow up, which was my realistic worst-case scenario fear. It does have a crack in it, and who knows what’s in the lamp, so I might wake up tomorrow morning as some horribly mutated thing. If that happens, I recommend ceasing all attempts to hack such lamps; don’t worry about me, I’ll have done it FOR SCIENCE. Right.

Since that lamp is gone, I’ll probably have to mash up a system of LEDs to aleviate my current lighting situation. Maybe. LEDs can be not so great for lighting, so I guess I’ll try it and see how it turns out.

Friday cafeteria food has a theme of greasiness, which is unfortunate. I’m already pretty unhealthy, which I will have to rectify. Talked to fellow humans, and saw a pianist play some pieces I have not heard before. He was pretty good, but not quick kick-ass.

After the concert, I tried to stick together a very simple robot. It’s a differential drive, that derives obstacle avoidance through 2 dpst switches that switch the polarity of the motor when switched. It’s pretty simple in theory, and should’ve been simple in practice, but I have no working robot that can scuttle around and keep me happy. After 1.5 hours of working on that, I decided to switch to my pre-amp, but I looked at the schematics, the bottom of my perf-board, and now I’m here to tell you all that I need more solder. I’ll have to find if there’s a radioshack nearby.

Basically, nothing got done. Some groundwork got laid, but I have nothing to show. Yet. I’m not sure what I’m going to do next week. Yet.

Quickie LED Light Hack

This is a very quick and easy hack to convert an LED light that runs off batteries to mains (wall) power.

Standard warning: following these instructions may kill/maim/turn into flowers everyone your know and hold dear. Be smart.

Usually, LED lights run off batteries, because… well, let’s expand the acronym. LED stands for light-emitting diode, a diode being a circuit element that usually only lets current through in one direction. Hence, it stands to reason that trying to put an alternating voltage across it will result in subpar performance, since half the time the current is trying to go “the wrong way”, and it won’t light up very brightly*. Also, making a diode rated for 120V is probably a pain: regular 1N4001’s rate to 50V.

However, batteries are a very poor power source for a stationary light. Since the light has to put out an appreciable amount of light for long period of time (versus, say, a flashlight), the batteries wear out quickly (and I don’t get why regular alkaline batteries are so prevalent. Rechargeable batteries have not been shown to be detrimental to the environment to me, and taking the position of the armchair environmentalist, it seems that even if you could squeeze only 10 charges out of it, it would displace 10 batteries otherwise destined for the landfill, and grabs energy from the wall at at least 80% efficiency (depending on your charger). The only problem I would see with this is running out of Li (unless we’re talking strictly NiMH), but we just need to get working fusion, and we could probably synth our own Li. Of course, this would be incredibly ‘inefficient’ as a process to produce Li). Hence, the motivation for this particular mod.

To get DC from the wall, the easiest solution is grabbing a wall-wart (essentially an AC->DC converter in a plug) and sticking it in place of the batteries. Find yourself a wall-wart that outputs about the same voltage as all the batteries combined; mine used 3 AA batteries, for a total of 4.5V, so I used this 5V wall-wart from BG Micro http://www.bgmicro.com/index.asp?PageAction=VIEWPROD&ProdID=12944 (or something like it).

So, most of these wall-warts output their DC voltage through some obtuse connector: in my case, I got ’lucky’ and got a barrel type connector, where the outside of the connector was ground (0V) and the inside at 5V. To get at the 5V, I used a mangled paper clip. Note that you could also snip the wire, strip it, and figure out which one is 5V with a meter.

Now for linking the DC power into the light: in this case, I had to snip some more of the paper clip to get it to fit into the battery slot, and add some aluminum foil to connect the negative terminal with ground. If you snipped the wire, you could solder the wire to the battery terminals, or otherwise manhandle the two to stay together.

[caption id=“attachment_100” align=“alignnone” width=“300” caption=“A modded plug, using electric tape to secure the foil.”]A modded plug, using electric tape to secure the foil.[/caption]

If you have multiple battery slots like me, bridge it with wire, again soldering or manhandling it into place. I have not tried this yet, but sticking a resistor in place of a wire might lower the voltage across the LEDs, and make more apparent such things as a “half intensity” mode.

[caption id=“attachment_101” align=“alignnone” width=“400” caption=“Wires marked in red for visibility.”]Wires marked in red for visibility.[/caption]

Put the plug into place:

[caption id=“attachment_102” align=“alignnone” width=“500” caption=“What it says.”]What it says.[/caption]

Then, we cover everything up/partition with electrical tape to lessen chances of death by 5V:

[caption id=“attachment_103” align=“alignnone” width=“500” caption=“Electrical tape is pretty cool.”]Electrical tape is pretty cool.[/caption]

At this point, if the wart is plugged in, the light should turn on.

[caption id=“attachment_104” align=“alignnone” width=“400” caption=“Tape should be used to secure the plug.”]Tape should be used to secure the plug.[/caption]

Tada! If I have time/motivation, I may do a more DIY method for the same result.

Tangent: Future Electronics packs their stuff much more efficiently than Newark.

  • There are non-directional LEDs, but they tend to be a bit more expensive than your run-of-the-mill polar LED.

Also, sorry about blurry pics: still learning to shoot well with SLR.