The past six months busy mess, recently made one machine micro clinic feeling very upset ah, hurried over and quietly playing word will adjust.
Happen to the tone control TB6600 + stm32 + 42's, had previously been adjusted five-phase four-wire, but now need to use the cover off and landing 42 motor tune console, then began to engage in it. I do not intend equipment products of use TB6600, with 8825 (8825 tune through my re-map), a stage hand on this!
Wiring: a common cathode connection wiring DIR- PUL- and GND; DIR + contact GPIOA7, PUL + contact GPIOA8 ,.
DIP switch: 000,110. Plainly top three tone speed, the three modulated current (actual motor current transfer, a large heat will severe hot)
Directly on the code, the template code for an LED ministm32 reform
#include "led.h"
#include "delay.h"
#include "sys.h"
//ALIENTEK miniSTM32¿ª·¢°åʵÑé1
//ÅÜÂíµÆʵÑé
//¼¼ÊõÖ§³Ö£ºwww.openedv.com
//¹ãÖÝÊÐÐÇÒíµç×ӿƼ¼ÓÐÏÞ¹«Ë¾
int main(void)
{
int x ;
delay_init(); //ÑÓʱº¯Êý³õʼ»¯
LED_Init(); //³õʼ»¯ÓëLEDÁ¬½ÓµÄÓ²¼þ½Ó¿Ú
while(1)
{
GPIO_SetBits(GPIOA,GPIO_Pin_7);//LED1Êä³ö¸ß
for(x = 0; x < 10000; x++) {
GPIO_ResetBits(GPIOA,GPIO_Pin_8); //LED0Êä³öµÍ
delay_ms(5);
GPIO_SetBits(GPIOA,GPIO_Pin_8);//LED0Êä³ö¸ß
delay_ms(5);
}
GPIO_ResetBits(GPIOA,GPIO_Pin_7);
for(x = 0; x < 10000; x++) {
GPIO_ResetBits(GPIOA,GPIO_Pin_8); //LED0Êä³öµÍ
delay_ms(5);
GPIO_SetBits(GPIOA,GPIO_Pin_8);//LED0Êä³ö¸ß
delay_ms(5);
}
}
}