I’ve bought the 12V Brushless DC Encoder Motor for a design project. Before wiring up the motor to my circuit, I’ve decided to try and test the operation of the motor. To do so, I’ve followed the steps given in the documentation and resources supplied by dfrobot and uploaded the code to the Arduino. The first time testing the operation, it worked for about for a duration of time. I decided to disconnect every and try to connect everything back up to double check its operation. Second time round nothing happened. Repeated the steps made sure everything is connected properly and still no operation of the motor. Any suggestions what the problem may be?
As James suggested, can you please send through a photo of the way that you’ve connected it to your Arduino? It’s surprising how useful it can be sometimes to be able to take a look at the rig directly to see whether there are any potential issues there.
I used a breadboard and screw terminals to connect the wiring for the encoder motor and used one side of power rails for my 12V power supply and the side of the power rails to connect ground and 5v for the Arduino
Sorry about the delay in getting back to you, haven’t been in too much myself recently. Is there any way that you’re able to get that photo of the setup added here? Just making sure that there’s no confusion about the wiring and connections that I’m discussing with you as we go.
Also, when I upload the code onto the Arduino, theres a step instructing to open serial monitor and enter a number between 0 - 255 to set the motors speed, but when I open the serial monitor and type in a number there are all these different characters and symbols that are written onto the serial monitor
The power rails don’t seem to be connected together. I am assuming the device out of the pic bottom left is the power source. You have pos going to the LOWER pos rail and the neg going to the UPPER neg rail. On the proto board these 2 pos and neg rails are NOT connected (mine aren’t anyway). Put another couple of jumpers in to connect these (pos to pos, neg to neg) and try again.
I think @Robert93820 has spotted the likely error. The rows between the red and blue stripe on your breadboard are connected lengthways across the board but the rows at opposite ends of the board are not connected to each other. We have a quick rundown on connecting breadboards here.
Look at the board.
There are 4 long rows of contacts in groups of 5 going down the long side of the board, 2 marked with a red line and 2 marked with a blue line. With a jumper connect the 2 red rows together and with another jumper connect the blue rows together. They are not connected internally.
The other option is to just use one pair of these rows for all of these connections.
Having a bit of trouble wrapping my head around some concepts. So briefly summarising my project, I’m controlling the rotation speed of the DC motor by means of using a potentiometer. I’m using a PWM signal and a MOSFET as the configuration to regulate the voltage of the motor which controls the rotation speed.
PWM is connected to A0 of the Arduino (Analog Input)
Pin 11 is programmed as an PWM output signal that is connected to the gate of the MOSFET
Drain of the MOSFET is connected to negative terminal of the DC motor
I need some help with theory. Correct me if I’m wrong. If you increase the value of the potentiometer this will increase the voltage applied at the gate of the MOSFET therefore increases the output voltage of the DC motor which increases the speed…? If so what kind of load is imparted on the motor? Does increased rotation speed imply heavy load imparted on the motor?