Thursday, June 16, 2011
3-Digit 7-Segment Display With an SAA1064
Working on the grinder timer project, I built out a basic circuit (EAGLE .sch) with an NXP SAA1064 and resurrected a test sketch (Arduino .pde) for it. The SAA1064 works beautifully for driving common anode 4-digit 7-segment displays with constant current per segment, from 3 to 21 mA in 3mA increments; in this case I'm only driving three digits since that's what the design calls for.
There are two buttons in the test sketch (on D10 and D11), the first to change count modes (seconds, tenths, hundredths, hex, and "chase") and the second to cycle through the seven current settings.
This schematic is identical to one I did a board layout for with an SO24 package chip, but for some reason those boards didn't work; maybe something in manufacture or assembly bridged pins somewhere. I'll redo the layout and see what happens, with vias further from pads.
Tuesday, March 16, 2010
PPAC Fixes, Minimalduino, Timer
The minimalduino project is still moving forward: I'm using a test board I made at home a few weeks ago, populated with as little as possible: chip, caps, resonator, female headers, reset and male FTDI header. I'll move a few traces around but it's pretty much there, and hope to get three test boards made through the DorkbotPDX PCB order, deadline noon on March 29. I've built a spreadsheet with costs, and it seems like I could make a batch of 25 kits at just under $15 each. I'm not sure if it's worth the trouble though.
A few weeks ago, I built a new coffee grinder timer with a re-worked sketch and single board, then handed it off to fellow coffee fiend HF for ideas on how to make the ideal grinder timer. One thing we agreed on is that tenths of a second would be cool, so last night I had a great time working out a sketch to drive a common anode 3-digit 7-segment display using an SAA1064 IC. Of course having a sketch to start with made things straightforward-- thanks Alessandro Saporetti! I reworked the code to make it more general purpose, using all of the chip's functions including multiplexed (versus not) and changing the constant current output (7 output levels possible, from 3 to 21mA). [Video to come]
Saturday, November 28, 2009
Minimal Arduino?
I prefer breadboard-friendly Arduino-compatible boards like Boarduino and iDuino, but I keep wanting functionality people have built into shields like Adafruit's Motor Shield and Batsocks' TellyMate Shield.
All I want in an Arduino:
- ATmega328
- FTDI programming header
- Arduino "form factor" with odd D7/D8 spacing and standoff holes
Necessary items:
- microcontroller: ATmega328, socket, capacitor
- clock: oscillator and 2 caps, or a resonator
- reset: 90-degree (side) button, 10K resistor
- FTDI cable interface: 6-pin header, capacitor
- Power: Barrel connector, 2-pin header
- icsp (2x3)
- i2c (4)
spi (6)(nah)
- Power indicator: LED, 1K resistor
- TX/RX indicators: 2 more LEDs, 2 more 1K resistors
- Power regulation: 7805, 2 capacitors, jumper
- Diode to prevent inverted power hookup
Update 12/29: I got a single-sided board laid out with just four jumpers, and I'll tear it up and redo it with the programming header where I want it, jumping TX and RX across the board. The files for the "Severino" single-sided board helped me figure out the routing.
Wednesday, May 13, 2009
Paperduino, Hifiduino
Hifiduino: project blog by The Lazy Engineer chronicling his work to build a very slick Arduino-based hi-fi remote control. I especially like the casing work-- nicely assembled wooden box with its top made from an aluminum hard drive housing; one of the best uses of scrounged hardware I've seen. He has also chosen a lot of technologies I've been exploring in terms of (1) making an elegant interface with a single rotary encoder and display, and (2) using I2C chips for easy interfacing. The blog "extras" on the right are an excellent example of sharing, too, with links to code, examples, references, etc.
Paperduino: an Arduino circuit design by Guilherme Martins for introducing Arduino to neophytes in a workshop setting by having them build one from raw components on a 2-sided color printout. Beyond looking cool, it helps to get over the "soldering is hard" issue (pssst-- it's easy and fun!) and to understand the minimal necessary components to make a working Arduino circuit. Flickr set from the workshop, Paperduino PDF patterns.
PPAC Board V7.3: Hand Routed
Work on the main board (alarmduino?) is progressing nicely, but not without a false start-- after etching and building out the first board last week, I found that the 5-pin header to mate with the Futurlec DS1307 mini board was backwards! But the DS1307 doesn't need much circuitry, and the mini board had a lot of unused space, so I decided to revise the alarm clock main board with the clock built-in.
The latest PPAC layout has the DS1307 on the right side, with the battery holder on the bottom and interrupt going to A3; I would have tested the schematic on a breadboard tonight but I can't find any 10K resistors. I added an I2C EEPROM too (or, at least a socket for one-- I don't have the little sucker yet) for program settings, maybe a log of wake up times, and relief for the ATmega's built-in EEPROM.
Not to whine, but I'm getting impatient with EAGLE's autorouting for 1-layer boards-- I can usually find a route for the missed connections, and it's annoying to have to push around so many traces to fit them in. This board layout was routed completely by hand after EAGLE kept leaving at least four air wires. It might work as-is, or I may spread into the unused areas and widen the traces. Must resist the temptation to just etch it and build it before breadboarding the whole thing-- I want to have the program ready for this specific circuit, since I shuffled some pins around on the EAGLE layout after converting it from my previous working breadboard circuit.
Tuesday, April 21, 2009
PPAC Progress: RTC, Jog/Shuttle
I got my old test sketches working again for the DS1307 clock and jog/shuttle controller, and suddenly everything is working...:) It's "just" a matter of software and hardware layout at this point [gulp!].