Position Control for BLDC motors

Hi,

I'm working on a project where I would like to drive a geared dc motor with hall sensors.

The material I have is the following:

If possible I would like to send angles as position commands. I want to map this to a range of angles (0° - 360°). I want to write a routine where it goes through different positions. For example, start at 0° then drive forward to 60°, then wait for 1 s then drive 30° in the backward direction and so on.

Unfortunately, I have no clue how to translate this into code. I have looked all over but all I can find is speed related.

I'm grateful for any help!
 
Top