Category Archives: DIY

HDL Testbenches

After three classes (EE281, EE480, EE585) where I should have been taught how to write real, procedural testbenches for my digital circuit simulation instead of clicking in inputs on ISE’s (ISE is the subject of much swearing and hatred) waveform editor, there was a nominal effort to demonstrate it in EE685, and between that example and the Verilog book I bought for my own edification some time ago (It’s an OK book: I’m yet to find a HDL text I really like), I finally managed to get it down. This is important for three reasons: First: NO MORE CLICKING! I can write little procedural blocks to generate counting-order covering inputs, or other arbitrary stimulus. Second: Automatic Testing! For simple modules, I can simply write two logically equivalent but stylistically different versions, and, barring any design-level fuckups, determine that they both work by telling the simulator to compare the two version’s behavior and alert me if they differ. Third (and most signifigantly) it allows me to do my check/test/verify my modules without dealing with ISE. There are a number of free Verilog tools, most significantly Icarus Verilog, a Free (GPL) synthesis/simulation suite which seems to be well liked (and builds and installs easily on my machine), which allow me to have a whole toolchain without the hassle of maintaining my own ISE installation, or putting up with the glacially slow (despite being very, very powerful; bad configuration) lab machines for longer than is required to generate a test run to turn in for class.
Icarus looks to be an interesting challenge; it definitely doesn’t go out of it’s way to be user friendly, it requires an external tool like GTKWave to display waveforms, and it’s got some features and switches that I’m not even sure what are for, but it is documented and seems to be quite reasonable.
One feature Icarus doesn’t (AFIK) have is the ability to synthesize to the various programmable chips (which are all very, very proprietary). I do have my own FPGA board, which I got in a burst of excitement after first being exposed to FPGAs, and have never had a chance to play with as much as I’d like. Somewhere deep, deep down on the list of projects is to get a decent programming cable for it (my current one is an old parallel model), and spend some quality time playing around with it, I clearly wouldn’t be alone.

Posted in Computers, DIY, Electronics, General, OldBlog | Leave a comment

DorkbotLex #3

3538107276_c7515214a2.jpg?v=0
I made it to the third Dorkbot event in Lexington yesterday, and it was again a great show. This time there were four excellent presentations of the kind of artistically tenological projects dorkbot is meant to showcase. The first presentation was Clint Davis, showing a spatially aware music controller, built from an arduino, some infrared range finders, and Pure Data. The second presentation was of a solder-free LED hula-hoop by Lauren Sherrow (pictured above). There was then a showing of Aaron Miller’s Day of Defeat-based machinima piece I, Bots, about variously self-aware bots on a DoD public server. Finally, Jordan Munson showed off his work on a new generation of electronic music interfaces, including an OpenSoundControl controller on an iPod touch, and using a wiimote as a gestural interface. At the end there was a lot of discussion about organizing social/cultural events for geeks and hackers, I wish more of the Collexion folks had been there to participate.
The better of the pictures I took are up in a flickr set.

Posted in Announcements, DIY, General, OldBlog | Tagged , | Leave a comment

Stepper Drivers

3492483015_e33027182a.jpg?v=0
I got a set of RepRap Stepper Driver v.2.3 kits to use for my CNC project, and was having no end of trouble with them, but finally had a breakthrough that has two of the three working…and one definitely, definitely dead; the magic smoke escaped from #3. The trick: the SOIC packages were ever so slightly bent in shipping, and I was a little too conservative in the application of solder paste, so some of the contacts around the IC were intermittent. After I finally found it, which was a little difficult because the pressure of a test probe temporarily fixed the problem, all that was needed was punching down a couple pins with a hot soldering iron. With two boards working I’m now in business to finish off the XY table.

Because I’m getting proud of it, a picture of the framing and drive for the XY table in the state it was in the other night.
3493302894_b1f2a8277b.jpg?v=0
All it (just for the table) really needs mechanically now are the bolts attaching the lower lead nut assembly to the middle crossbar, and the table itself to be attached to the rails and lead nut assembly on top (need to pick up some short flathead screws to countersink in for that). To be safe it should probably also have the bearing assembly/leadscrew protector/encoder mount tubes installed where the floating brass nuts are in that picture.
The workspaces in both images are noticeably horribly, horribly messy; both pictures were taken at the end of a couple hours of work, right before cleanup. I (unsurprisingly) tend to keep my workspaces compulsively clean.

Posted in DIY, Electronics, General, OldBlog | Tagged | 1 Comment

DorkbotLex #2 – Results

3453795047_7bb60b14d4.jpg?v=0
I did make it out to this month’s DorkbotLex, the few decent pictures I took are up in a set on flickr. I especially liked the Circuit Bent Toys presentation, it did an excellent job of making circuit modification accessible for those without any engineering background, although I always feel like there should be a little bit of effort to teach the underlying mechanisms when doing that sort of thing.
Some of the equipment for Senom’s DNA extraction demo were lost in transit, so that presentation has been postponed until the next event.

Posted in DIY, General, OldBlog | Tagged , | Leave a comment

DorkbotLex #2

A reminder in case anyone else missed the announcement when it went out, the next DorkbotLex is this coming Saturday (2009-04-18), again at CPR.
According to the announce email, the topics this time are:
Circuit bent toys – by artist + UK School of Fine Arts new media professor Dima Strakovsky
Phonograffiti – by Lexington based sound/visual artist Jason Corder aka OfftheSky
Hacked electronics – by Lexington based sound artist Grynden
– Garage science – a mini workshop for everyone that [Senom Yalcin] will lead: DNA extraction using simple materials
It sounds like another good showing, I hope to have time to be there, and encourage everyone interested to come out.

Posted in Announcements, DIY, General, OldBlog | Tagged , | 2 Comments

Work Gloves

How did I ever get anything done without them?
workgloves_sm.jpg
At the recommendation of a friend I got some machinist-style work gloves (these) for working on my CNC Mill project (which is coming along rather nicely); I don’t know how I ever accomplished anything without them. They allow you to use your hands with incredible abandon — accidentally clipped your finger with a file? no problem. Tapped yourself with a spinning dremel bit? no problem. Grabbed a razor-sharp freshly cut metal edge? no problem. They also allow you to maintain grip irregardless of what may be on your hands, both from the cutting oils and slippery bits perspective and from the tiny sharp metal fragments perspective. There are even nice little pads on the tips of the fingers to make the important areas grippier.
Then there’s my favorite feature; the knuckle guards. This style of glove is typified by rubber splines over the backs of the knuckles, which absorb and spread out any impacts, so when your hand slips while tightening something, there is no cursing and bleeding. The splines do however make one feel compelled to punch at things, just because you know you can.

Posted in DIY, General, Objects, OldBlog | Leave a comment

CNC Beginnings

The beginnings of my CNC project, in the form of parts for the XY table, and associated tool pile:
XYParts_sm.jpg
The motion capability will be 9” in the X dimension and 6” in the Y direction, the Z axis is on hold until after the semester is over, there just isn’t time to design it in now.
Drives:
Each axis will be driven by a 130 oz-in NEMA23 Stepper (Lin Engineering 5618S-58-01)
The lead screw to run the axis is a 3/8” coarse threaded rod, cut to length
The travel nuts are 1.125” coupling nuts (long, to help with backlash without spending money)
One remaining problem is couplers for attaching the lead screw to the drive shaft, there are lots of options, but they all seem to cost at least $10/axis. I suspect unless something better appears I’ll end up with lovejoy couplings.

From aluminum square tubing (1” OD, .062” walls):
8”x8” (outside) square frame for Y axis
6”x12” (outside) rectangle for X axis
The framing will be assembled with bolts, tabs cut from 90deg angle stock, and a bit of epoxy to make it easier.

The next big fuss is figuring out the driver circuits. The motors are rated for 2A at any practical voltage, and only show about 2.6Ohms/coil of resistance, so its going to require proper current-controlled drivers, which may be expensive.

The thing I’m liking most about this project is that I’m learning a huge amount of practical, hands-on knowledge about metalworking and mechanical devices in a hurry, in a low-investment environment so I can experiment and really get a feel for things. I’m not sure if I’ll ever do much more metalwork, but its a good skill to have.

Posted in Announcements, DIY, Electronics, General, Objects, OldBlog | Tagged | 1 Comment

AVRs are Amazing

To add to all the other reasons I love AVRs (cheap, featureful, good development tools, beautiful assembly language), they are now also to be considered almost impossibly resilient: I just made a mistake and reverse biased an ATTiny13 micro (swapped Power and Ground wires), causing it to heat up until it was too hot to touch… I just popped it back in the programmer after it cooled down, and it is completely fine. Win, atmel, win.

Posted in DIY, Electronics, General, OldBlog | Tagged | Leave a comment

Dorkbotlex #1

3359235534_1cdf0bd6fd.jpg?v=0
I went to dorkbotlex last Saturday (pi day!) and just got around to flickring the (few) pictures I took. Flickr set here. There are also some videos on their tumblr page.
As always, it makes me really happy to see signs of geek culture in Lexington.

Posted in Announcements, DIY, General, OldBlog | Tagged , | Leave a comment

Screen Printing With Bleach

While further procrastinating, I found the ellembee shop at etsy, who sells gorgeous shirts (partly) subtractively printed by screen printing with bleach, which is a damn nifty idea. For those not attuned to that particular bit of interweb, etsy is a website for buying and selling handmade things, mostly crafty in nature, and is a wonderful place to browse for novel objects… like subtractively screen printed shirts.
Ellembee only makes womens shirts or I would already have one of the bleach + chocolate ink “floral” pattern shirts on the way. I’d consider contacting them about making a mens/unisex tee, maybe on one of those amazing universally fitted American Apparel shirts like shirt.woot uses, but I’m a little afraid of how much it would cost… it seems like something perfectly acceptable for a male to wear, but it has long been established that I have slightly effeminate tastes.

Posted in DIY, General, Objects, OldBlog | Leave a comment