The pixhawk signal output is PWM signal, then how to control DC Motor by pixhawk?
You need an Electronic Speed Controller (ESC) that connects to the battery and the motor and takes in the PWM signal for speed control.
Thanks, but what if it's a brush DC motor?The 12v DC motor only has two wires . For the ESC, any recommendations?
There are as many brushed ESC's as Brushless.
Google is your friend.Where did you get the brushed motor from?Have they ESC's.?There are 2 types, Car and aircraft.Typically the car type will have a configurable reverse the aircraft ones won't.
Thanks for your help.
It's a toy car. It doesn't have ESCs. I have solved the problem by using Arduino. I will also try using ESCs.
I hope you do not try and drive the motor directly from the Arduino, you will most certainly fry it.