Other Parts Discussed in Thread: ALP
Hi team,
Attached you will find C code source and the log file.
To drive the motor, we use:
- A first timer (interrupt every 5 ms) to do a soft start
- A second timer/counter to count the pulse sent by a tachymeter
- An optical switch to determine the initial position
From the initial position, we try to have 8 rotations of 45°. Each rotation starts with a soft start (driven by the first timer) and continue until the second timer interrupts to do the soft stop.
The motor is started and after, all is driven from interrupts.
The application is waiting for a semaphore to be posted when 45° is done or when initial position is reached. We are having an issue with reading the value where it resets (goes to 0 instead of the actual reading).
Best,
Luke
