Skip to main content
8 events
when toggle format what by license comment
Apr 5, 2023 at 21:48 comment added periblepsis @SergioPiccione The resistors mentioned by Andy are fine. You 'could' add a BJT (or two or three, etc.) The extra BJT allows me another degree of flexibility and the possibility to protect your I/O pin from a single part failure (short, for example.) But you've not mentioned anything to suggest a need for that. I think the divider will be fine. Just don't use a screwdriver and accidentally short out the upper resistor in the divider!
Apr 5, 2023 at 20:28 comment added Sergio Piccione i will consider that, you think an NPN common emitter BC548 could work ?
Apr 5, 2023 at 20:10 comment added periblepsis @SergioPiccione Oh. Then Andy's suggestion about a divider could work. Or a different circuit using another BJT. Personally, I'd use an added BJT circuit. But it can be made to work with dividers.
Apr 5, 2023 at 20:09 comment added Sergio Piccione nono i have access to the correct voltage supply, just interested in the output
Apr 5, 2023 at 20:08 comment added periblepsis @SergioPiccione Then you will need a 12 V to 24 V supply. No getting around that, without deciding to first ignore the specifications and then perform some testing on the device to see if it can be made to work on 5 V. Do you have access to the appropriate voltage supply? Or only to 5 V?
Apr 5, 2023 at 20:07 comment added Sergio Piccione yes i know i buyed the wrong one, too late for that, i was asking if i could fix that, so i have to put a voltage divider, i was thinking to a op amp inverter with negative reaction
Apr 5, 2023 at 19:58 history edited periblepsis CC BY-SA 4.0
added 2 characters in body
Apr 5, 2023 at 19:38 history answered periblepsis CC BY-SA 4.0