http://home.earthlink.net/~jamesgangnc/schematic.jpg
>http://home.earthlink.net/~jamesgangnc/schematic.jpg
The modern way to do these things, especially with long time constants,
is an 8pin PIC micro controller and a power MOSFET to drive the relay.
No other external parts are needed, not even the diode over the relay,
as there are MOSFETS with avalanche protection zeners.
The small PICs will use the on chip oscillator to do very accurate timing,
and have pull up resistors on some pins to make interfacing to switches
that switch to ground easy.
A simple voltage divider or zener will give you the 5 V supply for the PIC.
Ze time off ze dranzister and are-see networks is over....
So a voltage regulator, a PIC, a development system, a programmer, and
a couple of days (weeks?) learning the instruction set and programming
procedures is better than 5 cheap parts assembled in half an hour?
John
Absolutely true.
Sure, you and your thousands of $$$ oscilloscopes, and as an other
extravagant femto-second sniffing equipment collector, know that,
more then anyone here, in these use-a-net news-groupies.
If you are in New York, and somebody ask the way to San Francisco,
and proposes he takes a bike there, you suggest a train or plane,
or greyhound, or something more practical.
In the end he will save time, energy, and be ready for the next challenge.
You, as the world's most perfect asm programmer know that of course.
You also know digital is the solution to everything, and will completely
replace anal-ogical circuits.
Even the HiFi amplifiers these days do class D with the Philips patent,
at less then 10% distortion.
No audio reaches the ear without having passed through a binary process,
same for the teevee in a few month.
Even the money is digital, in fact analog is dead.
Resistors and capacitators will disappear from the earth, like the dinosaurs.
And only small PIC DIL chips will rule the earth.
Not even a 68XXXX professor will be seen, all antique stuff.
And all programmed in asm or C.
We need to educate, the poor poster needs better solution, remember he already has something,
this gives him time to learn asm programming, the extra sales will stimulate the US
industry, and may even stop the recession, if not WW3 will take care of that.
And WW3 will only be digital.
All about digital, from the cruise missiles to the control centres where the ICBMs are launched.
And that is only the beginning.
But you don't need to think if you use a PIC ;-)
...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
Obama is about to make Herbert Hoover look like a financial genius
>Mr. John Larkin wrote in <jt28q4lkkhohmmnds...@4ax.com>:
>
>>On Tue, 24 Feb 2009 14:53:05 GMT, PIC Hammer <P...@5volt.net> wrote:
>>
>>>Ze time off ze dranzister and are-see networks is over....
>>
>>So a voltage regulator, a PIC, a development system, a programmer, and
>>a couple of days (weeks?) learning the instruction set and programming
>>procedures is better than 5 cheap parts assembled in half an hour?
>>
>>John
>
>Absolutely true.
>Sure, you and your thousands of $$$ oscilloscopes, and as an other
>extravagant femto-second sniffing equipment collector, know that,
>more then anyone here, in these use-a-net news-groupies.
>
>If you are in New York, and somebody ask the way to San Francisco,
>and proposes he takes a bike there, you suggest a train or plane,
>or greyhound, or something more practical.
>In the end he will save time, energy, and be ready for the next challenge.
>
>You, as the world's most perfect asm programmer know that of course.
>
>You also know digital is the solution to everything, and will completely
>replace anal-ogical circuits.
>Even the HiFi amplifiers these days do class D with the Philips patent,
>at less then 10% distortion.
>No audio reaches the ear without having passed through a binary process,
>same for the teevee in a few month.
>
>Even the money is digital, in fact analog is dead.
Oh. Do I have to give all the money back?
John
>On Tue, 24 Feb 2009 07:03:58 -0800, John Larkin
><jjla...@highNOTlandTHIStechnologyPART.com> wrote:
>
>>On Tue, 24 Feb 2009 14:53:05 GMT, PIC Hammer <P...@5volt.net> wrote:
>>
>>>On a sunny day (Tue, 24 Feb 2009 08:17:20 -0500) it happened "jamesgangnc"
>>><ja...@nospam.com> wrote in <0eSdnfMSN-Tobj7U...@earthlink.com>:
>>>
>>>>http://home.earthlink.net/~jamesgangnc/schematic.jpg
>>>
>>>The modern way to do these things, especially with long time constants,
>>>is an 8pin PIC micro controller and a power MOSFET to drive the relay.
>>>
>>>No other external parts are needed, not even the diode over the relay,
>>>as there are MOSFETS with avalanche protection zeners.
>>>The small PICs will use the on chip oscillator to do very accurate timing,
>>>and have pull up resistors on some pins to make interfacing to switches
>>>that switch to ground easy.
>>>A simple voltage divider or zener will give you the 5 V supply for the PIC.
>>>
>>>Ze time off ze dranzister and are-see networks is over....
>>
>>So a voltage regulator, a PIC, a development system, a programmer, and
>>a couple of days (weeks?) learning the instruction set and programming
>>procedures is better than 5 cheap parts assembled in half an hour?
>>
>>John
>
>But you don't need to think if you use a PIC ;-)
>
> ...Jim Thompson
4 parts.
John
PIC Hammer is an AIOE jerk. 'Nuff said.
...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
Postings via gmail, yahoo, hotmail, aioe, uar or googlegroups, and
wild-cross-posts are now automatically kill-filed using Agent v5.0
To be white-listed, send request via the E-mail icon on my website
If the solution is a PIC, the question is so simple one needn't
think. ...not that that is all bad. Hammer obviously can't; that
is.
>>>Even the money is digital, in fact analog is dead.
>>
>>Oh. Do I have to give all the money back?
>>
>>John
>>
>
>PIC Hammer is an AIOE jerk. 'Nuff said.
>
> ...Jim Thompson
He does bring up the perennial "analog is dead" argument, admittedly
in an incoherent way.
Keep believing that, world! There are still some things I need to buy.
John
As everyone knows, analog has been dead for thirty years. Your
banker just hasn't gotten the news yet. ;-)
---
Something like this, I suspect: (View in Courier)
.+V>--+---------+-----+------+--------+----------------+
. | | | | | |
. | | | +----+ | +-----+
. | | |K | | | |K |
. [1K] [100K][1N4148] [1M]<-+ | [DIODE][COIL]
. | | | | | | |
. | | | [510K] |8 +-----+
. | | | | +---+---+ |
. | | | | 2|_ Vcc |3 |
. +-[0.1湩]-+-----+------|---O|T OUT|----+ |
. | | 6| | |A |
. +--------+ +----|TH | [1N4148] |
. | | | 7|_ 7555| | |
. O| | +---O|D | [1k] |
. O| | | | GND | | C
. | | |+ +---+---+ +-----B
. | | [120湩] |1 | E
. | | | | | |
. | +--[1N4148>]--|--------|--------+ |
. | | | |
.GND>-+----------------------+--------+----------------+
If you use a bipolar 555 you should install a 0.1湩 ceramic cap directly
across pins 1 and 8.
JF
>.+V>--+---------+-----+------+--------+----------------+
>. | | | | | |
>. | | | +----+ | +-----+
>. | | |K | | | |K |
>. [1K] [100K][1N4148] [1M]<-+ | [DIODE][COIL]
>. | | | | | | |
>. | | | [510K] |8 +-----+
>. | | | | +---+---+ |
>. | | | | 2|_ Vcc |3 |
>. +-[0.1湩]-+-----+------|---O|T OUT|----+ |
>. | | 6| | |A |
>. +--------+ +----|TH | [1N4148] |
>. | | | 7|_ 7555| | |
>. O| | +---O|D | [1k] |
>. O| | | | GND | | C
>. | | |+ +---+---+ +-----B
>. | | [120湩] |1 | E
>. | | | | | |
>. | +--[1N4148>]--|--------|--------+ |
>. | | | |
>.GND>-+----------------------+--------+----------------+
---
Oops...
.+V>--+---------+-----+------+--------+----------------+
. | | | | | |
. | | | +----+ | +-----+
. | | |K | | | |K |
. [1K] [100K][1N4148] [1M]<-+ | [DIODE][COIL]
. | | | | | | |
. | | | [510K] |8 +-----+
. | | | | +---+---+ |
. | | | | 2|_ Vcc |3 |
. +-[0.1湩]-+-----+------|---O|T OUT|----+ |
. | | 6| | |A |
. +--------+ +----|TH | [1N4148] |
. | | | 7|_ 7555| | |
. O| | +---O|D | [1k] |
. O| | | | GND | | C
. | | |+ +---+---+ +-----B 2N2222
. | | [120湩] |1 | E
. | | | | | |
. | +--[1N4148>]--|--------|--------+ |
. | | | |
.GND>-+----------------------+--------+----------------+
JF
Thanks Man!!!!! When I saw all the pic postings I was really bummed.
I'll give this a try this evening. I believe I've got most of this in
my junk box. I'm guessing any small signal diode will work for the
1n4148s?
Uhm. The A and K for diode polarity? Anode and Cathode? Thanks
again.
>>
>>So a voltage regulator, a PIC, a development system, a programmer, and
>>a couple of days (weeks?) learning the instruction set and programming
>>procedures is better than 5 cheap parts assembled in half an hour?
>>
>>John
>
>But you don't need to think if you use a PIC ;-)
>
> ...Jim Thompson
Yea, that is why Jim asked here a shot time ago how long it would take him to learn to program a micro controller.
Sign of times, I am sure the industry your work for must have wondered if
not more could be done with less using programmable logic.
The stories of replacing a micro with ADCs - DAC by a resistor summing network are old..
Maybe indeed 30 years old.
Think about it ;-)
>Oh. Do I have to give all the money back?
>
>John
What money? -:)
Do not creep up to Larkin, he is a perfect programmer.
Now figure that one out with your thinking capabilities.
+12000 mV
resi-sister
5V zener
switch ---- PIC 12FXX --- MOSFET --- relay.
|
/// capacitator
|
///
5 components.
"Creep up". ISTM that the creep here is you.
> Now figure that one out with your thinking capabilities.
I'll not even bother. You put no thought into your work. I'm
certainy not going to.
...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
Only Jerks Need to Satisfy Their Woeful Egos by Feeding Trolls
Yep. There are some problems that aren't worth thinking about.
You find enough to exist, apparently.
> Sign of times, I am sure the industry your work for must have wondered if
> not more could be done with less using programmable logic.
True, more and more is done without thinking. To be truthful, more
is being done with a *lot* more, using programmable logic. Do
note, PICs are a *small*, simple, insignificant, corner of
"programmable logic".
> The stories of replacing a micro with ADCs - DAC by a resistor summing network are old..
> Maybe indeed 30 years old.
Yes, those stories are old and still valid.
> Think about it ;-)
You wrote it; it takes no thought.
>In article <go1avu$og4$1...@aioe.org>, P...@5volt.net says...>
>> On a sunny day (Tue, 24 Feb 2009 08:48:06 -0700) it happened Jim Thompson
>> <To-Email-Use-Th...@My-Web-Site.com> wrote in
>> <vj58q4dce0p807ek5...@4ax.com>:
>>
>> >>
>> >>So a voltage regulator, a PIC, a development system, a programmer, and
>> >>a couple of days (weeks?) learning the instruction set and programming
>> >>procedures is better than 5 cheap parts assembled in half an hour?
>> >>
>> >>John
>> >
>> >But you don't need to think if you use a PIC ;-)
>> >
>> > ...Jim Thompson
>>
>> Yea, that is why Jim asked here a shot time ago how long it would take him to learn to program a micro controller.
So I can understand my customers' requests to interface to uC's
>
>Yep. There are some problems that aren't worth thinking about.
>You find enough to exist, apparently.
>
>> Sign of times, I am sure the industry your work for must have wondered if
>> not more could be done with less using programmable logic.
>
>True, more and more is done without thinking. To be truthful, more
>is being done with a *lot* more, using programmable logic. Do
>note, PICs are a *small*, simple, insignificant, corner of
>"programmable logic".
>
>> The stories of replacing a micro with ADCs - DAC by a resistor summing network are old..
>> Maybe indeed 30 years old.
>
>Yes, those stories are old and still valid.
>
>> Think about it ;-)
>
>You wrote it; it takes no thought.
>
...Jim Thompson
---
Not in your lifetime, asshole.
Aioe.com huh?
Figures...
JF
Yep. Note the sig line...
...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
Postings via gmail, yahoo, hotmail, aioe, uar or googlegroups, and
---
Either you missed the OP's:
"If it would be better to do the timing part with a 555 I could go that
way? Not sure about what it would look like though." or you're a
trouble-making son of a bitch.
From your previous posts, I'm betting the latter is true.
I have a question for you though:, "How come so many assholes (you
included) post from aioe.com?"
JF
>On Tue, 24 Feb 2009 17:39:16 GMT, PIC Hammer <P...@5volt.net> wrote:
>
>>On a sunny day (Tue, 24 Feb 2009 10:43:00 -0600) it happened John Fields
>><jfi...@austininstruments.com> wrote in
>><tp88q4dvqqvbpmm1n...@4ax.com>:
>>
>> +12000 mV
>> resi-sister
>> 5V zener
>>
>>switch ---- PIC 12FXX --- MOSFET --- relay.
>> |
>> /// capacitator
>> |
>> ///
>>
>>
>>5 components.
>
>---
>Either you missed the OP's:
>
>"If
There is a no ifs about it that a PIC 12 .. is a cheaper, better, and faster soltion.
keep your insults for yourself.
AIOE = Assholes In Organized Excretory ?:-)
>AIOE = Assholes In Organized Excretory ?:-)
How dare you insult Mr PIC Hammer, he is so right that you need replacement by a PIC.
PICS are not only more versatile, they are more polite and have better manners too.
> ...Jim Thompson
>| James E.Thompson
>| Analog Antiques
A PIC10 can be had for 27.8 cents each in 1's at Newark. Still much
cheaper than a PIC12 and even cheaper than a 7555 or 555. However,
the tools set you back another $50 or more -- plus the assembly and
MPLAB learning curves.
Without using any IC at all, an analog solution using a 47uF cap and a
2Mohm resistor, roughly, would include a few pennies for a BJT or two
and a mosfet and a few resistors and a diode or two and provide very
long delays, reliably, with sharp transitions on holding the relay
without the programming tools and learning curves and even avoiding
ICs, altogether.
Jon
>>>> So a voltage regulator, a PIC, a development system, a programmer, and
>>>> a couple of days (weeks?) learning the instruction set and programming
>>>> procedures is better than 5 cheap parts assembled in half an hour?
>>>>
>>>> John
>>>
>>> But you don't need to think if you use a PIC ;-)
>> If the solution is a PIC, the question is so simple one needn't
>> think. ...not that that is all bad. Hammer obviously can't; that
>> is.
>
> Do not creep up to Larkin, he is a perfect programmer.
> Now figure that one out with your thinking capabilities.
He's not perfect--he programs in uppercase. Otherwise, yep,
pretty much.
Cheers,
James Arthur
Wonder what he does with all the saved bits.
Did someone repeal Ohm's law and Maxwell's equations? How many
digital circuit boards have you designed without R & C? How many
circuit boards have you designed?
> And only small PIC DIL chips will rule the earth.
> Not even a 68XXXX professor will be seen, all antique stuff.
> And all programmed in asm or C.
>
> We need to educate,
Absolutely.
Nonsense. PICs are dumb as hammers.
>
>Nonsense. PICs are dumb as hammers.
I recently gave a link to a PIC that says:
'Hello I'm Mr Ed' :-)
http://www.massmind.org/techref/microchip/bigtable.htm
---
You deserve the insults, you arrogant little prick, so fuck you in your
eurotrash ass.
It's only cheaper, better, faster, if you've climbed the learning curve
and have the tools and the programming expertise.
otherwise, for someone like the OP, who is apparently building a
one-off, a simple hardware solution is perfect.
JF
---
Assholes' Internet Organization of Europe.
JF
>And only small PIC DIL chips will rule the earth.
---
"DIL"???
Clearly, you have no clue...
JF
Didn't mean to start a war but for my problem the solution using the
555 is way simpler. I don't have any of the pic tools or parts and
while I long ago did 8 bit assembly I'm not really interested in it
anymore. My delay requirement has no particular precision. I can
throw the 555 solution together on a breadboard and transfer it to a
board scrape in an evening.
Agent Delete Filter:
Author: default | jan panteltje | mpmillard | sylvia else | bill
sloman | rich grise | falk willberg | klipstein
...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
Labor Unions Cause Global Warming
Good one. I was struggling to find the right words ;-)
...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
With all this hope and change, all you need is a dab of mayonaisse
and you'll have a tasty lunch on which you will choke to death.
What? No DimBulb?
AlwaysWrong warrants a special filter that tracks and indexes his IP
jumps (NewsProxy). Seems to be working perfectly. I haven't seen
anything from him slip thru for some time now.
...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
>>>"If
>>
>>There is a no ifs about it that a PIC 12 .. is a cheaper, better, and faster soltion.
>>keep your insults for yourself.
>
>---
>You deserve the insults, you arrogant little prick, so fuck you in your
>eurotrash ass.
Wow where you gona export to, and what.
>It's only cheaper, better, faster, if you've climbed the learning curve
>and have the tools and the programming expertise.
>
>otherwise, for someone like the OP, who is apparently building a
>one-off, a simple hardware solution is perfect.
He was asking about how to improve his own thing.
Throwing more of the same to him does not really help him.
And especially not in future projects and more complex solutions he may
want to contemplate.
As far as your insults are concerened, I will stop reading your mentally
disturbed ripples for a while.
>On a sunny day (Tue, 24 Feb 2009 14:19:18 -0600) it happened John Fields
><jfi...@austininstruments.com> wrote in
><38l8q49usu8m6hrhk...@4ax.com>:
>
>>>>"If
>>>
>>>There is a no ifs about it that a PIC 12 .. is a cheaper, better, and faster soltion.
>>>keep your insults for yourself.
>>
>>---
>>You deserve the insults, you arrogant little prick, so fuck you in your
>>eurotrash ass.
>
>Wow where you gona export to, and what.
---
http://www.ers.usda.gov/Data/FATUS/
http://www.nationmaster.com/graph/mil_us_mil_exp-military-us-exports
http://www.export.gov/middleeast/Public%20Health%20TM%20Saudi%202009.pdf
etc, etc.
---
>>It's only cheaper, better, faster, if you've climbed the learning curve
>>and have the tools and the programming expertise.
>>
>>otherwise, for someone like the OP, who is apparently building a
>>one-off, a simple hardware solution is perfect.
>
>He was asking about how to improve his own thing.
>Throwing more of the same to him does not really help him.
---
Seems you missed his latest:
"Didn't mean to start a war but for my problem the solution using the
555 is way simpler. I don't have any of the pic tools or parts and
while I long ago did 8 bit assembly I'm not really interested in it
anymore. My delay requirement has no particular precision. I can
throw the 555 solution together on a breadboard and transfer it to a
board scrape in an evening."
---
>And especially not in future projects and more complex solutions he may
>want to contemplate.
---
I suspect that if the 555 solution works for him and he needs something
a little more advanced somewhere down the line, he'll be back asking for
help again then, since he got help this time, despite the demands made
by the desPICable crowd that he abandon analog and fall in line with the
anointed LED flashing crowd.
---
>As far as your insults are concerened, I will stop reading your mentally
>disturbed ripples for a while.
---
Thank you! As a consequence of that I'll appreciate not having to waste
my time reading your ill-informed replies and, even worse, having to
reply to them just to let you know how much I appreciate not having to
waste my time reading them.
JF
> Only Jerks Need to Satisfy Their Woeful Egos by Feeding Trolls
Trolling trolls is a hobby.
What if you troll the troll trollers ?:-)
What is that called?
...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
Timothy Geitner, Obama's new Secretary of the Treasury, recently
avoiding the adversity of the political arena, was finally spotted
at Barnes and Noble, buying a copy of "Economics for Dummies"
>On Tue, 24 Feb 2009 18:27:32 -0600, krw <k...@att.bizzzzzzzzzzz> wrote:
>
>>On Tue, 24 Feb 2009 10:56:25 -0700, Jim Thompson
>><To-Email-Use-Th...@My-Web-Site.com> wrote:
>>
>>> Only Jerks Need to Satisfy Their Woeful Egos by Feeding Trolls
>>
>>Trolling trolls is a hobby.
>
>What if you troll the troll trollers ?:-)
>
>What is that called?
Usenet.
One transistor was my first thought. So simple that there must be countless
links.
Google time delay relay 2n2222 or somthing like that.
A 1 Meg resistor and 1uF cap has a time period of 1 second
>"Jon Kirwan" <jo...@infinitefactors.org> wrote in message
>news:mqf8q49obphoce3fv...@4ax.com...
>> On Tue, 24 Feb 2009 18:37:12 GMT, PIC Hammer <P...@5volt.net> wrote:
>> Without using any IC at all, an analog solution using a 47uF cap and a
>> 2Mohm resistor, roughly, would include a few pennies for a BJT or two
>> and a mosfet and a few resistors and a diode or two and provide very
>> long delays, reliably, with sharp transitions on holding the relay
>> without the programming tools and learning curves and even avoiding
>> ICs, altogether.
>>
>> Jon
>
>One transistor was my first thought. So simple that there must be countless
>links.
I took a careful look at the OP's situation and didn't "see" a one-BJT
solution that provided clean, sharp relay drive on and off.
I'd probably learn something from you here.
>Google time delay relay 2n2222 or somthing like that.
I like the solution I have in mind, already.
>A 1 Meg resistor and 1uF cap has a time period of 1 second
Yes, I can multiply, too.
Jon
I recently gave a link to a PIC that says: 'Hello I am mister Ed' :-)
TTL?
Jim
Hmm. Is the trigger voltage going to make it below 1/3 V?
---
I think so.
Why not?
JF
Wired up your suggested circuit but it didn't work. Guess i'm going
to have to take the time to figure out how it should work :-) I'll
double check my connections first.
When the switch is open (and things settle down), the L.H.S.
of the trigger capacitor will be just a couple of diode drops
above ground (the 1N4148 and the BE junction of the 2N2222).
Call it 1.4V. The R.H.S. of the cap will be up at +V thanks
to the 100K pullup resistor.
When the switch closes again, the L.H.S. of the cap is forced
to ground, an excursion of only about 1.4 volts. The R.H.S.
follows, so the trigger pulse is only 1.4V below +V. So unless
the +V is less than about 4.2V, the 555 won't trigger.
Or have I missed something obvious?
Plus $100.00 development kit, and 6 months to learn to program the damn
thing.
Didn't we have a rule here - "No PIC suggestions without full schematic
and source code listing and uploadable object code included" ? ;-)
Cheers!
Rich
---
No, you nailed it! Thanks.
JF
> On a sunny day (Tue, 24 Feb 2009 14:19:18 -0600) it happened John Fields
> <jfi...@austininstruments.com> wrote in
> <38l8q49usu8m6hrhk...@4ax.com>:
>
>>>>"If
>>>
>>>There is a no ifs about it that a PIC 12 .. is a cheaper, better, and faster soltion.
>>>keep your insults for yourself.
>>
>>---
>>You deserve the insults, you arrogant little prick, so fuck you in your
>>eurotrash ass.
>
> Wow where you gona export to, and what.
>
>
>>It's only cheaper, better, faster, if you've climbed the learning curve
>>and have the tools and the programming expertise.
>>
>>otherwise, for someone like the OP, who is apparently building a
>>one-off, a simple hardware solution is perfect.
>
> He was asking about how to improve his own thing.
> Throwing more of the same to him does not really help him.
I didn't see anything like "more of the same". John's circuit is kick-ass,
can be assembled in minutes (OK, maybe 300 or 400 of them ;-) ), and
doesn't need any programming skills or $100.00 development kit.
I just wish John wasn't so foul-mouthed.
Thanks,
Rich
Hope This Helps!
Rich
Precisely my position on the point, plus the fact that bank switching is
evil. ;-)
Cheers!
Rich
So, are you saying that "a voltage regulator, a PIC, a development
system, a programmer, and a couple of days (weeks?) learning the
instruction set and programming procedures is [more practical] than
5 cheap parts assembled in half an hour"?
You've got a weird sense of priorities, dude.
If you don't want to spend $100.00 for a train or $500.00 for a plane,
then, yes, a bike is more practical.
We weren't all born with silver spoons up our ass.
Thanks,
Rich
Assembly has ALWAYS been written in upper case! Well, sometimes you
can comment in lower case for readability, but lower case code is
kinda airy-fairy. ;-)
Cheers!
Rich
Just like the "employees must wash hands" rule, it may be honored more
in the breach than the observance.
> On a sunny day (Tue, 24 Feb 2009 18:58:40 GMT) it happened James Arthur
> <bogus...@verizon.net> wrote in <ArXol.1427$tw4....@nwrddc01.gnilink.net>:
>
>>PIC Hammer wrote:
>>> krw wrote:
>>>
>>>> To-Email-Use-Th...@My-Web-Site.com says...
>>>>> John Larkin wrote:
>>>>>
>>
>>>>>> So a voltage regulator, a PIC, a development system, a programmer, and
>>>>>> a couple of days (weeks?) learning the instruction set and programming
>>>>>> procedures is better than 5 cheap parts assembled in half an hour?
>>>>>>
>>>>>> John
>>>>>
>>>>> But you don't need to think if you use a PIC ;-)
>>>> If the solution is a PIC, the question is so simple one needn't
>>>> think. ...not that that is all bad. Hammer obviously can't; that
>>>> is.
>>>
>>> Do not creep up to Larkin, he is a perfect programmer.
>>> Now figure that one out with your thinking capabilities.
>>
>>He's not perfect--he programs in uppercase.
>
> Wonder what he does with all the saved bits.
Parity. ;-)
Cheers!
Rich
>PIC Hammer wrote:
>> krw wrote:
>>
>>> To-Email-Use-Th...@My-Web-Site.com says...
>>>> John Larkin wrote:
>>>>
>
>>>>> So a voltage regulator, a PIC, a development system, a programmer, and
>>>>> a couple of days (weeks?) learning the instruction set and programming
>>>>> procedures is better than 5 cheap parts assembled in half an hour?
>>>>>
>>>>> John
>>>>
>>>> But you don't need to think if you use a PIC ;-)
>>> If the solution is a PIC, the question is so simple one needn't
>>> think. ...not that that is all bad. Hammer obviously can't; that
>>> is.
>>
>> Do not creep up to Larkin, he is a perfect programmer.
>> Now figure that one out with your thinking capabilities.
>
>He's not perfect--he programs in uppercase. Otherwise, yep,
>pretty much.
>
>Cheers,
>James Arthur
REAL PROGRAMMERS DON'T USE LOWER CASE.
JOHN
Nonsense. Mixed case improves readability immensly. Case
sensitivity is evil.
Hmm... He who can handle only a hammer, considers every problem to be a nail
:)
You left out the most important part: The program.
It was mentioned before: "If you offer a PIC-solution then provide the
program as well."
*I* would use a 10F200 for a fixed timer and a 10F222 for a variable one.
The OP however has neither electronics design - nor programming skills. Even
if you provided a program I doubt he could get it into the chip. One still
needs a programmer and the know-how to handle it.
A 555 would be my second choice but I also could make something using
discretes. If you consider yourself to be a designer, you'll need to have
more then one tool in your box.
petrus bitbyter
Neither do real analog designers. It's almost a daily exercise for me
converting device libraries to upper case so I can tell 1's an l's
apart. UNIX people seem to be particularly jerky about lower case ;-)
...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
It's what you learn, after you know it all, that counts.
I think the fix is a MOSFET for the relay driver and a few gates instead
of the 555 for the timer.
I'll work something up tonight and post it tomorrow but, in any case,
thanks for the rancorless reality check. :-)
JF
---
Case _insensitivity_?
JF
---
Said the bishop to the actress.
JF
Well... if the supply voltage is a reasonable value for driving
the relay, say between 8V and 12V, one could consider turning the
100K pullup into a voltage divider that would float the trigger
just above its threshold. Say a 120K/68K split. That would put
the trigger voltage at about 0.36*Vcc . The 1.4V pulse should
then be sufficient to drop it below the 0.3*Vcc threshold.
I use case for legibility. I certainly don't want the
system/compiler/files to be case sensitive.
Yeah, but he comments in uppercase too. Brute.
Grins,
James Arthur
ARRGGGHHH!
james
lower case is more readable because the letters are not all boxy-like-
they have some bits wot go above the base line and some wot go above
the others. The envelope of the word can be enough to allow it to be
recognized.
Best regards,
Spehro Pefhany
--
"it's the network..." "The Journey is the reward"
sp...@interlog.com Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog Info for designers: http://www.speff.com
><snip>
>Bank-switching is evil.
Only if you think being exposed to hardware that balances competing
needs well is evil. It's how things sometimes get done even in well
done achievements of balancing contending issues. I just worry about
what meets the need well and actually feel impressed when a crafted
and intelligent balance is successfully struck -- even if it means
there happens to be some software issues added to the pile. The
converse of that simply sweeps the software burden inordinately onto
hardware designers and I tend to enjoy seeing a balance of weight
placed on both sides of the fence.
Time have changed some and it's less work to design smaller micros
without the bank switching hardware. But it had its place and still
does to a degree not only with the PIC but also with the Intel x86
family, as well -- even the newest ones include banks everywhere;
segment descriptor tables, which are themselves "banked" by other
registers that locate them; page table "banks"; and so on. Advantages
are to be used. DSPs have their own contributions here, in spades.
And so on.
But some of my fondest memories are in getting an operating system
working on a bank-switched z80-based system. ;) Been there, not
afraid of it. And yes, I like unbanked systems, too. Everything is
good.
Jon
Take this, infidel!
.SBTTL IRQ6 SERVICE
; THE HITLOCK MECHANISM ENFORCES A MINIMUM IRQ-TO-IRQ DELAY SO THAT, IF A USER
; TRIGGERS US AT TOO HIGH A RATE, WE DON'T HOG ALL THE CYCLES FROM THE OPERATE SIDE.
; ON ENTRY, FAIM NAMES THE FRAME JUST FIRED
; FSTATE IS + LIVE, 0 DEAD, - DONE
; FOX IS OUR IRQ DOWN-COUNTER
; THE SETUP CODE PUSHES FRAMES FA AND FA+1 INTO THE FPGA, SO THE FIRST FRAME THAT WE
; UNLOAD IS ACTUALLY FA+2. WE DO THIS EVEN IF IT WILL NEVER BE USED.
; EXECUTION TIME = 38 USEC.
; EXPERIMENT HAS SHOWN THAT THIS ISN'T WORTH CACHING.
UVEC6: BSET.B # 0, PORTF.W ; === RAISE TIMING TP
MOVEM.L D0 D1 D2 A0 A1 A2, -(SP) ; SAVE CONTEXT!
TST.W FSTATE.W ; CHECK FRAME MACHINE STATE
BLE.S UVOFF ; IF DEAD OR DONE, SHUT DOWN.
SUBQ.W # 1, FOX.W ; TOCK IRQ COUNTER
BPL.S UVRUN ; ANY LEFT? IF SO, LOAD ANOTHER FRAME
; FOX HAS DECREMENTED TO -1, SO SHUT DOWN THE SYSTEM...
MOVE.W # -1, FSTATE.W ; SET STATE = DONE
BRA.S UVOFF ; AND SHUT DOWN.
; ON NEXT-TO-LAST IRQ, FOX IS ZERO, AND IN THAT CASE WE DON'T WANT TO
; AUTOMATICALLY RE-ARM THE HITLOCK TIMER AT THE NEXT IRQ.
UVRUN: SGT.B FDIE.W ; THAT DOES IT!
MOVE.W FAIM.W, D0 ; FETCH FRAME POINTER
ADDQ.W # 1, D0 ; BUMP SAME
AND.W FLAST.W, D0 ; MOD TABLE SIZE
MOVE.W D0, FAIM.W ; AND REPLACE
ADDQ.W # 1, D0 ; LOAD NEXT FRESH FRAME INTO THE PIPELINE
BSR.S FRAGG ; EVEN IF IT MAY NEVER BE USED (LIKE, 1 OR 2 SHOTS)
ST.B FIRQ.W ; ALLOW MORE IRQ6 THINGS
BRA.S UVEX ; AND BAIL
; SHUT THINGS DOWN... THE HITLOCK IS STILL ACTIVE, AND WE HAVE NOT AUTHORIZED ANOTHER
; SHOT, SO TRIGGERS ARE DISABLED. THE USER MUST SAY "FRAME OFF" OR "FRAME GO" TO FIX THIS.
UVOFF: CLR.B FIRQ.W ; NO MORE INTERRUPTS!
UVEX: MOVEM.L (SP)+, D0 D1 D2 A0 A1 A2
BCLR.B # 0, PORTF.W ; === DROP TIMING TP ===
RTE
I just got that to work. I think.
John
>> switch ---- PIC 12FXX --- MOSFET --- relay.
>> |
>> /// capacitator
>> |
>> ///
>>
>>
>> 5 components.
>
> Plus $100.00 development kit,
I didn't realise that the dollar had fallen quite that far:
http://uk.farnell.com/microchip/pg164120/programmer-pickit-2/dp/9847170
£25.03 (ex VAT); add another tenner if you want the demo board.
> and 6 months to learn to program the damn thing.
It took me ~4 hours from opening the package to finishing and
understanding the lessons.
Of course, it will take a bit longer if you've never programmed asm
before, but not 6 months. In fact, if it takes 6 days, you're probably not
cut out for a technical hobby.
> Didn't we have a rule here - "No PIC suggestions without full schematic
> and source code listing and uploadable object code included" ? ;-)
Hang on, I'll be back in bit with the code ;)
Here, I've 'fixed' it for you...
Cheers,
James
~~~~~~~~~~~~~~~~~~~~~~
.SBTTL IRQ6 SERVICE
; The HITLOCK mechanism enforces a minimum irq-to-irq delay so
; that, if a user triggers us at too high a rate, we don't hog
; all the cycles from the operate side.
; On entry, FAIM names the frame just fired
; FSTATE is + LIVE, 0 DEAD, - DONE
; FOX is our IRQ down-counter
; The setup code pushes frames FA AND FA+1 into the FPGA, so the
; first frame that we unload is actually FA+2. We do this even
; if it will never be used.
; EXECUTION TIME = 38 uSEC.
; Experiment has shown that this isn't worth caching.
UVEC6: BSET.B # 0, PORTF.W ; === Raise timing TP
MOVEM.L D0 D1 D2 A0 A1 A2, -(SP) ; Save context!
TST.W FSTATE.W ; Check frame machine state.
BLE.S UVOFF ; IF DEAD or DONE, SHUT DOWN.
SUBQ.W # 1, FOX.W ; tock IRQ counter.
BPL.S UVRUN ; Any left? IF so, load
; another frame.
; FOX has decremented to -1, so SHUT DOWN the system...
MOVE.W # -1, FSTATE.W ; Set STATE = DONE,
BRA.S UVOFF ; and SHUT DOWN.
; On next-to-last IRQ, FOX is zero, and in that case we don't
; want to automatically re-arm the HITLOCK TIMER at the next
; IRQ.
UVRUN: SGT.B FDIE.W ; That does it!
MOVE.W FAIM.W, D0 ; Fetch frame pointer
ADDQ.W # 1, D0 ; Bump same
AND.W FLAST.W, D0 ; MOD TABLE SIZE,
MOVE.W D0, FAIM.W ; and replace.
ADDQ.W # 1, D0 ; Load next fresh frame into
; the pipeline,
BSR.S FRAGG ; even if it may never be used
; (like, 1 or 2 shots).
ST.B FIRQ.W ; allow more IRQ6 things,
BRA.S UVEX ; and bail.
; Shut things down... the HITLOCK is still active, and we have
; not authorized another shot, so triggers are disabled. The
; user must say "FRAME OFF" or "FRAME GO" to fix this.
UVOFF: CLR.B FIRQ.W ; No more interrupts!
UVEX: MOVEM.L (SP)+, D0 D1 D2 A0 A1 A2
BCLR.B # 0, PORTF.W ; === Drop timing TP ===
RTE
>> Didn't we have a rule here - "No PIC suggestions without full schematic
>> and source code listing and uploadable object code included" ? ;-)
>
> Hang on, I'll be back in bit with the code ;)
Well, I got a bit sidetracked (by an phantom button press, which appears
to be an artifact of RA3 being used both for the pushbutton and for
programming), but the following works (admittedly, a 16F690 is overkill
for this, but that's what's in the socket right now).
#include <p16F690.inc>
__config (_INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_OFF & _MCLRE_OFF & _CP_OFF & _BOR_OFF & _IESO_OFF & _FCMEN_OFF)
cblock 0x20
Mode
Display
Delay
SwitchState
Ready
Delay1
Delay2
Delay3
endc
cblock 0x70 ; put these up in unbanked RAM
W_Save
STATUS_Save
endc
org 0
goto Start
nop
nop
nop
ISR:
movwf W_Save
movf STATUS,w
movwf STATUS_Save
btfss INTCON,T0IF
goto ExitISR
bcf INTCON,T0IF ; clear the interrupt flag. (must be done in software)
decfsz Delay,f
goto NotYet
bsf Ready,0 ; signal the main routine that the Timer has expired
movlw 5
movwf Delay
NotYet:
clrf TMR0 ; Also clears the prescaler
ExitISR:
movf STATUS_Save,w
movwf STATUS
swapf W_Save,f
swapf W_Save,w
retfie
Start:
bsf STATUS,RP0 ; select Register Page 1
movlw 0xFF
movwf TRISA ; Make PortA all input
clrf TRISC ; Make PortC all output
movlw B'10000111' ; configure Prescaler on Timer0, max prescale (/256)
movwf OPTION_REG
bcf STATUS,RP0 ; back to Register Page 0
movlw B'10100000' ; enable Timer 0 and global interrupts
movwf INTCON
clrf PORTC
clrf Display
clrf SwitchState
clrf Mode
movlw 5
movwf Delay
clrf Delay1
clrf Delay2
movlw 2
movwf Delay3
DelayLoop:
decfsz Delay1,f
goto DelayLoop
decfsz Delay2,f
goto DelayLoop
decfsz Delay3,f
goto DelayLoop
MainLoop:
btfsc SwitchState,0
goto CheckSwitchUp
CheckSwitchDown:
btfsc PORTA,3 ; switch pressed (= low)?
goto SwitchChecked
bsf SwitchState,0 ; mark as pressed
incf Mode,w ; next mode
movwf Mode
xorlw 3
btfsc STATUS,Z
clrf Mode
goto SwitchChecked
CheckSwitchUp:
btfsc PORTA,3 ; switch released (= high)?
bcf SwitchState,0 ; mark as released
SwitchChecked:
movf Mode,w
btfsc STATUS,Z
goto Mode0
xorlw 1
btfss STATUS,Z
goto Mode2
Mode1:
bsf PORTC,0 ; mode 1: turn on LED
goto MainLoop
Mode0:
bcf PORTC,0 ; mode 0: turn off LED
goto MainLoop
Mode2: ; mode 2: flash LED
btfss Ready,0 ; check for timer
goto NoFlip
comf Display,f
clrf Ready
NoFlip:
btfss Display,0
goto TurnOff
bsf PORTC,0 ; turn on LED
goto MainLoop
TurnOff:
bcf PORTC,0 ; turn off LED
goto MainLoop
end
>REAL PROGRAMMERS DON'T USE LOWER CASE.
Somebody who hates programming is not a programmer.
>On Feb 25, 3:06 pm, John Fields <jfie...@austininstruments.com> wrote:
>> On Wed, 25 Feb 2009 12:40:36 -0500, "Greg Neill"
>>
>>
>>
>>
>>
>> <gneil...@MOVEsympatico.ca> wrote:
>> >John Fields wrote:
>>
>> >> .+V>--+---------+-----+------+--------+----------------+
>> >> . | | | | | |
>> >> . | | | +----+ | +-----+
>> >> . | | |K | | | |K |
>> >> . [1K] [100K][1N4148] [1M]<-+ | [DIODE][COIL]
>> >> . | | | | | | |
>> >> . | | | [510K] |8 +-----+
>> >> . | | | | +---+---+ |
>> >> . | | | | 2|_ Vcc |3 |
>> >> . +-[0.1µF]-+-----+------|---O|T OUT|----+ |
>> >> . | | 6| | |A |
>> >> . +--------+ +----|TH | [1N4148] |
>> >> . | | | 7|_ 7555| | |
>> >> . O| | +---O|D | [1k] |
>> >> . O| | | | GND | | C
>> >> . | | |+ +---+---+ +-----B 2N2222
>> >> . | | [120µF] |1 | E
>> >> . | | | | | |
>> >> . | +--[1N4148>]--|--------|--------+ |
>> >> . | | | |
>> >> .GND>-+----------------------+--------+----------------+
>>
>> >Hmm. Is the trigger voltage going to make it below 1/3 V?
>>
>> ---
>> I think so.
>>
>> Why not?
>Wired up your suggested circuit but it didn't work. Guess i'm going
>to have to take the time to figure out how it should work :-) I'll
>double check my connections first.
---
No need to. The circuit is bogus as pointed out by Greg Neill, and needs
to be reworked.
Sorry about the inconvenience.
JF
>John Fields wrote:
>> On Wed, 25 Feb 2009 15:47:37 -0600, John Fields
>> <jfi...@austininstruments.com> wrote:
>>
>>> On Wed, 25 Feb 2009 15:20:15 -0500, "Greg Neill"
>>> <gnei...@MOVEsympatico.ca> wrote:
>>>
>>>> John Fields wrote:
>>>>> On Wed, 25 Feb 2009 12:40:36 -0500, "Greg Neill"
>>>>> <gnei...@MOVEsympatico.ca> wrote:
>>>>>
>>>>>> John Fields wrote:
>>>>>>>
>>>>>>> .+V>--+---------+-----+------+--------+----------------+
>>>>>>> . | | | | | |
>>>>>>> . | | | +----+ | +-----+
>>>>>>> . | | |K | | | |K |
>>>>>>> . [1K] [100K][1N4148] [1M]<-+ | [DIODE][COIL]
>>>>>>> . | | | | | | |
>>>>>>> . | | | [510K] |8 +-----+
>>>>>>> . | | | | +---+---+ |
>>>>>>> . | | | | 2|_ Vcc |3 |
>>>>>>> . +-[0.1µF]-+-----+------|---O|T OUT|----+ |
>>>>>>> . | | 6| | |A |
>>>>>>> . +--------+ +----|TH | [1N4148] |
>>>>>>> . | | | 7|_ 7555| | |
>>>>>>> . O| | +---O|D | [1k] |
>>>>>>> . O| | | | GND | | C
>>>>>>> . | | |+ +---+---+ +-----B 2N2222
>>>>>>> . | | [120µF] |1 | E
---
Good idea, but I get a little nervous getting too close to thresholds.
Here it is with MOSFETS for the relay driver and, as it turns out, for
the power-on reset. Without it, it generates a pulse on power-up,
according to LTspice.
.+V>--+---------+-----+------+--------+------+-----+-----------+
. | | | | | | | |
. | | | +----+ | | +------+ |
. | | |K | | | | | K| |
. [10K] [100K][1N4148] [1M]<-+ | [10K] [COIL][DIODE] |
. | | | | | | | | |
. | | | [510K] |8 | +------+ |
. | | | | +---+---+ | | |
. | | | | 2|_ Vcc |3 | | |
. +-[0.1µF]-+-----+------|---O|T OUT|--|-----+ | |
. | | 6| | | |A | |
. +--------+ +----|TH | | [1N4148] | |
. | | | 7|_ 7555| | | | |
. O| |A +---O|D _| | | | |
. O| [1N4148] | | GND R|O-+ | | [0.1µF]
. | | |+ +---+---+ D | | |
. | | [120µF] 1| 2N7000 G---|------|----+
. | | | | S | D |
. | +-------------|--------|------|-----+----G [100K]
. | | | | | 2N7000 S |
. | [100K] | | | | |
. | | | | | | |
.GND>-+--------+-------------+--------+------+------------+----+
And here's the LTspice circuit list:
Version 4
SHEET 1 880 680
WIRE -576 -48 -912 -48
WIRE -304 -48 -576 -48
WIRE -160 -48 -304 -48
WIRE 64 -48 -160 -48
WIRE 128 -48 64 -48
WIRE 256 -48 128 -48
WIRE 672 -48 256 -48
WIRE 752 -48 672 -48
WIRE 256 -32 256 -48
WIRE -576 0 -576 -48
WIRE 752 0 752 -48
WIRE -304 16 -304 -48
WIRE -160 16 -160 -48
WIRE 64 16 64 -48
WIRE 128 16 128 -48
WIRE 368 80 320 80
WIRE 672 80 672 -48
WIRE 672 80 592 80
WIRE -576 144 -576 80
WIRE -448 144 -576 144
WIRE -416 144 -448 144
WIRE -160 144 -160 96
WIRE -160 144 -352 144
WIRE 64 144 64 80
WIRE 64 144 -160 144
WIRE 368 144 64 144
WIRE 752 144 752 80
WIRE 752 144 592 144
WIRE -304 160 -304 96
WIRE -576 192 -576 144
WIRE -624 208 -752 208
WIRE 32 208 -64 208
WIRE 368 208 96 208
WIRE 752 208 752 144
WIRE 752 208 592 208
WIRE -64 240 -64 208
WIRE -64 240 -256 240
WIRE -912 272 -912 -48
WIRE -752 272 -752 208
WIRE 256 272 256 48
WIRE 368 272 256 272
WIRE 752 272 752 208
WIRE 256 304 256 272
WIRE -448 336 -448 144
WIRE -224 336 -448 336
WIRE -64 336 -64 240
WIRE -64 336 -160 336
WIRE 128 384 128 80
WIRE 208 384 128 384
WIRE -64 400 -64 336
WIRE 128 400 128 384
WIRE -912 496 -912 352
WIRE -752 496 -752 352
WIRE -752 496 -912 496
WIRE -624 496 -624 256
WIRE -624 496 -752 496
WIRE -576 496 -576 272
WIRE -576 496 -624 496
WIRE -304 496 -304 256
WIRE -304 496 -576 496
WIRE -64 496 -64 480
WIRE -64 496 -304 496
WIRE 128 496 128 480
WIRE 128 496 -64 496
WIRE 256 496 256 400
WIRE 256 496 128 496
WIRE 320 496 320 80
WIRE 320 496 256 496
WIRE 752 496 752 336
WIRE 752 496 320 496
WIRE -912 576 -912 496
FLAG -912 576 0
SYMBOL Misc\\NE555 480 176 R0
SYMATTR InstName U1
SYMBOL voltage -912 256 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 3 24 104 Invisible 0
SYMATTR InstName V1
SYMATTR Value PULSE(0 12 .01 1e-6)
SYMBOL res 736 -16 R0
SYMATTR InstName R1
SYMATTR Value 1e6
SYMBOL cap 736 272 R0
SYMATTR InstName C1
SYMATTR Value 120e-6
SYMBOL voltage -752 256 R0
WINDOW 0 -53 5 Left 0
WINDOW 3 -242 110 Invisible 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V4
SYMATTR Value PULSE(1 0 0 1E-6 1e-6 10 200 2)
SYMBOL sw -576 288 M180
WINDOW 0 32 15 Left 0
WINDOW 3 32 44 Left 0
SYMATTR InstName S2
SYMBOL diode 96 192 R90
WINDOW 0 0 32 VBottom 0
WINDOW 3 32 32 VTop 0
SYMATTR InstName D1
SYMATTR Value 1N4148
SYMBOL diode 80 80 R180
WINDOW 0 50 35 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D2
SYMATTR Value 1N4148
SYMBOL res -320 0 R0
WINDOW 0 -39 37 Left 0
WINDOW 3 -44 71 Left 0
SYMATTR InstName R2
SYMATTR Value 100
SYMBOL res -176 0 R0
WINDOW 0 -41 37 Left 0
WINDOW 3 -53 66 Left 0
SYMATTR InstName R4
SYMATTR Value 100k
SYMBOL res -592 -16 R0
WINDOW 0 -41 44 Left 0
WINDOW 3 -55 73 Left 0
SYMATTR InstName R5
SYMATTR Value 10k
SYMBOL diode -224 352 R270
WINDOW 0 32 32 VTop 0
WINDOW 3 0 32 VBottom 0
SYMATTR InstName D3
SYMBOL cap -352 128 R90
WINDOW 0 0 32 VBottom 0
WINDOW 3 32 32 VTop 0
SYMATTR InstName C2
SYMATTR Value 1e-7
SYMBOL nmos -256 160 M0
SYMATTR InstName M1
SYMATTR Value BSS123
SYMBOL res 240 -48 R0
SYMATTR InstName R3
SYMATTR Value 10K
SYMBOL res 112 384 R0
SYMATTR InstName R6
SYMATTR Value 100k
SYMBOL cap 112 16 R0
SYMATTR InstName C3
SYMATTR Value 1e-7
SYMBOL nmos 208 304 R0
SYMATTR InstName M2
SYMATTR Value BSS123
SYMBOL res -80 384 R0
SYMATTR InstName R7
SYMATTR Value 100K
TEXT -880 544 Left 0 !.model SW SW(Ron=.01 Roff=10Meg Vt=0.5Vh=0)
TEXT -880 520 Left 0 !.tran 500 startup uic
---
But... something esle was running around in my head and here it is:
a _much, much_ better way to do it, Duh...
+V>-----------+--------+-----+----+--------+
| | | | |
[1M] [390] | [10K] [COIL]
| | | | |
| +----|+\ | D
____ | | | >--+------G 2N7000
O O---+--------|----|-/ S
| | | | |
| [68µF] [Z10V] | |
| | | | |
GND>---+------+--------+-----+-------------+
For the timing we have:
Vcc
T = RC ln ----------- = kRC
Vcc - Vth
Vcc 12
k = ln ----------- = ln ---- = 1.79
Vcc - Vth 2
So:
T = 1.79 RC
Rearranging and solving for C with T = 120 seconds and R = 1 megohm:
T 120s
C = ------- = -------- = 6.7e-5F = 67µF
1.79R 1.79e6
68µF is a common value aluminum electrolytic and should work OK.
JF
Looks like hell on my Panasonic dot-matrix printer.
John
Exactly. I'm an engineer. I only program because I have to, not
because I enjoy it. That's why my code is better than what most
"programmers" hack; I want to get it done, bug free, as quickly as I
can, so I make sure it's right the first time. I hate debugging even
more than I hate coding.
I'm currently advertising (Craigslist) for an embedded-systems
programmer. The ad asks for "something like a resume" and a code
sample. Got lots of florid resumes, but only a few people (out of
close to 100) actually submitted code samples, and only one was a
decent, readable hunk of code. Pitiful. Would you hire an artist who
refuses to show you any of his work?
John
the 555 timer (low power versions are now readily available too) is
the classic way to do it precisely (sharp cut-of due to internal
positive feedback) with few extra components, the uC +MosFET is
another interesting way, especially if you would like extra
functionality and already have a uC programming setup.
The direct extension of your initial method is a transistor to buffer
the RC timing circuit current and let you use a smaller capacitor,
however the gradual turn off problem will remain, and the component
count is not less than the other two methods.
Relatively expensive and large timeout relays also exist with a dial
to set the timeout period (I have used such a relay when charging a
large capacitor with a large inrush current: without the relays the
switches kept fusing in the closed position & would not turn off: the
timeout relay had a current limiting resistor in parallel for charging
the capacitors, then after a short charging time delay the open relay
closed and short-circuited the charging resistor).
In either case *do not omit* the relay coil R/C/D snubber circuit
(typically about 100ohms in series with 100nF, plus a 1A diode in
parallel or some resistor series combination, as close to the relay
coil as is practical) unless you are really certain that they can be
omitted in this particular application.
The snubber circuit will protect both your own circuit, and others.
Inductive relay circuits sometimes work on their own without them,
however they are now substantial radio frequency generators at switch-
off (fast current changes over long wires) and can stop other circuits/
devices from working when connected or placed in proximity, even a
device that is not introduced to the room until years later.
I once made a water-pump circuit switched by a relay with a R/C/D
snubber mounted very close to the relay coil. This worked well for
months until I introduced an accessory to the same control computer
connected by the (supplied) unshielded ribbon cable. It took a while
to figure out that the program was now crashing because of RF
feedback, even with the complete snubber circuit, to the computer
accessory memory via the unshielded cable. Grounded tinfoil on the
cable provided a complete temporary fix.
Three bathroom 2kW down-flow heaters have now experienced exactly the
same early brownout failure (a systematic error) in my house. An
examination of the internal pull cord switch shows that a plastic pin
in series with the the pivoting metal plate (showing substantial
arcing) gradually melted, sometimes shortening (the magnitude of the
arcing depends upon the phase of the mains current cycle at switch-off
time), until the switch no longer worked. The AC inductive heater coil
has no R/C (almost certainly a manufacturing error), nor R/C/D snubber
circuit. I am replacing the pull cord switches with fused wall panel
cooker switches (wall panel fuse plates are already present, & I have
added a cable mount 20mm fuse inside) and will add R/C (available in
single packages for AC power loads), or maybe even R/C + back-2-back
high voltage zener (considering the mains AC operation) diode snubber
circuits.
DH
On Feb 24, 1:17 pm, "jamesgangnc" <ja...@nospam.com> wrote:
> I'm ok with fixing and adapting circuits but not so good with design. I've
> come up with an electronic switch circuit but I think it could use
> improvement. The goal is to turn on a 12v relay with a switch that is
> closed when off and open when on. The switch also has to have one leg
> grounded. It's a pressure switch with a single terminal. I also want the
> relay to stay closed (on) for a couple minutes when the switch goes from on
> (open) to off (closed). Here's what I've got now and it does work. But I
> had to use a pretty big capacitor and I'm still only getting about a minute
> of delay when going to the off state. Because I can't make the 10k resistor
> any bigger. I'm thinking that it is likely possible to get a longer delay
> and do it with a smaller capacitor if I was better at designing this. The
> other flaw is that this slowly lowers the voltage to the relay until it
> drops. The relay stays pulled to about 3 to 4 volts. I also suspect there
> is a better way to keep it fully on until the rc timer expires. Thanks in
> advance for any suggestions :-)
>
> http://home.earthlink.net/~jamesgangnc/schematic.jpg
John Larkin wrote:
> I'm currently advertising (Craigslist) for an embedded-systems
> programmer. The ad asks for "something like a resume" and a code
> sample. Got lots of florid resumes, but only a few people (out of
> close to 100) actually submitted code samples, and only one was a
> decent, readable hunk of code. Pitiful. Would you hire an artist who
> refuses to show you any of his work?
Have you listed the salary as well?
Would the decent engineer work for this salary?
Would you bother for someone who refuses to show the money or who wants
something for nothing?
Vladimir Vassilevsky
DSP and Mixed Signal Design Consultant
http://www.abvolt.com
That thing in the middle is an opamp I'm guessing? Don't have any
2n7000's but I'll try radio shack since I don't happen to need
anything else at the moment to make it worth a newarks order.
> | [68湩] [Z10V] | |
> | | | | |
>GND>---+------+--------+-----+-------------+
>
>
>For the timing we have:
>
>
> Vcc
> T = RC ln ----------- = kRC
> Vcc - Vth
>
> Vcc 12
> k = ln ----------- = ln ---- = 1.79
> Vcc - Vth 2
>
>
>So:
>
> T = 1.79 RC
>
>
>Rearranging and solving for C with T = 120 seconds and R = 1 megohm:
>
>
> T 120s
> C = ------- = -------- = 6.7e-5F = 67湩
> 1.79R 1.79e6
>
>68湩 is a common value aluminum electrolytic and should work OK.
---
Aaarrghhhh!!!
The switch has one leg connected to ground, is normally closed, and when
it's opened the relay is supposed to energize for as long as the switch
is open, then stay on for an additional 2 minutes when the switch is
released. I think...
Such being the case, this ought to work:
+12>---+------------+------+----+--------+-----+----+-----+
| | | | | | | |
| [1M] | [1000] [390] | | |
[10K] | E | | | [10K] [COIL]
| | 2N2222 B--+ | | | |
| C------+ C | +----|+\ | D
+---B 2N2222 | | | | | >--+---G 2N7000
| E +------+----|--------|----|-/ S
|O | | | | | |
|O | [68湩] [2.7湩] [Z10V] | |
| | | | | | |
GND>---+-----+------+-----------+--------+-----+----------+
JF
Yogi says: Anything made with joy is good.
I am glad you compare programming to art.
In a way it is, and only limited by imagination.
But art made by somebody who just wants to blurb it on the
canvas and get it over with.... I dunno.
Mona Lisa is different though, Leonardo did something special there.
Maybe you have a concept about programming, I think everybody has.
Sometimes they think *their* way is the only right way.
The best managers I know let you be creative in your own way.
As long as it works, the projects get completed on time.
The shadow side is not far, take the complete idiotic moron who
re-wrote adobe reader plug-in for the web browsers.
He should be locked up in Guantanamo.
I use xpdf in Linux to view a pdf document it is 100x (no kidding) faster.
That moron has done more damage with his crap coding to adobe of whoever owns it these days
then a cyclone could.
I have heard, but that may be rumour, but say I sort of deduced from
remarks by users of some video editing software from the same source,
that he infected other applications too.
So if they fire that guy, and he asks you for a job, do not hire him.
Anybody else would be better I guess.