Search found 32 matches

by fausto.tromba
Tue Oct 20, 2020 11:27 pm
Forum: General Discussion
Topic: set PID speed
Replies: 2
Views: 43

Re: set PID speed

I was speaking about SetM1Velocity(address, p,i,d,qpps) python method.
it does not work, when I pass not an integer, but a float. For example p=7.2.
Ho can I set by serial port a float (P=7.2) ?
by fausto.tromba
Tue Oct 06, 2020 5:08 am
Forum: General Discussion
Topic: set PID speed
Replies: 2
Views: 43

set PID speed

I tried to set the PID speed with the method SetM1Velocity(address, p,i,d,qpps) it looks like that p, i, d and qpps must be an integer otherwise there is the following error: pi@raspberrypi:~/Documents/MCP236_py3/TestPrograms $ python3 roboclawPIDspeedpy.py 'MCP236 2x30A v1.1.8\n' Traceback (most re...
by fausto.tromba
Wed Sep 23, 2020 12:51 am
Forum: Velocity and Position Control
Topic: SpeedAccelDeccelPositionM1
Replies: 1
Views: 95

SpeedAccelDeccelPositionM1

I have configured the PID position and with BasicMicro Motion Studio it is accurate. speed = 5690,acc and decc = 4000,P=10,I=1,D=2 Unbenannt.PNG when I send use the serial command SpeedAccelDeccelPositionM1(self,address,accel,speed,deccel,position,buffer) in the following code: v = 5690 acc= 4000 #d...
by fausto.tromba
Wed Aug 19, 2020 8:03 am
Forum: General Discussion
Topic: _port
Replies: 1
Views: 206

_port

During a crash test, we unplug on purpose the encoder to check if the software stop the motor. After it, and other tests, I don't manage to communicate with the Motordriver anymore with alway the same problem. Lunching roboclaw_readversion.py Traceback (most recent call last): File "/home/pi/Documen...
by fausto.tromba
Wed Aug 19, 2020 5:13 am
Forum: General Discussion
Topic: increase the baudrate
Replies: 3
Views: 216

Re: increase the baudrate

I m using Raspberry 4 and logically have changed also the python code

Code: Select all

Roboclaw("/dev/ttyS0",38400)
to

Code: Select all

Roboclaw("/dev/ttyS0",115200)
to be more precise. I changed in Basic Motion Studio with the same rate

Image
by fausto.tromba
Mon Aug 17, 2020 8:10 am
Forum: General Discussion
Topic: increase the baudrate
Replies: 3
Views: 216

increase the baudrate

I would like to speed up the UART communication with MCP236 and Raspberry. The baudrate actually is 38400 bps. I tried to increase it, but without any success becasue the Python with Raspberry and the MCP don't communicate anymore. Of couse i changes also the baudrate from Python side. any idea?
by fausto.tromba
Mon Aug 10, 2020 5:27 am
Forum: General Discussion
Topic: mode percent
Replies: 1
Views: 195

mode percent

In General Settings--> Coomand Settings, it is possible to select with the MCP236 the Mode Position, Mode Instant Speed, Mode Average speed and Mode Percent.
What is it?
I would like to control the motor in current mode with a external analog signal (ACS712).
by fausto.tromba
Mon Apr 27, 2020 11:30 am
Forum: General Discussion
Topic: serial command analog input
Replies: 5
Views: 2568

Re: serial command analog input

Sorry but in the user manual I didn't find any description about ReadSingnals in the Packet Serial. what is the command number? Can I have more details about it so I can implement it in the library? if you write directly the code witch i should write in the library we could avoid some ping pong mess...
by fausto.tromba
Sun Apr 26, 2020 11:28 pm
Forum: General Discussion
Topic: C++ library for Raspberry
Replies: 1
Views: 1436

C++ library for Raspberry

How can I use MCP236 with Raspberry programming in C++ ? do you have a library?
I saw that there are for Arduino in C, but not for Raspberry.

do you have an easy example? Like how to read the version of MSP236.
by fausto.tromba
Sat Apr 25, 2020 1:00 pm
Forum: General Discussion
Topic: serial command analog input
Replies: 5
Views: 2568

Re: serial command analog input

Hi thank you for your feedback.
I m using MSP236 with Raspberry and your Python library.
How can i read the adc value by UART?
Tkx