Electronics > Projects, Designs, and Technical Stuff

Priority-based series-connected switches decoding with ADC?

(1/2) > >>

ricko_uk:
Hi,
with reference to the attached schematic, there are three switches which are normally closed for the power stage of this system to work. The voltage can be as high as 24V and the micro is 3V3. The 100K and 10K voltage divider resistors are high vlaue to avoid turning on the solid state relay. The solid state relay's LED trigger current is shown to be 3mA so I assume a current of 0.5mA is low enough to guarantee the OFF state. SSR datasheet is this: https://www.mouser.co.uk/datasheet/2/408/TLP241A_datasheet_en_20200217-1075431.pdf


But for safety reasons and also to provide user feedback, I need to monitor the status of each switch from a micro. Because they are in series - unless I am missing something - it is not possible to monitor every combination. First question is, is that correct? Or perhaps by adding high value resistors across the switches (as shown) that can be achieved?

But by assigning priority whereby the switches have decreasing priority from left to right (with reference to the schematic) so that if a higher priority switch is open then the status of the other ones does not matter, then an acceptable compromise can be achieved.

My second question, question is about resistor values with the compromise above. To spread the reading of the various combinations relatively wide apart for clear reading by the ADC even with large tolerances of the resistors, how would you choose the resistor values? Perhaps some exponential relationship?

thank you :)

Someone:

--- Quote from: ricko_uk on May 16, 2022, 10:24:54 pm ---The 100K and 10K voltage divider resistors are high vlaue to avoid turning on the optocoupler. The opto's minimum current to turn on the opto is 0.5mA.
--- End quote ---
Is that a specified minimum turn on current in the data sheet? Most opto couplers are highly variable over batch/life/drive conditions.

ricko_uk:
Thank you Someone,

it is actually a solid state relay (I corrected the wording in the OP). In the datasheet's ( https://www.mouser.co.uk/datasheet/2/408/TLP241A_datasheet_en_20200217-1075431.pdf ) first page it says trigger current is 3mA so my assumption is that 0.5mA is low enough to be off.

I cannot see any other infos about it. Is my assumption correct?

Thank you

Someone:

--- Quote from: ricko_uk on May 16, 2022, 11:47:33 pm ---I cannot see any other infos about it. Is my assumption correct?
--- End quote ---
Back to school for you:

--- Quote ---IF smaller than minimum IFC is required in the design to ensure that the relay operates [into the OFF-State]
--- End quote ---
Which for those parts is lower than your (best case!) bleed. But those parameters depend on the load too, optos are a long way from "ideal" or easy to use.

ricko_uk:
Got it now. Thank you :)

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version