Re: [Emc-users] Watchdog Sizing

2010-12-08 Thread John Kasunich
On 4 December 2010 00:46, Kirk Wallace kwall...@wallacecompany.com wrote: I'm working on using an ATtiny to watch EMC2's charge pump. Why not use a charge pump circuit to watch the charge pump signal? That is what it was designed for, and is probably the most fail-safe solution. The timeout

Re: [Emc-users] Watchdog Sizing

2010-12-08 Thread Roland Jollivet
I was wondering, can a fault ever occur with EMC where the frequency of the charge pump frequency increases?? This would keep the charge pump detector 'up', but a uP would detect an error condition. Regards Roland On 8 December 2010 20:53, John Kasunich jmkasun...@fastmail.fm wrote: On 4

Re: [Emc-users] Watchdog Sizing

2010-12-08 Thread sam sokolik
actually - really? we could get it - just paying for your time? thanks sam On 12/8/2010 1:25 PM, Roland Jollivet wrote: I was wondering, can a fault ever occur with EMC where the frequency of the charge pump frequency increases?? This would keep the charge pump detector 'up', but a uP would

Re: [Emc-users] Watchdog Sizing

2010-12-08 Thread Stephen Wille Padnos
Roland Jollivet wrote: I was wondering, can a fault ever occur with EMC where the frequency of the charge pump frequency increases?? This would keep the charge pump detector 'up', but a uP would detect an error condition. It seems unlikely. The most likely effect of a software problem

Re: [Emc-users] Watchdog Sizing

2010-12-08 Thread Slavko Kocjancic
S, Roland Jollivet piše: I was wondering, can a fault ever occur with EMC where the frequency of the charge pump frequency increases?? This would keep the charge pump detector 'up', but a uP would detect an error condition. Regards Roland NE567 can solve that too...

Re: [Emc-users] Watchdog Sizing

2010-12-08 Thread Kirk Wallace
On Wed, 2010-12-08 at 13:53 -0500, John Kasunich wrote: On 4 December 2010 00:46, Kirk Wallace kwall...@wallacecompany.com wrote: I'm working on using an ATtiny to watch EMC2's charge pump. Why not use a charge pump circuit to watch the charge pump signal? That is what it was designed

Re: [Emc-users] Watchdog Sizing

2010-12-08 Thread John Kasunich
On Wed, 08 Dec 2010 12:15 -0800, Kirk Wallace kwall...@wallacecompany.com wrote: This is what I have from the last time I played with the above type of circuit (sourced by JK?): http://www.wallacecompany.com/machine_shop/Shizuoka/watchdog-1b.png It worked on my breadboard but didn't work

Re: [Emc-users] Watchdog Sizing

2010-12-08 Thread Kirk Wallace
On Wed, 2010-12-08 at 15:53 -0500, John Kasunich wrote: ... snip It isn't that complicated. A 0.1uF output cap (C3) will work for the frequencies and delays we are interested in with EMC. Choose the output time constant and pick the R5 accordingly: R5 = T / C3. ... snip Thank you John. I

Re: [Emc-users] Watchdog Sizing

2010-12-08 Thread Erik Christiansen
On Wed, Dec 08, 2010 at 07:00:27PM -0800, Kirk Wallace wrote: Thank you John. I really appreciate the time you take to help. Using your information above, I redrew the schematic, which I'll revise as I go. It's at the bottom of the page here:

Re: [Emc-users] Watchdog Sizing

2010-12-08 Thread Slavko Kocjancic
S, Erik Christiansen piše: On Wed, Dec 08, 2010 at 07:00:27PM -0800, Kirk Wallace wrote: Thank you John. I really appreciate the time you take to help. Using your information above, I redrew the schematic, which I'll revise as I go. It's at the bottom of the page here:

Re: [Emc-users] Watchdog Sizing

2010-12-06 Thread Roland Jollivet
If the pulse from EMC or any other program is consistent, then your circuit only needs one little tactile switch. If you press this switch, the micro will go into learn mode and time the interval between pulses from EMC. If can now add a +/- 10% or whatever margin and flag the alarm outside that.

Re: [Emc-users] Watchdog Sizing

2010-12-05 Thread Slavko Kocjancic
S, Erik Christiansen piše: On Sat, Dec 04, 2010 at 09:04:54AM -0800, Kirk Wallace wrote: Then I got to thinking about what Slavko mentioned previously, about this is a safety device and I should think in terms of how it could fail. So long as the microcontroller's on-board watchdog is

Re: [Emc-users] Watchdog Sizing

2010-12-05 Thread Kirk Wallace
On Sun, 2010-12-05 at 09:44 +0200, Slavko Kocjancic wrote: ... snip That's funn... If you already have watchdog (hardware) to keep ATtiny RESET good why do you need that MCU at all?!? Seems nonsense for me. I think because the MCU is used to validate EMC2 before powering up the dangerous bits

Re: [Emc-users] Watchdog Sizing

2010-12-05 Thread Erik Christiansen
On Sun, Dec 05, 2010 at 01:40:58AM -0800, Kirk Wallace wrote: On Sun, 2010-12-05 at 09:44 +0200, Slavko Kocjancic wrote: ... snip That's funn... If you already have watchdog (hardware) to keep ATtiny RESET good why do you need that MCU at all?!? Seems nonsense for me. I think because the

Re: [Emc-users] Watchdog Sizing

2010-12-05 Thread Slavko Kocjancic
S, Erik Christiansen piše: On Sun, Dec 05, 2010 at 01:40:58AM -0800, Kirk Wallace wrote: On Sun, 2010-12-05 at 09:44 +0200, Slavko Kocjancic wrote: ... snip That's funn... If you already have watchdog (hardware) to keep ATtiny RESET good why do you need that MCU at all?!? Seems nonsense for

Re: [Emc-users] Watchdog Sizing

2010-12-04 Thread Slavko Kocjancic
Just my 2 cents... For watchdog thing I think the ATtiny is just overkill. That kind of operation can be done with simple 555 timer or even few diodes and transistor. Don't get me wrong. The ATtiny (15L) for example can do that job but as safety device the any micro isn't good way. And if system

Re: [Emc-users] Watchdog Sizing

2010-12-04 Thread Erik Christiansen
On Fri, Dec 03, 2010 at 07:54:57PM -0800, Kirk Wallace wrote: I really had no idea if the memory would be enough. I would have worked on it until I went blind in one eye. Oh, it's enough for what you want to do now. But ISTR a home switch + index filter, on the other thread. It can do that

Re: [Emc-users] Watchdog Sizing

2010-12-04 Thread Kenneth Lerman
I would use a single pin for communication to the host with some variant of the one-wire protocol used by iButtons. It is simple, elegant, and relatively insensitive to timing. Ken On 12/04/2010 04:30 AM, Erik Christiansen wrote: On Fri, Dec 03, 2010 at 07:54:57PM -0800, Kirk Wallace wrote:

Re: [Emc-users] Watchdog Sizing

2010-12-04 Thread Kirk Wallace
On Sat, 2010-12-04 at 20:30 +1100, Erik Christiansen wrote: ... snip Oh, it's enough for what you want to do now. But ISTR a home switch + index filter, on the other thread. It can do that too, if pins can be found. But then there's the extra functionality we just have to have, when we're

Re: [Emc-users] Watchdog Sizing

2010-12-04 Thread Kirk Wallace
On Sat, 2010-12-04 at 09:16 -0500, Kenneth Lerman wrote: I would use a single pin for communication to the host with some variant of the one-wire protocol used by iButtons. It is simple, elegant, and relatively insensitive to timing. Ken USB is attractive because I can get a cheap AVR

Re: [Emc-users] Watchdog Sizing

2010-12-04 Thread Peter C. Wallace
Changing track, again, the charge pump signal may not be the best thing to use, because all it would take is noise on the line to mimic the pump. I think I should make some sort of data pump component, such as send out a byte every servo period, then have the watchdog watcher check for the

Re: [Emc-users] Watchdog Sizing

2010-12-04 Thread Kirk Wallace
On Sat, 2010-12-04 at 09:38 -0800, Peter C. Wallace wrote: ... snip Maybe a simple watchdog that avoids the noise trigger issue would be a DPLL that locks onto the chargepump signal. Once locked it enables its output and stops rate tracking. Any subsequent variation in rate (beyond some

Re: [Emc-users] Watchdog Sizing

2010-12-04 Thread Erik Christiansen
On Sat, Dec 04, 2010 at 09:04:54AM -0800, Kirk Wallace wrote: Then I got to thinking about what Slavko mentioned previously, about this is a safety device and I should think in terms of how it could fail. So long as the microcontroller's on-board watchdog is enabled, you have a watchdog

[Emc-users] Watchdog Sizing

2010-12-03 Thread Kirk Wallace
I'm working on using an ATtiny to watch EMC2's charge pump. The plan is to have a count down that gets reset by a charge pump edge. If the counter reaches 0, then an alarm pin gets set. The counter reset value determines how long the charge pump has to do a reset. I can write code with the

Re: [Emc-users] Watchdog Sizing

2010-12-03 Thread Erik Christiansen
On Fri, Dec 03, 2010 at 02:46:16PM -0800, Kirk Wallace wrote: I'm working on using an ATtiny to watch EMC2's charge pump. The plan is to have a count down that gets reset by a charge pump edge. If the counter reaches 0, then an alarm pin gets set. The counter reset value determines how long

Re: [Emc-users] Watchdog Sizing

2010-12-03 Thread Jim Coleman
I like the idea of a dip switch or solder bridges if one doesn't plan on changing the setting alot and wants to save the cost of the dip switch. while the pot would be easy to adjust, it's less precise than a truth table of the dip/bridge positions and the resultant reset timer. Jim On Sat, Dec

Re: [Emc-users] Watchdog Sizing

2010-12-03 Thread Kirk Wallace
On Sat, 2010-12-04 at 12:50 +1100, Erik Christiansen wrote: ... snip Once a serial link to the EMC2 host exists, is it possible to resist the temptation to put in a $3 - $4 ATmega, to limit the risk of running out of code space, once the ancilliary functions stick their grinning faces over the

Re: [Emc-users] Watchdog Sizing

2010-12-03 Thread Erik Christiansen
On Fri, Dec 03, 2010 at 06:12:52PM -0800, Kirk Wallace wrote: But shucks, if we're thinking about going to an ATmega ... http://www.handlewithlinux.com/smallest-linux-pc http://www.shimafuji.co.jp/product/semc5701a01.html Mega-Kewl! (I want a black one, ... anna yellow one. :-) Seriously

Re: [Emc-users] Watchdog Sizing

2010-12-03 Thread Kirk Wallace
On Sat, 2010-12-04 at 09:55 +0800, Jim Coleman wrote: I like the idea of a dip switch or solder bridges if one doesn't plan on changing the setting alot and wants to save the cost of the dip switch. while the pot would be easy to adjust, it's less precise than a truth table of the dip/bridge