HCR-Mobile robot platform (SKU:ROB00021)

Hello, I purchased the following:
HCR-Mobile robot platform (SKU:ROB00021) with 12V DC Motor 146rpm w/Encoder(SKU:FIT0277)
DF-BluetoothV3 Bluetooth module (SKU:TEL0026)
USB to TTL Converter (SKU:TEL0010)

I have been able to remotely operate the robot via bluetooth with an android device so no problem here.

Problem - When I load the encoder program, I can see the pulses only when manually moving M1 which is ok because code is for driving one way motor. The problem is I loose main code (motor/bluetooth) so no way to send wasd commands to turn wheels. I have been unable to find any romeo v1.1 support to combine the main/encoder library if this is the correct path

To summarize - how do I read the M1, M2 motor encoders with the supplied code. Is the intent for this system to have both motor encoders connected? It will be nice to get robot running straight.

Any assistance would be greatly appreciated!

Hi,

You can find a sample Arduino code to use the motor’s encoder in the product’s Wiki.
You should be able to combine the motors/encoders code in the main Arduino code that can be found in the HCR-Mobile robot platform Wiki.

Hello Again,
So it has been a while, as some frustration set in with getting robot to run relatively straight in forward or reverse directions. I am only trying to run via a BT android app currently using WASD. I am able to read either wheel’s rotation via the serial monitor but cannot get the code for both wheels to work together with the romeo’s PWM code. So this is what I would like to do:

]Ability to first operator remotely for forward/reverse straight operation./:m]
]Incorporate 5 sharp distance sensors and 3 bumper sensors to run autonomously - is this the intent of the sensors/:m]Is there a robot controller that will allow connector of the encoder direct that with PID control capability? I’m thinking then I can expand on code options with these encoders. Thanks in advance for any recommendations you can provided. This was a fairly expensive purchase that so far has not met my expectations. All of the sample code seems to be quite poor as well. In retrospect, I was on the fence between this model and the Nexus RB-Nex-05 Omni wheel, lessons learned…

Thank you,
Robert Nashwenter

Unfortunately we are not aware of a controller which has that functionality. The manufacturer has a number of demo videos, so they should have some sample code. We can put you into directly contact with them if you’d like. For the moment:
code.google.com/archive/p/hcrobot/
dfrobot.com/wiki/index.php/HCR-Mobile_robot_platform_V2.0_(SKU:ROB0004)

I was researching some more and found this robotshop.com/en/roboclaw-2x7a-6-34vdc-regenerative-motor-controller.html

It appears it may solve my problematic issue with encoders as long as the motors that came with kit are compatible and I believe the stall current looks fine. dfrobot.com/product-777.html

My plan would be to use Romeo the came with kit to control the RoboClaw motor controller.

What do you think?

Thanks :unamused:

Double check that the “position” described in the Roboclaw manual is the positioning you want for your application. It seems to be angular.
The Romeo is a standard Arduino microcontroller and can certainly be used to control an external motor controller.
Devising the right code to get encoder feedback should resolve the issue so you don’t need a separate motor controller.
We can put you in contact with the manufacturer of the platform if you’d like their input.