henninggs
Member level 2
Hi
Let's say I have 10 nodes/microcontrollers on the same data bus. The nodes are powered by the same power line (Was thinking 24v). I was wondering if I could use this shared power line to send a signal when a node wants to use the data bus.
I was thinking this:
1. When a node is turned on it continuously measures the voltage on the power line until the voltage has been stable for 500ms.
This voltage level is now referred to as the idle voltage.
2. When a node wants to use the data bus, it alters the voltage on the power line by lets say 5%
3. After waiting some random amount of milliseconds it measures the voltage again. If the node is the only one asking to use the data bus,
the voltage should now be off by 5% compared to the idle voltage. It then starts to use the data bus.
4. If the voltage measured is off by more than 5% some one else is asking for the data bus and the node will not use the data bus. It will try again later.
5. The voltage altering mechanism is turn off leaving the power line at the idle voltage.
Would this work - and how could it be implemented ?
Let's say I have 10 nodes/microcontrollers on the same data bus. The nodes are powered by the same power line (Was thinking 24v). I was wondering if I could use this shared power line to send a signal when a node wants to use the data bus.
I was thinking this:
1. When a node is turned on it continuously measures the voltage on the power line until the voltage has been stable for 500ms.
This voltage level is now referred to as the idle voltage.
2. When a node wants to use the data bus, it alters the voltage on the power line by lets say 5%
3. After waiting some random amount of milliseconds it measures the voltage again. If the node is the only one asking to use the data bus,
the voltage should now be off by 5% compared to the idle voltage. It then starts to use the data bus.
4. If the voltage measured is off by more than 5% some one else is asking for the data bus and the node will not use the data bus. It will try again later.
5. The voltage altering mechanism is turn off leaving the power line at the idle voltage.
Would this work - and how could it be implemented ?