Saturday, January 16, 2016

(Too) Many Projects

I have (too) many projects started and not finished. There’s the Nerf blaster mod the boy and I started - it’s getting there. I was testing some stepper motors from an old Epson printer with drivers and an Arduino. I was reminded once again to be careful when using 12 volts around a digital circuits. I’ve got a side project going for measuring static air pressure in a tube with a display for a friend. And I wrote up some simple text-based games on the girl’s TI-84 Plus CSE graphing calculator - my favorite is a Space Invaders rip off. And I started working on a vertical scroller Atari BASIC game.  All of this was before Christmas. At Christmas we got a family present of a LittleBits Cloudbit Starter Kit. That has some cool integration you can do with Minecraft. Last weekend I finally powered up an FPGA-Arduino board I got myself for my birthday right before #3 was born. I’m hoping to use it for video game emulation. Finally, the boy has broken out the Lego Mindstorms and built the R2-D2 look alike after seeing Star Wars. Now, if I can just get him to program it.

Definitely … technically … distracted.

Stepper motors

My kids were playing “Cookie Clickers” on their iPods. You know, that silly game where you click, click, and click to get cookies. Fortunately, the addiction is short lived. The game is actually an object lesson in labor and investment. Early on, you have to click to get points. Once you get enough points, you can start to buy automatic clickers. At some point, through enough investment, you don’t even bother to click. Your score grows exponentially. I look at this and think, “ah! automation!” You don’t want to dig ditches? Then go get an engineering degree, design a digger, and hire someone to drive it. Hopefully you’ve created more jobs in the process. But, I digress.

I had this idea I was going to build a laser engraver - it could happen. Along that path I got some small steppers out of an old printer and bought a CNC shield and stepper drivers for an Arduino. There’s a G-code interpreter for this unit so you can drive the motors using standard a development chain (e.g., SVG to STL to Gcode). I cobbled together a cheap (free) x-y table and tried it out - turns out the motors weren’t strong enough. I should have realized it wouldn’t work so well given the steppers were about ⅓ the size of those on my 3d printer. So here’s where I detoured. Automate the cookie clicker.

I designed and printed my own NEMA-17 bracket and a holder for a stylus. Instead of using the G-code software, I wrote my own pulse generator to trigger the driver. That and some finagling with the iPod orientation and I could click much faster than my kids. They were actually impressed with this one! Turns out the faster you click, the more bonus you get. My kids could only get +3 and my contraption got +5. They’d never seen that. So here I thought I’m on my way to unlimited wealth. Alas, periodically they game opens a pop-up offer you purchases. Oh well, it was fun, I learned to use the stepper drivers, and most importantly I had a good laugh with the kids.



This is long enough … I’ll do TI Atari 10-line BASIC games next time.