A collection of posts often on colt E- and I-frame revolvers: pythons, model 357s, officer model specials, etc. Topics not limited to: action jobs, fixing Bubba-gone-wrong gunsmith mistakes, and revolver porn. And sometimes I'll wander off the reservation and type random nouns and verbs that have nothing to do with our sole purpose, because who the hell can really pay attention that long?

Showing posts with label arduino. Show all posts
Showing posts with label arduino. Show all posts

Monday, September 21, 2009

Stepper links

Since the main point of all this electronic stuff is to build some custom CNC machines, time to start a collection of links:

Sunday, September 20, 2009

Fixing arduino upload problem on linux

Symptom: the arduino IDE will upload your sketch no problem, but using avrdude raw only works the first time. Pulling the USB cable out and plugging back allows it to upload again (once).

Solution: (from http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1201441300): it seems to be a problem w/ the linux driver. Just insert "stty -F $(PORT) hupcl" right before the avrdude command (where PORT = the usb device such as "/dev/ttyUSB0"). E.g. in the Makefil:

stty -F $(PORT) hupcl
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH)
You may also have to set your baud rate to 57600 (at least for the 328p).

It's such a relief to not have to use their IDE! Point+click to edit was driving me nuts.

Thursday, September 17, 2009

Arduino. Or: How to hack electronics w/o knowing a damn thing

I've paused on the colt stuff to learn some electronics + micro-controllers (the little chips that get stuck in your car, fridge, cell phone, etc) so that I can build my own computer controlled machines. The "Arduino" boards are a great way to go about it. You can download code onto them from your computer across the USB port and then use this code to control electronic things you wire together and plug into the board. (E.g., by reading whether pins have power or not, and setting power out on other pins.)

The "hello world" program is to hook up a LED light + a resister to the chip and make it blink by turning a pin off and on. I've only ever used computers to toss around 0s and 1s, so it's neat to make them control atoms (sort of). Hopefully by the end of the weekend I can use it to drive some stepper motors that I can then attach to a lathe to make it computer controlled.


Here's a set of great class notes aimed at artists from "todbot" (http://todbot.com/blog/spookyarduino/)

If microcontrollers and electronics has always been mysterious, I'd really recommend checking the notes out --- the audience is non-technical artists, so it requires minimal knowledge. On the other hand, it's not pablum. He shows how to build cool stuff quick.


If you are going to go this route, just buy the $89 kit at: http://oomlout.com/ards.html Everything included to go from nothing to cool things. A bunch of different projects, many variations. I've spent all friday night tweaking on it!

Useful links:

Followers