cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32 Encoder interface

cheeleong_clwai
Associate II
Posted on July 12, 2011 at 09:44

Nid help in Stm32 Encoder Interface, to turn the motor in clockwise and anti-clockwise direction. Thanks 

2 REPLIES 2
munk2k
Associate II
Posted on August 17, 2011 at 16:28

You need to elaborate more on what exactly it is you want?

Firstly what sort of encoder are you using? what sort of motor controller? and what sort of motor?

Typically if you know your motor controller configuration you will know what will make it go forwards and backwards so that should never be an issue.

muratterzi2
Associate II
Posted on August 18, 2011 at 12:15

you can use hall interface with timer2 , timer3 or timer4 interrupt handler with xored inputs. this means every xored transition of hall sensor generates interrupt and this interrupt triggers timer1 com (commutation) event. according to this com event you can generate various type of signals such as pwm-on, on-pwm, pwm-pwm for upper and lower mosfet gate signals.you can find sufficient information at 

http://www.google.com.tr/url?sa=t&source=web&cd=1&ved=0CCQQ_hIwAA&url=http://open-bldc.org/&ei=GOZMTqCJKq3c4QTtj6CzBw&usg=AFQjCNGnDAi_NKzkoVYseutFBiSP_MAEZw