weegee
New Member
Hi
can anyone suggest a simple way of connecting between 1 and 7 Pic's (16f629) on a 1 or 2 wire bus. The data flow is one way only (from a host to the pics) i need to be able to send about 16 bits (including a 3 bit ID) along the bus, and when a packet is detected and the ID matches then the processor reacts (moves a servo), but does not interfere with the message in any way.
There may be more than 1 'reciever' containing the same id, and in that situation all that have the matching id should react simultainiously.
If i send the ID=0 then ALL units on the bus should respond.
I dont expect anyone to design this for me, just provide me with some advice on what sort of bus i should use, eg simple data + clock lines, ic2, spi, etc
I also need to feed the power to these 'slaves' (1st could be up to 1m from host, others daisy chained a max of 30cm apart) .
How would i do this, the slave will have a pic, and a servo in it, im looking for help with my options here, eg, can i feed 7.2v down a wire, and feed the servo, and tap that through a LDO regulator to feed the pic. As above there could be up to 7 of these slaves on one wire.
can anyone suggest a simple way of connecting between 1 and 7 Pic's (16f629) on a 1 or 2 wire bus. The data flow is one way only (from a host to the pics) i need to be able to send about 16 bits (including a 3 bit ID) along the bus, and when a packet is detected and the ID matches then the processor reacts (moves a servo), but does not interfere with the message in any way.
There may be more than 1 'reciever' containing the same id, and in that situation all that have the matching id should react simultainiously.
If i send the ID=0 then ALL units on the bus should respond.
I dont expect anyone to design this for me, just provide me with some advice on what sort of bus i should use, eg simple data + clock lines, ic2, spi, etc
I also need to feed the power to these 'slaves' (1st could be up to 1m from host, others daisy chained a max of 30cm apart) .
How would i do this, the slave will have a pic, and a servo in it, im looking for help with my options here, eg, can i feed 7.2v down a wire, and feed the servo, and tap that through a LDO regulator to feed the pic. As above there could be up to 7 of these slaves on one wire.