You've given us so little to work with, it will be difficult. I guess I'd start with "removing" the microcontroller portion of this system, and actuating the system with toggle switches, to make sure the mechanical systems work as expected. Next, I've go back and check my design. As others have suggested, I'd make sure the "low voltage" stuff was well isolated from the "high voltage" stuff. Opto isolators, relays, etc. And I'd check my code. Look for race conditions, interrupt handling, etc. I'd consider brown-out handling. Unless there was some reason not too, I'd post my code to an appropriate newsgroup for others to consider it. good luck - jim On Thu, 25 Nov 2004 07:21:03 -0000 "Astria Nur Irfansyah" <irfansyah@telkom.net> wrote: > > I am quite new in this field, i have been practicing electronics > system design for about 2 years. From my experience in > microcontrollers, both hardware and software had caused problems. > Assuming that the electronic design is correct, it turns out that bad > hardware assembly causes problems the most (e.g. bad PCB, bad > soldering joints, etc). Second, bad components. Third, bad firmware code. > > I just want to know, if you assemble the electronic hardware yourself, > and you use cheap components like here in Indonesia, so that the > quality isn't so good, what would you check FIRST in case of an > unexpected error of your microcontroller system?? Your hardware or > your software? Because i often waste time checking on one of them > while the problem actually is on the other one :( > > Thank you. > > --- In AVR-Chat@yahoogroups.com, James Washer <washer@t...> wrote: > > Irfan, after some 20 years debugging computer system problems, I can > tell you with near 100% certainty, that the answer to your question: > > "is the problem caused by HARDWARE or SOFTWARE?" > > > > is YES, the problem is caused by Hardware or Software. > > > > As to whether it is HW or SW in your case, only careful study of the > system will tell. > > > > Can you provide details (schematics, source code, etc) of your system? > > > > - jim > > > > > > > > Yahoo! Groups Sponsor > ADVERTISEMENT > > > > ------------------------------------------------ > Yahoo! Groups Links > To visit your group on the web, go to: > http://groups.yahoo.com/group/AVR-Chat/ > > To unsubscribe from this group, send an email to: > AVR-Chat-unsubscribe@yahoogroups.com > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Message
Re: [AVR-Chat] Re: controlling relays and motors
2004-11-25 by James Washer
Attachments
- No local attachments were found for this message.