R and L setting by serial

General discussion of the MCP motion controller product line
fausto.tromba
Posts: 20
Joined: Wed Jul 31, 2019 7:24 am

Re: R and L setting by serial

Post by fausto.tromba » Wed Nov 13, 2019 12:36 am

Firmware Version 1.1.7
I can read and set many parameters and work fine by python library.
Probably there just is an issue or bug. Reading the PID position by Python library, I receive the same value of PID speed

I will send you an email with the library modified and the few code lines to read the R and L. The next step would be to write them.
About it, I would like your confirmation from your side to be sure that I won't overwrite a critical part of the memory.

fausto.tromba
Posts: 20
Joined: Wed Jul 31, 2019 7:24 am

Re: R and L setting by serial

Post by fausto.tromba » Thu Nov 14, 2019 12:01 am

I will send you all. The firmware is 1.1.7 of MCP236.
I cand set and get many parameters from the driver in the same python file (version, PIDs, set current and speed, etc). I will send you not all project but a test-file with few lines code:

Code: Select all

import time
from roboclaw_3 import Roboclaw

#Windows comport name
#rc = Roboclaw("COM11",115200)
#Linux comport name
rc = Roboclaw("/dev/ttyS0",38400)

rc.Open()

#Get version string
M1_RL = rc.GetM1IndRes(0x80)
print("Motor 1 RL=",M1_RL)

M2_RL = rc.GetM1IndRes(0x80)
print("Motor 2 RL=",M2_RL)

M2MaxCurrent = rc.ReadM2MaxCurrent(0x80)
print("ReadM2MaxCurrent=",M2MaxCurrent)
I could read the version

User avatar
Basicmicro Support
Posts: 1280
Joined: Thu Feb 26, 2015 9:45 pm

Re: R and L setting by serial

Post by Basicmicro Support » Thu Nov 14, 2019 9:17 am

Ok. Did you email your modified python library to support@basicmicro.com? If so I'll get back to you once I go over it.

Post Reply