Hi there!
I've purchased several of there relay modules to work with my picaxes: http://www.ebay.com/itm/2-Channel-Relay-Module-for-Arduino-PIC-ARM-DSP-AVR-Electronic-5V-/121058681881?pt=LH_DefaultDomain_0&hash=item1c2fa8e419
The idea is to control a conversion on my outside blinds, i have manual outside blinds like these:
that wore originally manual, (you had to pull a strap) and i converted them to electrical. Got some good torque slow electrical 220v motors that work great with them.
So next idea? use my 08M2 picaxe to control them
the relay module is really simple (or so it seams..) you just connect outputs of the picaxe to it, and they trigger the relays to close bigger currents.
I also use some magnet switches on the blinds so the picaxe can tell when the blinds get to the top ot all the way down.
So on the picaxe i have:
INPUTS
- 1x switch to control up and down (alternating between, up - stop - down - stop ...)
- 2x magnetic sensors to sense position.
OUTPUTS
-2x outputs for 2 relays
the relays are wired so that they inverse movement. if you trigger relay 1 the blinds go UP, if you trigger relay 2, the blinds go down. never trigger both at the same time.
Programing is simple, and not the problem, because i've reduced the program to just basic functions and the problems persists.
PROBLEM:
what happens a few times is the relays go nuts! going ON and OFF sometimes alternating very fast..
But it makes the picaxe to go crazy to.. button does not respond properly :S
And THAT ONLY happens when I've got the power wires (220v) hooked up to them..
IS there any way the load on the relays are influencing the picaxe?
What can I do to avoid that?
Also:
if the sensor wires are too long (6-8 meters is all i need), the picaxe acts has the sensors have been triggered and they have not.
any way to prevent this too?
Thanks everybody!
I've purchased several of there relay modules to work with my picaxes: http://www.ebay.com/itm/2-Channel-Relay-Module-for-Arduino-PIC-ARM-DSP-AVR-Electronic-5V-/121058681881?pt=LH_DefaultDomain_0&hash=item1c2fa8e419
The idea is to control a conversion on my outside blinds, i have manual outside blinds like these:
that wore originally manual, (you had to pull a strap) and i converted them to electrical. Got some good torque slow electrical 220v motors that work great with them.
So next idea? use my 08M2 picaxe to control them
the relay module is really simple (or so it seams..) you just connect outputs of the picaxe to it, and they trigger the relays to close bigger currents.
I also use some magnet switches on the blinds so the picaxe can tell when the blinds get to the top ot all the way down.
So on the picaxe i have:
INPUTS
- 1x switch to control up and down (alternating between, up - stop - down - stop ...)
- 2x magnetic sensors to sense position.
OUTPUTS
-2x outputs for 2 relays
the relays are wired so that they inverse movement. if you trigger relay 1 the blinds go UP, if you trigger relay 2, the blinds go down. never trigger both at the same time.
Programing is simple, and not the problem, because i've reduced the program to just basic functions and the problems persists.
PROBLEM:
what happens a few times is the relays go nuts! going ON and OFF sometimes alternating very fast..
But it makes the picaxe to go crazy to.. button does not respond properly :S
And THAT ONLY happens when I've got the power wires (220v) hooked up to them..
IS there any way the load on the relays are influencing the picaxe?
What can I do to avoid that?
Also:
if the sensor wires are too long (6-8 meters is all i need), the picaxe acts has the sensors have been triggered and they have not.
any way to prevent this too?
Thanks everybody!