Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Way to check if a motor is running.

Status
Not open for further replies.

adahany

New Member
I am making a BLDC motor controller and I need an easy function that would check if the motor is running or not at any given time. I was thinking about measuring the frequency of the hall sensors but I would like to know if there is an easier way to do this. btw I am using PIC16F788.
Thank you
 
Since you really only need to monitor one (1) hall effect, that sounds like the easiest "is the motor actually turning" test. One I/O pin used and a few lines of code. And it would not have to be a continuous check (chewing up processor resources), rather just every so often according to your external process timing needs controlled by motor rotation or speed.
 
Since you really only need to monitor one (1) hall effect, that sounds like the easiest "is the motor actually turning" test. One I/O pin used and a few lines of code. And it would not have to be a continuous check (chewing up processor resources), rather just every so often according to your external process timing needs controlled by motor rotation or speed.
Can you give an example of how I would have to do this check? without using any CCP capable ports ( i am out of them in my design) Thanks
 
If you occasionally check the RBIF bit, it will be set if there is a changing signal on RB0. Don't forget to clear it each time it's set.

Mike.
 
Read the state of one of the hall sensors, at a faster rate than what its likely to change at while running full speed, measure the amount of time it takes to change state, if its over a certain limit (lowest likely freq) then assume its stopped.
This process works well if your using interrupts.
 
You can pick up the noise from the motor by adding 100n caps to the leads and to a detecting circuit.
 
Status
Not open for further replies.

Latest threads

Back
Top