Search found 37 matches

by fausto.tromba
Wed Jan 20, 2021 12:27 am
Forum: General Discussion
Topic: broken the third MCP236 after few turns
Replies: 3
Views: 7084

Re: broken the third MCP236 after few turns

The set up is always the same since the last 2 years so far... power supply 48V-10A SDR-480-48 in series with a Chopper to pull down the voltage in case it goes higher than 51V. So the supply is less than 60V written in the specification which you guarantee. The moror are brushed with the inductance...
by fausto.tromba
Wed Jan 13, 2021 6:13 am
Forum: General Discussion
Topic: broken the third MCP236 after few turns
Replies: 3
Views: 7084

broken the third MCP236 after few turns

I have broken the third MCP236 after few turns. I have opened it to check the damage it is another IC that the last time. Probably a current sensor, because the current that I could read by BasicStudio was tot high to be true. please let me know the device. This is the third in 6 Months. one in Octo...
by fausto.tromba
Mon Jan 11, 2021 12:44 am
Forum: General Discussion
Topic: terrible spikes with PWM mode
Replies: 3
Views: 7900

terrible spikes with PWM mode

I have taken a new MCP236 and I wanted to check the voltage. This because last time I found the current quite noisy. Checking the PWM1 (DUTY 50 on 1000) connected to a Power resistance, I got unexpected voltage impulse every almost 15s with a width of 200ms. (see LeCroy56.jpg) When I connect the mot...
by fausto.tromba
Thu Nov 05, 2020 11:44 pm
Forum: General Discussion
Topic: set PID speed
Replies: 6
Views: 10417

Re: set PID speed

shall I receive an answer? I have to insert this feature in the SW and I'm stocked on it.
by fausto.tromba
Wed Nov 04, 2020 8:00 am
Forum: General Discussion
Topic: set PID speed
Replies: 6
Views: 10417

Re: set PID speed

def line2int(line): line = line.strip() #print(line) l1,l2 = line.split(":=") return l2 def ReadFile(): f=open("/home/pi/Documents/MCP236_py3/PRG/PIDs.txt") lines=f.readlines() f.close() mpPar = map(line2int,lines) prm = list(mpPar) P = float(prm[0]) i_P = int(65536*P) I = float...
by fausto.tromba
Tue Oct 20, 2020 11:27 pm
Forum: General Discussion
Topic: set PID speed
Replies: 6
Views: 10417

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: 6
Views: 10417

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: 7703

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: 6116

_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/Do...
by fausto.tromba
Wed Aug 19, 2020 5:13 am
Forum: General Discussion
Topic: increase the baudrate
Replies: 3
Views: 7237

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