- Sat Mar 06, 2010 8:45 pm
#95540
I've been learning about serial communications for a project, but I think my wiring situation won't really allow clean communication. I have two irrigation controller wires traveling over 1200 ft with multiple connections on my common wire. Clearly, I cannot use a twisted pair or any network structure since irrigation stations aren't laid-out in anyway similar to the rs-XXX protocols. I need to transmit a number, 0-99 say, from one arduino to another. I've looked into half-duplex rs-485, but I don't have twisted pair wires, as I've mentioned.
I was thinking I could use an opto-isolator to level up for the distance, but is there a way to code the arduino to send a number of pulses and then send some sort of terminator before repeating so another arduino could read it and count out a number? I assume if I have it repeat, it could use some sort of error correction by averaging the counts. I don't need crazy fast speeds...10 repeats per second would be plenty fast.
Anyone have any ideas so I don't have to re-invent serial communication?
Thanks
I was thinking I could use an opto-isolator to level up for the distance, but is there a way to code the arduino to send a number of pulses and then send some sort of terminator before repeating so another arduino could read it and count out a number? I assume if I have it repeat, it could use some sort of error correction by averaging the counts. I don't need crazy fast speeds...10 repeats per second would be plenty fast.
Anyone have any ideas so I don't have to re-invent serial communication?
Thanks