2024-10-06 10:29 AM
i am using electromagnetic sensor which is 24volts. in that i only have the connections for power voltage(positive) and the signal. when i am trying to power it with my stm32f411re nucleo board i can see that the power isn't sufficient. so can i use a 24volts power supply to that and the negative to the stm32f411re nucleo board ground.
so i was thinking the connections would be like,
power supply positive to the sensor positive, signal to the stm32 nucleo board. power supply negative to the ground of the stm32 board. would these connections make sense, or would it fry my board?
is there any quick connections to power the sensor with 24volts. quickest answer is much appreciated. thank you in advance.
2024-10-06 11:18 AM - edited 2024-10-06 11:20 AM
You kill the cpu !
Most simple input:
In industrial use standard is to use an opto-coupler ; to separate also the ground of the low level circuit/cpu from outside. If you have the same ground, just shown 2 resistors are fine.
2024-10-06 07:48 PM
i didn't get you. could you show me the schematic diagram of how to connect 24volts electromagnet sensor to the stm32f411re nucleo board. As i have to read the sensor values, and has to give the power to the sensor.