cancel
Showing results for 
Search instead for 
Did you mean: 

how to power a 24volts electromagnet

suhfi
Senior

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.

21 REPLIES 21

@suhfi wrote:

where can i configure the magnet has to pick or place to?.


What do you mean by that?

The magnet is either on or off - if you also want it to move, that's a whole extra part of your project


@suhfi wrote:

 i can see the CPU out pin, can you show or name where is it in the board. 


That's up to you to decide, and write your software accordingly.

 


@suhfi wrote:

 i am a newbie


I think you need to take a few steps back, and start with some basics

https://community.st.com/t5/stm32-mcus-products/for-better-learning-stm32-programming-and-debugging/m-p/719485/highlight/true#M260696

https://www.avrfreaks.net/s/topic/a5C3l000000UYGFEA4/t145493?comment=P-1392529 

ST has a YouTube channel with many getting started videos ...