Hello,
I'm planning on building a system where there is one main controller and several (0-5) devices. Each of these devices has two states. I would like to know from the main controller how many external devices are connected and how many of them are active. I don't care which device is active. This detection should be done fairly simply. Using at most 4 cables (+, -, data, data).

I was thinking of a system where each device pulls a certain amount of current, which would cause a voltage drop over a resistor. This voltage would then tell how many devices are connected.
I was thinking of implementing the current source by using a JFET and a single resistor but I don't know if the spread of current between the JFETS would cause for example two devices to be seen as three.
My second idea was to use a voltage regulator with a resistor (Also only two components) as a current source, but I really don't know if this is recommended.

For the detection of the amount of active devices I thought of something like the above. Here the current will only flow when the device has an active low. According to the datasheet of the device (AT42QT1010), the output pin can sink/source up to 2mA.
Hopefully someone can tell me if this is a good approach and if so, how I could best implement the current source. Many thanks,
Regards, Vytas
I'm planning on building a system where there is one main controller and several (0-5) devices. Each of these devices has two states. I would like to know from the main controller how many external devices are connected and how many of them are active. I don't care which device is active. This detection should be done fairly simply. Using at most 4 cables (+, -, data, data).

I was thinking of a system where each device pulls a certain amount of current, which would cause a voltage drop over a resistor. This voltage would then tell how many devices are connected.
I was thinking of implementing the current source by using a JFET and a single resistor but I don't know if the spread of current between the JFETS would cause for example two devices to be seen as three.
My second idea was to use a voltage regulator with a resistor (Also only two components) as a current source, but I really don't know if this is recommended.

For the detection of the amount of active devices I thought of something like the above. Here the current will only flow when the device has an active low. According to the datasheet of the device (AT42QT1010), the output pin can sink/source up to 2mA.
Hopefully someone can tell me if this is a good approach and if so, how I could best implement the current source. Many thanks,
Regards, Vytas


