Please read. Encoder sensor

Good morning,
I wanted to know something. I have a rotating disk, I need to place two sensors, one at 0 ° and one at 180 °. When the sensor passes above 0 ° it must turn on my electromagnet and when it passes above 180 ° it must reverse the electromagnet. What do I need to do this, how can I do? thank you

You could do the sensing using 2 fixed Hall sensors and a magnet on the rotating disk depending on the size and speed of the disk

What size is the disk and how fast is it rotating ?

1 Like

Hello, do yourself a favour and please read How to get the best out of this forum and modify the title of your post to be something reasonable describing your ask. Don't use capital letters, it's considered shouting.

You can embed a magnet in the disc and use a reed switches or Hall effect sensors to detect when it passes above the sensor

1 Like

The disc is 10 cm and the maximum rotation is 15000 rpm. What device can I use to reverse the polarity when the sensor passes over the 0 ° and 180 ° point? Arduino or what? Thanks

The disc is 10 cm and the maximum rotation is 15000 rpm. What device can I use to reverse the polarity when the sensor passes over the 0 ° and 180 ° point? Arduino or what?

@UKHeliBob @J-M-L I wait an answer.
Thanks

it must turn on my electromagnet

which one ? how is it wired, controlled?

provide more info about your setup

1 Like

@J-M-L @UKHeliBob I have two discs, the hall effect sensor is placed on disc 1 (fixed), two magnets are placed on disc 2, one at 0 ° and the other at 180 °. When the sensor passes over the magnet at 0 ° the polarity of the electromagnet must be + -, when it passes over the magnet at 180 ° the polarity must be reversed (with a current inverter) and becomes - +. The question is: which hall sensor should I use for this scheme (maximum rpm 15,000) and which control system should I use to check the sensor and reverse the polarity when it passes over? (Arduino ....?) Thanks so much.
In the drawing there is the diagram

it's a simple blink program: every time you detect a magnet you invert a pin that controls the relay driving your electromagnet (or an H-Bridge, I'm unsure if you want to cut power or really inverse)

the sensor could be a hall effect sensor, like a AH1815 (Non-Latching)

at 15000 RPM you have a 500 Hz pulse basically which is not super fast, the sensor probably is reacting in a few µs (find the datasheet for your module) so could handle frequencies around 100 kHz.. So really 500Hz is no problem

1 Like

@J-M-L And what tipe of board can i buyer for command the circuit? Arduino?

Any Arduino will do. Go for a Nano or Micro if size matters
to drive your electromagnet, it will depend on its own requirements (current / power needs ?)

And what type of arduino can i use?
Thanks

As advised

I’d go for LED and photodiode on analog pin and a disk with a hole