Home > other >  Using CH304C and STM32F030F4P6 and 1841 h (L298N) build positive &negative circuit dc motor system
Using CH304C and STM32F030F4P6 and 1841 h (L298N) build positive &negative circuit dc motor system

Time:09-29

1, hardware preparation:
(1) CH304C USB to TTL serial ISP module
(2) STM32F030F4P6 minimum system board
(3) MX1616 1841 h (or L298N) dc motor drive board
(4) the micro USB cable 1, micro USB charging line 1, dupont line 10, 5 v gear motor 1,

CodePudding user response:

2, the hardware connection
(1) the USB cable connect computers and CH304C board,
(2) the CH304C plate with four dupont line and 3.3 V STM32F030F4P6 minimum system board, GND, TxD, RxD connected, it is important to note that the TxD CH304C plate connected to the STM32 board RxD, RxD CH304C board connected to the STM32 board TxD, or burning program will fail!
(3) the USB charging line on a computer or power adapter, then head of micro USB power supply to the STM32 minimum system board,
(4) with 2 dupont line from the STM32 minimum system board, connected to the MX1616 driver board, STM32 minimum system board + 5 v to the driver board, GND STM32 minimum system board connected to the drive plate -,
(5) with 2 dupont, PA3 STM32 minimum system board connected to the drive plate IN1, STM32 PA4 minimum system board connected to the driver board IN2,
(6) in article 2 of dupont line to connect the MOTOR drive board A to gear MOTOR,

CodePudding user response:

3, software preparation (on the blackboard, which is the key in the key)
(1) install CH304C driver first,
(2) install KEILC programming software, here is the latest version 5.28 installed,
(3) install STM32F030F4 library,
MOTOR (4) download the sample program, it is suggested that after decompression on C disk root directory, and then use KEILC open, to rebuild, rebuild the HEX file where, please set up in front of the rebuild, menu: project - "option for target 'target1 --" output - "the select folder for objects, select generate HEX storage folder -" gave a name to HEX MOTOR -- "check the create HEX file,)
(5) open the ISP download software flymcu serial port,
(6) the STM32 minimum system board short jumper cap BOOT0 and 3 v3, press the reset button on the STM32 minimum system board, (this step can't little!)
(7), click, and choose the HEX file generated earlier - start programming,
"(8) programming, the minimum system board STM32 BOOT0 &gnd short jumper cap, press the reset button on the STM32 minimum system board, the system normal operation, at this point, system structures, success!

CodePudding user response:

Above all software and programs, as well as the circuit board can contact himself, but not often online

  • Related