RoboticsGeneral

Wiki code wrong.? Brushless DC Motor with Encoder 12V 159RPM.

userHead Account cancelled 2018-05-12 06:05:32 2240 Views1 Replies
I did buy a Brushless DC Motor with Encoder 12V 159RPM
https://www.dfrobot.com/product-1364.html

This is my first project and I'm a little unsure if the code is correct.
When i look at the picture, I see that pwm is going to uno pin 11 and direction to pin 10.
https://www.dfrobot.com/wiki/index.php/ ... 12V_159RPM

But some of the code says the opposite:
pinMode(10, OUTPUT); //PWM PIN 10 with white line
pinMode(11, OUTPUT);//direction control PIN 11 with blue line

This is my first time working with a code and I'm not sure if the rest of the code is correct.
Any chance to get some help from a skilled person in this art.
2018-06-01 17:08:59 Please don't see the color of the cables, the sequence or the place of the cables is the thing you need to pay attention to. userHeadPic robert.chen