Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] controlling relays and motors

2004-11-25 by Dave VanHorn

>
>The biggest question is: is the problem caused by HARDWARE
>or SOFTWARE? i look at my software and it seems ok. i look
>at the hardware schematics and it also looks OK. In the
>situation like what i am in now, which should i check
>first? Hardware? or Software?
>
>If i must check hardware, why does the error only happens
>occasionally (getting more often lately) and not ALWAYS?

The simple answer, is that you don't always produce the same noise.

>Sorry if i dont give you much information about my
>project. I am really upset now :(


Ok.. First, power the micro from a CLEAN 5V supply, that does not come from 
the same source as the motor power. The only thing they should share, is a 
single point of connection on the ground, so that the signals have a common 
reference.

Second, how are you switching your inductive loads?

Are the relays connected with snubbing diodes?

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.