Hi all,
I know there are plenty of posts on interference - I've been sifting thru them, and from what I can see I've done just about everything except putting the PICAXE in a metal box, but before I pull everything apart, ...
I am using an 18X looking at a few inputs, run an LCD, and on occasion turn on a relay for 0.1 secs to toot a horn (ala salvaged from a car). The system is powered from a 12V battery, and everything works perfectly well including working the relay, until I plug in the horn, then when it's triggered and the horn toots, the LCD (usually, but not always) displays garbage, and sometimes the PICAXE locks up!
The power to the PICAXE is via a 7805, with a 100uF and a 100nF cap either side of the 7805. I have 100nF adjacent to the 18X power pin. I have an IN4004 across the relay solenoid pins.Actually I have a small PCB mounted relay, activating a large high current automotive relay - again with an IN4004 across the solenoid pins (the horn probably draws about 5A).
I really don't want a separate battery for the PICAXE if it can be avoided!
Re metal box - I do have the relay currently mounted inside the same plastic box, so reading thru the posts, I suspect this will be the most likely issue, but before I get started on a big rebuild to give it a try by remotely mounting the relay, I thought I might try for any suggestions for something else I might have missed.
Cheers
Bryan.
I know there are plenty of posts on interference - I've been sifting thru them, and from what I can see I've done just about everything except putting the PICAXE in a metal box, but before I pull everything apart, ...
I am using an 18X looking at a few inputs, run an LCD, and on occasion turn on a relay for 0.1 secs to toot a horn (ala salvaged from a car). The system is powered from a 12V battery, and everything works perfectly well including working the relay, until I plug in the horn, then when it's triggered and the horn toots, the LCD (usually, but not always) displays garbage, and sometimes the PICAXE locks up!
The power to the PICAXE is via a 7805, with a 100uF and a 100nF cap either side of the 7805. I have 100nF adjacent to the 18X power pin. I have an IN4004 across the relay solenoid pins.Actually I have a small PCB mounted relay, activating a large high current automotive relay - again with an IN4004 across the solenoid pins (the horn probably draws about 5A).
I really don't want a separate battery for the PICAXE if it can be avoided!
Re metal box - I do have the relay currently mounted inside the same plastic box, so reading thru the posts, I suspect this will be the most likely issue, but before I get started on a big rebuild to give it a try by remotely mounting the relay, I thought I might try for any suggestions for something else I might have missed.
Cheers
Bryan.