G'day guys, need some help with coding and what not for a project on mine.
You see the problem is that I'm building a rally car and I am going abit overboard with the weight stripping thing. I want to remove the extensive wiring from the body harness (controls stuff like wipers, lights etc..) and replace it with a serial network of pics (master controler and slave nodes).
A 20 pin part has enough inputs of correct sorts (master) and 8 pin parts have enough outputs for the various places a node will be required (1 pic per tail light cluster, 1 per head lamp bank etc.).
Now I've completed some basic projects with pics but nothing requiring serial coms to another pic. I understand the basic ideas behind it but I want to make it slightly more complex than just the master sending a command and hoping that the node that is supposed to recieve it is still working.
So I thought a 'heartbeat' from each node sent to the master to say 'yo i'm here' only sent when the master asks 'yo are you there?'. I suppose 2 serial lines can be used (transmit and recieve) and to prevent collisions the slaves will only transmit when asked to do so by the master.
Any ideas would be greatly appreciated!
Edit!: Before anyone says anything, yes... I know I put CAN Network. I myself laugh at people who say ATM machine >: (
You see the problem is that I'm building a rally car and I am going abit overboard with the weight stripping thing. I want to remove the extensive wiring from the body harness (controls stuff like wipers, lights etc..) and replace it with a serial network of pics (master controler and slave nodes).
A 20 pin part has enough inputs of correct sorts (master) and 8 pin parts have enough outputs for the various places a node will be required (1 pic per tail light cluster, 1 per head lamp bank etc.).
Now I've completed some basic projects with pics but nothing requiring serial coms to another pic. I understand the basic ideas behind it but I want to make it slightly more complex than just the master sending a command and hoping that the node that is supposed to recieve it is still working.
So I thought a 'heartbeat' from each node sent to the master to say 'yo i'm here' only sent when the master asks 'yo are you there?'. I suppose 2 serial lines can be used (transmit and recieve) and to prevent collisions the slaves will only transmit when asked to do so by the master.
Any ideas would be greatly appreciated!
Edit!: Before anyone says anything, yes... I know I put CAN Network. I myself laugh at people who say ATM machine >: (
Last edited: