Forum >Help I need information on wiring positions
Help I need information on wiring positions

Hi I purchased this DFRobot kit but I can find no intructions on where to plug
the motor encoder wires into the microcontrolor. Can anyone help?
DFRobot - HCR-Mobile robot platform ?Romeo Controller board (Arduino compatible)
DFRobot DC Motor Specifications
?Working voltage: 12V
?No load speed:8100RPM
?RPM :120RPM
?Diameter:30mm
?Length:42mm
?Nominal output power:17W
?No load current: 75mA
?Load current?1400mA
?Gearbox ratio:66:1
?Encoders:Optical
?Encoder Phase:AB
?Encoder Resolution:12CPR
the motor encoder wires into the microcontrolor. Can anyone help?
DFRobot - HCR-Mobile robot platform ?Romeo Controller board (Arduino compatible)
DFRobot DC Motor Specifications
?Working voltage: 12V
?No load speed:8100RPM
?RPM :120RPM
?Diameter:30mm
?Length:42mm
?Nominal output power:17W
?No load current: 75mA
?Load current?1400mA
?Gearbox ratio:66:1
?Encoders:Optical
?Encoder Phase:AB
?Encoder Resolution:12CPR
2013-06-14 00:34:39 [quote="kevining"]
I recently acquired the HCR robot, and am having trouble getting it up and running. The instructions/diagrams I've found don't quite match, wondering if anyone can help.
The encoders I have are different than above, the wire colors are: black, red, yellow, green, blue, orange. (There are two motors/encoders, so there are two sets of wires). Wondering if anyone has a diagram of how to hook it all up.
Thanks!
[/quote]
Hi kevining, I am sorry for the problem of the wire colors, we will fix it later. and I think the following site maybe can help you. [url=https://www.dfrobot.com/index.php?route=product/product&path=47_110&product_id=777#.UbmAAnSS2Uk]https://www.dfrobot.com/index.php?route=product/product&path=47_110&product_id=777#.UbmAAnSS2Uk[/url]
and the new wiki of HCR will be released soon.
Pepin
pepin
I recently acquired the HCR robot, and am having trouble getting it up and running. The instructions/diagrams I've found don't quite match, wondering if anyone can help.
The encoders I have are different than above, the wire colors are: black, red, yellow, green, blue, orange. (There are two motors/encoders, so there are two sets of wires). Wondering if anyone has a diagram of how to hook it all up.
Thanks!
[/quote]
Hi kevining, I am sorry for the problem of the wire colors, we will fix it later. and I think the following site maybe can help you. [url=https://www.dfrobot.com/index.php?route=product/product&path=47_110&product_id=777#.UbmAAnSS2Uk]https://www.dfrobot.com/index.php?route=product/product&path=47_110&product_id=777#.UbmAAnSS2Uk[/url]
and the new wiki of HCR will be released soon.
Pepin

2013-06-14 00:34:39 [quote="kevining"]
I recently acquired the HCR robot, and am having trouble getting it up and running. The instructions/diagrams I've found don't quite match, wondering if anyone can help.
The encoders I have are different than above, the wire colors are: black, red, yellow, green, blue, orange. (There are two motors/encoders, so there are two sets of wires). Wondering if anyone has a diagram of how to hook it all up.
Thanks!
[/quote]
Hi kevining, I am sorry for the problem of the wire colors, we will fix it later. and I think the following site maybe can help you. [url=https://www.dfrobot.com/index.php?route=product/product&path=47_110&product_id=777#.UbmAAnSS2Uk]https://www.dfrobot.com/index.php?route=product/product&path=47_110&product_id=777#.UbmAAnSS2Uk[/url]
and the new wiki of HCR will be released soon.
Pepin
pepin
I recently acquired the HCR robot, and am having trouble getting it up and running. The instructions/diagrams I've found don't quite match, wondering if anyone can help.
The encoders I have are different than above, the wire colors are: black, red, yellow, green, blue, orange. (There are two motors/encoders, so there are two sets of wires). Wondering if anyone has a diagram of how to hook it all up.
Thanks!
[/quote]
Hi kevining, I am sorry for the problem of the wire colors, we will fix it later. and I think the following site maybe can help you. [url=https://www.dfrobot.com/index.php?route=product/product&path=47_110&product_id=777#.UbmAAnSS2Uk]https://www.dfrobot.com/index.php?route=product/product&path=47_110&product_id=777#.UbmAAnSS2Uk[/url]
and the new wiki of HCR will be released soon.
Pepin

2013-06-12 21:32:15 I recently acquired the HCR robot, and am having trouble getting it up and running. The instructions/diagrams I've found don't quite match, wondering if anyone can help.
The encoders I have are different than above, the wire colors are: black, red, yellow, green, blue, orange. (There are two motors/encoders, so there are two sets of wires). Wondering if anyone has a diagram of how to hook it all up.
Thanks!
kevining
The encoders I have are different than above, the wire colors are: black, red, yellow, green, blue, orange. (There are two motors/encoders, so there are two sets of wires). Wondering if anyone has a diagram of how to hook it all up.
Thanks!

2013-06-12 21:32:15 I recently acquired the HCR robot, and am having trouble getting it up and running. The instructions/diagrams I've found don't quite match, wondering if anyone can help.
The encoders I have are different than above, the wire colors are: black, red, yellow, green, blue, orange. (There are two motors/encoders, so there are two sets of wires). Wondering if anyone has a diagram of how to hook it all up.
Thanks!
kevining
The encoders I have are different than above, the wire colors are: black, red, yellow, green, blue, orange. (There are two motors/encoders, so there are two sets of wires). Wondering if anyone has a diagram of how to hook it all up.
Thanks!

2011-01-26 18:47:16 Thankyou you have been a big help we got it going. Could you tell me where you got the last picture? I would like to find my answers without bothering people if possible. Diagrams like this would make all the difference.
moses58

2011-01-26 18:47:16 Thankyou you have been a big help we got it going. Could you tell me where you got the last picture? I would like to find my answers without bothering people if possible. Diagrams like this would make all the difference.
moses58

2011-01-24 07:11:00 :P
Connect the A pin of the encoder to the digital pin 2 of the Romeo.
Connect the B pin marked 4 to the digital pin 4 of the Romeo.
And also you can click the image to enlarge.
;)
Lauren
Connect the A pin of the encoder to the digital pin 2 of the Romeo.
Connect the B pin marked 4 to the digital pin 4 of the Romeo.
And also you can click the image to enlarge.
;)

2011-01-24 07:11:00 :P
Connect the A pin of the encoder to the digital pin 2 of the Romeo.
Connect the B pin marked 4 to the digital pin 4 of the Romeo.
And also you can click the image to enlarge.
;)
Lauren
Connect the A pin of the encoder to the digital pin 2 of the Romeo.
Connect the B pin marked 4 to the digital pin 4 of the Romeo.
And also you can click the image to enlarge.
;)

2011-01-23 18:20:10 Well it is just my luck the encorder wires are different. I have brown, grey, white and black. I can find no help on how to connect these wires to the board. All attempts to find a answer on the internet have failed. Is there anyone who has made this HCR-Mobile robot platform with sensors and microcontroller robot platform?
•Two 17w DC motors with 64:1 Gearbox 120 rpm
•Two (2 Phases) encoders with 12 PPR
•Romeo Controller board (Arduino compatible)
Thanks
Can someone send a better picture or explination?
[email protected]
moses58
•Two 17w DC motors with 64:1 Gearbox 120 rpm
•Two (2 Phases) encoders with 12 PPR
•Romeo Controller board (Arduino compatible)
Thanks
Can someone send a better picture or explination?
[email protected]

2011-01-23 18:20:10 Well it is just my luck the encorder wires are different. I have brown, grey, white and black. I can find no help on how to connect these wires to the board. All attempts to find a answer on the internet have failed. Is there anyone who has made this HCR-Mobile robot platform with sensors and microcontroller robot platform?
•Two 17w DC motors with 64:1 Gearbox 120 rpm
•Two (2 Phases) encoders with 12 PPR
•Romeo Controller board (Arduino compatible)
Thanks
Can someone send a better picture or explination?
[email protected]
moses58
•Two 17w DC motors with 64:1 Gearbox 120 rpm
•Two (2 Phases) encoders with 12 PPR
•Romeo Controller board (Arduino compatible)
Thanks
Can someone send a better picture or explination?
[email protected]

2011-01-20 12:04:06 Thank you for the photo and code. I am visually impaired so the photo is a little to far away for my friend to clearly see the wire colors. We will try to make do. Thanks
moses58

2011-01-20 12:04:06 Thank you for the photo and code. I am visually impaired so the photo is a little to far away for my friend to clearly see the wire colors. We will try to make do. Thanks
moses58

2011-01-19 20:10:21 Hi.
:)
Connect the encoder according to the picture.
The sample code:
[code]
const byte encoder0pinA = 2;//A pin -> the interrupt pin 0
const byte encoder0pinB = 4;//B pin -> the digital pin 4
byte encoder0PinALast;
int duration;//the number of the pulses
boolean Direction;//the rotation direction
void setup()
{
Serial.begin(57600);//Initialize the serial port
EncoderInit();//Initialize the module
}
void loop()
{
Serial.print("Pulse:");
Serial.println(duration);
duration = 0;
delay(500);
}
void EncoderInit()
{
Direction = true;//default -> Forward
pinMode(encoder0pinB,INPUT);
attachInterrupt(0, wheelSpeed, CHANGE);
}
void wheelSpeed()
{
int Lstate = digitalRead(encoder0pinA);
if((encoder0PinALast == LOW) && Lstate==HIGH)
{
int val = digitalRead(encoder0pinB);
if(val == LOW && Direction)
{
Direction = false; //Reverse
}
else if(val == HIGH && !Direction)
{
Direction = true; //Forward
}
}
encoder0PinALast = Lstate;
if(!Direction) duration++;
else duration--;
}
[/code]
Lauren
:)
Connect the encoder according to the picture.
The sample code:
[code]
const byte encoder0pinA = 2;//A pin -> the interrupt pin 0
const byte encoder0pinB = 4;//B pin -> the digital pin 4
byte encoder0PinALast;
int duration;//the number of the pulses
boolean Direction;//the rotation direction
void setup()
{
Serial.begin(57600);//Initialize the serial port
EncoderInit();//Initialize the module
}
void loop()
{
Serial.print("Pulse:");
Serial.println(duration);
duration = 0;
delay(500);
}
void EncoderInit()
{
Direction = true;//default -> Forward
pinMode(encoder0pinB,INPUT);
attachInterrupt(0, wheelSpeed, CHANGE);
}
void wheelSpeed()
{
int Lstate = digitalRead(encoder0pinA);
if((encoder0PinALast == LOW) && Lstate==HIGH)
{
int val = digitalRead(encoder0pinB);
if(val == LOW && Direction)
{
Direction = false; //Reverse
}
else if(val == HIGH && !Direction)
{
Direction = true; //Forward
}
}
encoder0PinALast = Lstate;
if(!Direction) duration++;
else duration--;
}
[/code]

2011-01-19 20:10:21 Hi.
:)
Connect the encoder according to the picture.
The sample code:
[code]
const byte encoder0pinA = 2;//A pin -> the interrupt pin 0
const byte encoder0pinB = 4;//B pin -> the digital pin 4
byte encoder0PinALast;
int duration;//the number of the pulses
boolean Direction;//the rotation direction
void setup()
{
Serial.begin(57600);//Initialize the serial port
EncoderInit();//Initialize the module
}
void loop()
{
Serial.print("Pulse:");
Serial.println(duration);
duration = 0;
delay(500);
}
void EncoderInit()
{
Direction = true;//default -> Forward
pinMode(encoder0pinB,INPUT);
attachInterrupt(0, wheelSpeed, CHANGE);
}
void wheelSpeed()
{
int Lstate = digitalRead(encoder0pinA);
if((encoder0PinALast == LOW) && Lstate==HIGH)
{
int val = digitalRead(encoder0pinB);
if(val == LOW && Direction)
{
Direction = false; //Reverse
}
else if(val == HIGH && !Direction)
{
Direction = true; //Forward
}
}
encoder0PinALast = Lstate;
if(!Direction) duration++;
else duration--;
}
[/code]
Lauren
:)
Connect the encoder according to the picture.
The sample code:
[code]
const byte encoder0pinA = 2;//A pin -> the interrupt pin 0
const byte encoder0pinB = 4;//B pin -> the digital pin 4
byte encoder0PinALast;
int duration;//the number of the pulses
boolean Direction;//the rotation direction
void setup()
{
Serial.begin(57600);//Initialize the serial port
EncoderInit();//Initialize the module
}
void loop()
{
Serial.print("Pulse:");
Serial.println(duration);
duration = 0;
delay(500);
}
void EncoderInit()
{
Direction = true;//default -> Forward
pinMode(encoder0pinB,INPUT);
attachInterrupt(0, wheelSpeed, CHANGE);
}
void wheelSpeed()
{
int Lstate = digitalRead(encoder0pinA);
if((encoder0PinALast == LOW) && Lstate==HIGH)
{
int val = digitalRead(encoder0pinB);
if(val == LOW && Direction)
{
Direction = false; //Reverse
}
else if(val == HIGH && !Direction)
{
Direction = true; //Forward
}
}
encoder0PinALast = Lstate;
if(!Direction) duration++;
else duration--;
}
[/code]

2011-01-19 18:53:40 Hi I purchased this DFRobot kit but I can find no intructions on where to plug
the motor encoder wires into the microcontrolor. Can anyone help?
DFRobot - HCR-Mobile robot platform ?Romeo Controller board (Arduino compatible)
DFRobot DC Motor Specifications
?Working voltage: 12V
?No load speed:8100RPM
?RPM :120RPM
?Diameter:30mm
?Length:42mm
?Nominal output power:17W
?No load current: 75mA
?Load current?1400mA
?Gearbox ratio:66:1
?Encoders:Optical
?Encoder Phase:AB
?Encoder Resolution:12CPR
moses58
the motor encoder wires into the microcontrolor. Can anyone help?
DFRobot - HCR-Mobile robot platform ?Romeo Controller board (Arduino compatible)
DFRobot DC Motor Specifications
?Working voltage: 12V
?No load speed:8100RPM
?RPM :120RPM
?Diameter:30mm
?Length:42mm
?Nominal output power:17W
?No load current: 75mA
?Load current?1400mA
?Gearbox ratio:66:1
?Encoders:Optical
?Encoder Phase:AB
?Encoder Resolution:12CPR
