On Mon, 19 Dec 2005, Todd Pattist wrote:
{Quote hidden}> Here's my first project: My wife has an espresso machine and she wants
> a timer to turn it on in the morning. It uses rubber pad switches to
> turn on/off. Holding the switch pad down for 4 seconds turns it on (if
> it's off - otherwise it enters programming mode). Holding it down for 2
> seconds turns it off (if it's on - otherwise it does nothing.) The
> voltage on the on/off switch pad is 5 volts on side 1 and ground on the
> other side. About 0.5 ma flows when the switch is closed. I'm guessing
> the machine uses a microcontroller (to control temps, flow rates,
> timing, etc.) , and I'm looking at a switch that has a 5 volt pullup
> connected to an input to detect when the switch is pressed to drop it
> low and for how long.
>
> I can't easily get access to the microcontroller, but I can get to the
> on/off switch. Here's what I'd like to build - A separate PIC
> microcontroller to turn on/off the espresso machine's on/off switch.
> The separate PIC microcontroller runs an LCD clock display with
> pushbutton switches to set the clock time, a master reset switch and a
> switch to cycle through displays of clock time, on time and off time.
> When the on time arrives, the PIC sends a 2 second pulse to turn it off
> (in case it's on) then a 4 second pulse to turn it on). When the off
> time arrives, it just sends the off time. I don't have direct access to
> 5 volt power, so I think it will be battery powered. If I can sneak 5
> volt power off the machine, battery backup would be nice.
>
> I've looked at the Microchip App Note AN582 Low-Power Real-Time Clock
> that uses an Hitachi 2 x 20 LCD display. If I use the same, I figure
> I'll need 7 outputs for the display, and 4 switch inputs (select units
> to change, increment units, zero seconds reset and select
> clock/on_time/off_time display), and it looks like MCLR is used for a
> master reset. I have some assembler programming experience, and I've
> studied a few PIC listings. I know I'll need to try some "hello world"
> basics before building this, but I'd appreciate some comments:
>
> What chip might be good to select for this ultimate design? Something
> with lots of sample programs on the web I can look at would be good.
> Not too expensive, for when I screw up. Any sample code for clocks with
> timer alarms would be helpful, there must be several of those.
>
> Can you suggest a programmer. I've seen something called the No Parts
> Programmer, that uses a parallel port running under DOS. I've got
> various computers from Debian/Linux to W98 to WXP. I've got an older UV
> eraser and EPROM programmer that I can at least scavenge the 40 pin ZIF
> from. It might be nice to build something, but buying is OK if not too
> expensive.
>
> Is it likely I can scavenge an LCD display from an old clock/phone, or
> will they be custom and need more inputs/outputs than I have.
>
> Thanks for your comments.
>
Do check out http://www.glitchbuster.com. His prices for single
chips are probably unbeatable, and his shipping and handling
is only $1.85.
Also, I believe he will burn a program in a chip for 20% of
the chip price. You could use the PIC16F88 bootloader from
http://www.sparkfun.com and get away with not buying a programmer
at all. See Sparkfun tutorials for what a bootloader is.
Also, if you want a cheap programmer you can check out
sparkfun or http://www.phanderson.com, Peter Anderson also charges
very low S&H prices.
Have Fun,
Kevin
P.S. No affiliation to the above, just a satisfied customer.