I have done a lot of research on this Forum and the PICAXE manuals and am now at a total lose as to which way to go for communications in an application I am working on. Here is the overall view of what I am trying to accomplish or believe I need to accomplish:
- Overall project is for greenhouse/aquaponics control
- One 08m2 to simply read (via i2c) the time (right now hour only) from a DS1307 module
- Above 08m2 used as a Master to send the hour to each of 4 to 8 other PICAXE Slaves that control lighting, pumps, solenoid valves, etc.
- Each Slave (some 08m2, some14m2) receive the hour from the Master to use in their timer code
- I am using multi-tasking on the Slaves at present:
Start0: being the Slaves main program, with subroutines
Start1: reading in the hour from the Master
I have read here about serial communications in the PICAXE Manual 3 (page 43) using RS232(MAX232).
On the Forum here (entry #9) about RS485 and (entry #6) about serout/serin.
On the Forum here (entry #8) about using serout/In, pwmout, and servo.
Questions:
1) Which method would be best for this application and a newbie’s level of expertise?
2) What are the pros and cons that I need to look out for if using one method over another?
3) I have more of a software background, how would the communications part be wired up?
There is a good amount of info on here for this subject so I appologize ahead of time if I am beating a dead horse, just need a little extra help to get me moving in the right direction.
Thanks to all for checking this out!
- Overall project is for greenhouse/aquaponics control
- One 08m2 to simply read (via i2c) the time (right now hour only) from a DS1307 module
- Above 08m2 used as a Master to send the hour to each of 4 to 8 other PICAXE Slaves that control lighting, pumps, solenoid valves, etc.
- Each Slave (some 08m2, some14m2) receive the hour from the Master to use in their timer code
- I am using multi-tasking on the Slaves at present:
Start0: being the Slaves main program, with subroutines
Start1: reading in the hour from the Master
I have read here about serial communications in the PICAXE Manual 3 (page 43) using RS232(MAX232).
On the Forum here (entry #9) about RS485 and (entry #6) about serout/serin.
On the Forum here (entry #8) about using serout/In, pwmout, and servo.
Questions:
1) Which method would be best for this application and a newbie’s level of expertise?
2) What are the pros and cons that I need to look out for if using one method over another?
3) I have more of a software background, how would the communications part be wired up?
There is a good amount of info on here for this subject so I appologize ahead of time if I am beating a dead horse, just need a little extra help to get me moving in the right direction.
Thanks to all for checking this out!