Hello picaxe people!
I have a lot of projects done with the 08M2. simple stuff, some domotic gizmos, some simple robots and some dataloggers with sensors.
My latest 08M2 project was a controller for some electric blinds outside the windows of my living room and bedroom (i have a link here about that somewhere, thanks for all your help on that project). I converted them to electric and it was a cool way to control them.
They work great, time for an upgrade.
I want to link all my domotic projects together so they can talk to each other and they can be controlled online.
I've been searching online and I found out that my beloved 08M2 can't handle I2C (at least on the server side). I'm learning on i2C, and seams the best way to do it. I could run only two wires thru the hole house and connect my projects to them.
I have an Arduino 1280 with an Ethernet shied, That is now connected to the switch of my picaxe blinds controller, so i can control the blinds up and down online on the computer or my iphone. and it works great.
(Since I'm using the serial out pin as an output, i could not use serial communication. An arduino output is connected to a relay that operated the picaxe input switch - same wall switch i use to activate de blinds).
So...
What I has thinking was... Use the arduino with the ethernet shield to be the central device, acting as a Master, and connect the blinds gizmo and all other in the future to it thru I2C using the same 2 wires.
So.. Ok I should scrap the 08M2...
i have some 18M2+ these can handle I2C, right? I'm building a simple generic PCB circuit with the download circuit and some resistors for the pullups on the inputs.
Questions? I dont mind if i do, thank you !
first of all, is this a good idea? is there a problem in Arduino-picaxe I2C communication?
Second, the 2 wires running thru the house, Its a small house, they may run along side the normal 220v power lines. Is this a problem? What is the best way to shield them, and what is the best type of wire? I have a lot of CAT5 ethernet cable, maybe i should use one of the twisted pairs (good for shielding?)) , or some speaker wire is a better idea? How long can these wires run?
About the the power supplies to each circuit, can i run along side with the wire some 12 volt line to feed all circuits, and locally converting it to 5v for each circuit? or even better, can i run a 5-6 volt line along side the I2C wires to power all circuits? or that is not a good idea?
On the blinds circuit for example, I would like for the arduino to communicate with the picaxe not only to send commands (up-stop-down) but also some feedback on its state. But all circuits would run on the same principle.
It will be my biggest project so far, so I would like to detect the major problems before I begin.
Any input would be greatly appreciated .
I have a lot of projects done with the 08M2. simple stuff, some domotic gizmos, some simple robots and some dataloggers with sensors.
My latest 08M2 project was a controller for some electric blinds outside the windows of my living room and bedroom (i have a link here about that somewhere, thanks for all your help on that project). I converted them to electric and it was a cool way to control them.
They work great, time for an upgrade.
I want to link all my domotic projects together so they can talk to each other and they can be controlled online.
I've been searching online and I found out that my beloved 08M2 can't handle I2C (at least on the server side). I'm learning on i2C, and seams the best way to do it. I could run only two wires thru the hole house and connect my projects to them.
I have an Arduino 1280 with an Ethernet shied, That is now connected to the switch of my picaxe blinds controller, so i can control the blinds up and down online on the computer or my iphone. and it works great.
(Since I'm using the serial out pin as an output, i could not use serial communication. An arduino output is connected to a relay that operated the picaxe input switch - same wall switch i use to activate de blinds).
So...
What I has thinking was... Use the arduino with the ethernet shield to be the central device, acting as a Master, and connect the blinds gizmo and all other in the future to it thru I2C using the same 2 wires.
So.. Ok I should scrap the 08M2...
i have some 18M2+ these can handle I2C, right? I'm building a simple generic PCB circuit with the download circuit and some resistors for the pullups on the inputs.
Questions? I dont mind if i do, thank you !
first of all, is this a good idea? is there a problem in Arduino-picaxe I2C communication?
Second, the 2 wires running thru the house, Its a small house, they may run along side the normal 220v power lines. Is this a problem? What is the best way to shield them, and what is the best type of wire? I have a lot of CAT5 ethernet cable, maybe i should use one of the twisted pairs (good for shielding?)) , or some speaker wire is a better idea? How long can these wires run?
About the the power supplies to each circuit, can i run along side with the wire some 12 volt line to feed all circuits, and locally converting it to 5v for each circuit? or even better, can i run a 5-6 volt line along side the I2C wires to power all circuits? or that is not a good idea?
On the blinds circuit for example, I would like for the arduino to communicate with the picaxe not only to send commands (up-stop-down) but also some feedback on its state. But all circuits would run on the same principle.
It will be my biggest project so far, so I would like to detect the major problems before I begin.
Any input would be greatly appreciated .