Posted by
Unknown
at
10:34 AMon Sunday, January 5, 2014
Hi, As I'm starting with CADSoft Eagle software, I wanted to make a simple 2 motor driver board. This board can control 2 DC motors using the L298 circuit from ST.
You can find the complete data-sheet of the circuit here
Posted by
Unknown
at
12:03 PMon Saturday, January 4, 2014
The STM32F4 discovery is a wonderful board but it is really not freindly when testing with all its ugly male connectors that it is impossible to put it in a lab board.
I don't know if anyone did this before, but I made a small adapter in eagle for this board so it can be easily integrated with other test or prototyping project or it can be simply used in a hole PCB board.
Hi, Stepper motors are very commun in many applications, they are widely used in printers scanners and many other equipements thanks to their easy control.
I really advice you to understand how bipolar stepper works before testing the following code. Start from here !
The following code is for controlling a bipolar stepper motor using STM32F4 discovery board. I used a l293D for power interface between the stepper and the board like the following image:
And The I used this simple code to control my stepper in one direction with fixed speed using half step control.
Posted by
Unknown
at
1:07 PMon Thursday, January 2, 2014
Hello, This time I'll give you a short tutorial about how to use timers with the STM32. Timers are very useful when it comes to make a precise period of time independantly from your main loop execution.
The stm32F4 has many timers each one with a specific need. I'm just going to use the Timer 2 to make an interruption each 0.25 sec. I use a C# program to calculate what values to put in the prescaler and the periode to get my required interruption time. https://www.mediafire.com/?bq21q5qd7frcvba
The code has comments in it but if there is something that is not clear explained in the comments below, I'll be happy to answer.
void TIM2_IRQHandler(void){ static short i = 0; if (TIM_GetITStatus(TIM2, TIM_IT_Update) != RESET) { TIM_ClearITPendingBit(TIM2, TIM_IT_Update); GPIO_WriteBit(GPIOD,GPIO_Pin_13,i++); GPIO_ToggleBits(GPIOD, GPIO_Pin_14); } }