Urgent : need to configure ODrive to run hoverboard-motors

Dear all,
Greetings,
I spent very long time just to configure ODrive to run hoverboard-motors,
reference :

I even don’t need to make balance-robot, I just need to make cart-like robot ( remote control by any type like Bluetooth or any other way)

Can any one help me to configure ODrive to run the two wheels of hoverboard by serial UART by Arduino ?

(note : I added capacitors 22nF in parallel with HALL feedback from wheels to ODrive, and still not configured/worked well like this image :
image
)

Thanks on advance for any help.

Hello

You should be able to find everything you need on my website:

https://stijnsprojects.github.io/Balancing-robot/

If you have any questions, let me know.

Cheers

Carelsbergh Stijn

Dear Mr. Stijn
Really many thanks for your support and your hard attractive work.
I start testing/work now and feedback you.
I just have question: can I use 12v power supply instead of 36v of hoverboard battery ?
just in testing phase, for safety.
If yes, I need to change any parameter in configuration step ?

Best regards

Hello

The minimum ODrive supply voltage is 12V, so yes you can use 12V.

Cheers

Carelsbergh Stijn

ok, thanks,

no change in any parameter ?

Regards

Hello

No, it affects max speed but you don’t need to change the setting.

Cheers

Carelsbergh Stijn

Dear Mr. Carelsbergh
Greetings,
Really, many thanks for your support.
I configured Axis0 of ODrive and worked well, while Axis1 not worked at all.

I tested many times, the motor not spin at all, even I changed the locations of two motors, the Axis1 of ODrive not worked at all.

Attached backup of configuration .json file and no-errors seen from the ODrive as attached image also.
Are you estimate the problem ? and how to solve it ?

( sorry I can’t find attached icon in this reply to attach configuration backup file )
image

Best regards

it may be disabled ?
i.e. the axis1 is disabled and need to re-enable ??

Hello

Have you tried to erase the configuration?

Cheers

Carelsbergh Stijn

Dear Mr. Stijn

Many thanks for your support,
The configuration worked well now, thanks a lot.

Now I need to test more deeply, your system,
But I have problem to understand the remote keys (to simulate them even in mobile app)
i.e. what are meant by following parameters:
RFB, RLR , RT , LFB , LLR and LT
if you have drawing or figure to remote control also sure it help me.
The purpose now, make same remote by mobile app (I can do it just after know remote keys and function).
Best regards

Hello

You can find the meaning in the remote code:

mydata_send.RFB = axis1;
mydata_send.RLR = axis2;
mydata_send.RT = axis3;
mydata_send.LFB = axis4;
mydata_send.LLR = axis5;
mydata_send.LT = axis6;

They are analog reads of the joysticks.

The code is an edited version of James Burton’s code.

Cheers

Carelsbergh Stijn

Dear Mr. Stijn

Many thanks for your reply,

I tested most of your system, until now every thinks are good,

I have question out off that scenario,

That I first time work with ADXL345, it measure the gravity only ?
I can’t use it to get the direction of robot ?? i.e. may one wheel delayed or wheel slip than other so I need to compensate the error in direction of moving, so I need to get the direction of robot (right/left,…)
I how can I do that by ADXL345 ?

Thanks on advance.
Best regards

Hello

I think you need to use another sensor depending on what data you need.

Here are some other sensors: AK8975 MPU6050 ADXL345 BNO055

Cheers

Carelsbergh Stijn

I already use ADXL345, but the orientation (Z-Axis) not get good reading.
Z-Axis give 1.0 and change to 0.0 suddenly.
I don’t know if the board is defected in z-axis (where other axis work well)
Are you have tested ADXL345 for orientation correction (read z axis good) ?

Best regards

Hello

I’ve not used the sensor myself.

Cheers

Carelsbergh Stijn

Dear Mr. Stijn

We have a problem after AXIS_STATE_ENCODER_OFFSET_CALIBRATION, the wheel on axis0 not rotating. we calibrate the axis1 and its fine but when we calibrate the axis0, its not functioning well when we code the AXIS_STATE_ENCODER_OFFSET_CALIBRATION. Please anyone can help us about this problem? Thanks alot!