Hi all.
I want to connect several DIFFERENT PICAXE's to a common control line, but just connecting the inputs(via the resistors) to the line, will muck up the resistor value, unless you know exactly how many are going to be connected - the resistors in parallel(via the bus cable) thing.
So I just want to put a 914 in front of each input - see the attached GIF file.
http://img27.imageshack.us/img27/5118/picaxeclocklineinputse.gif
This seems to work fine on the breadboard, and each input keeps it's 10k across the input to deck, but I would like others here to make sure I am on the right track with this, as there will be up to 12 seperate units on the one line.
What happens, is that each PICAXE that wants to send it's message checks this line to see if it is active, and if it is, then that unit knows that another unit is talking on the data-bus, so it waits before trying again(in an endless loop) until it sees this line is inactive, then it sends it's message, after first pulling the control line high itself, to signal to any others that IT is now using the bus(therefore, the others then wait, if they want to talk too).
Very simple, but effective, and works brilliantly on the prototyping breadboard and setup to prevent any data-collisions(with four picaxe's), even if I deliberately set two off at the same time, my only concern is basically if there is a limit to how many I can couple up like this - if I can get my 12, i'll be happy. Essentially, I am trying to decide if I can go ahead, without actually building a network of 12 to play with, and based on the testing of 4 or so, it should be expandable out to 12 without any major problem, correct?
Each unit only sends 6 bytes, so there should be no problems with long messages.
I want to connect several DIFFERENT PICAXE's to a common control line, but just connecting the inputs(via the resistors) to the line, will muck up the resistor value, unless you know exactly how many are going to be connected - the resistors in parallel(via the bus cable) thing.
So I just want to put a 914 in front of each input - see the attached GIF file.
http://img27.imageshack.us/img27/5118/picaxeclocklineinputse.gif
This seems to work fine on the breadboard, and each input keeps it's 10k across the input to deck, but I would like others here to make sure I am on the right track with this, as there will be up to 12 seperate units on the one line.
What happens, is that each PICAXE that wants to send it's message checks this line to see if it is active, and if it is, then that unit knows that another unit is talking on the data-bus, so it waits before trying again(in an endless loop) until it sees this line is inactive, then it sends it's message, after first pulling the control line high itself, to signal to any others that IT is now using the bus(therefore, the others then wait, if they want to talk too).
Very simple, but effective, and works brilliantly on the prototyping breadboard and setup to prevent any data-collisions(with four picaxe's), even if I deliberately set two off at the same time, my only concern is basically if there is a limit to how many I can couple up like this - if I can get my 12, i'll be happy. Essentially, I am trying to decide if I can go ahead, without actually building a network of 12 to play with, and based on the testing of 4 or so, it should be expandable out to 12 without any major problem, correct?
Each unit only sends 6 bytes, so there should be no problems with long messages.
Last edited: