Search found 10 matches

by breuil11
Mon Oct 21, 2019 12:03 pm
Forum: General Discussion
Topic: Another Python 3 serial comm issue
Replies: 8
Views: 6317

Re: Another Python 3 serial comm issue

The 0x80 (128) is the address value I'm assigning to the variable used in your library function calls like in roboclaw_mixedpwm.py below. I don't know why it worked either. Thought maybe had something to do with converting something to bytes that was already in a byte format or something?? Sorry if ...
by breuil11
Thu Oct 17, 2019 8:34 pm
Forum: General Discussion
Topic: Another Python 3 serial comm issue
Replies: 8
Views: 6317

Re: Another Python 3 serial comm issue

SOLVED!!! As I was pulling together some output to provide to basicmicro support...realized my problem! I was still initializing my roboclaw write address as 0x80 hex. When I initialized as decimal (128) everything works great. By the way, the example, roboclaw_mixedpwm.py provided with the July upd...
by breuil11
Wed Oct 16, 2019 8:43 pm
Forum: General Discussion
Topic: Another Python 3 serial comm issue
Replies: 8
Views: 6317

Re: Another Python 3 serial comm issue

Fixed my Python2/roboclaw.py version...loose motor connections..working fine again. I still have the same Python3 issue. Below is output from some print statements out of roboclaw_3.py. I output the address, command, and val variables...decimal value then the converted value using .to_bytes(1,'BIG')...
by breuil11
Wed Oct 16, 2019 7:14 pm
Forum: General Discussion
Topic: Another Python 3 serial comm issue
Replies: 8
Views: 6317

Re: Another Python 3 serial comm issue

I've been using both the roboclaw_3.py with python3 and roboclaw.py with python2. The python2 version has been working. With the python3/roboclaw_3 version the _write1 function will go through all 3 "trys" with a checksum value of [0,0] and no motor response. Sometime it responds but errat...
by breuil11
Mon Oct 14, 2019 8:27 pm
Forum: General Discussion
Topic: Another Python 3 serial comm issue
Replies: 8
Views: 6317

Another Python 3 serial comm issue

My issue is consistent using either Pi3 (Stretch) or Pi4 (Buster) I have the roboclaw 2x7A from several years back with updated firmware. Using Python 2.7 with the pre-fixed roboclaw driver, I have no issues. When I use either Python 3.5 or now 3.7, the TTYS0 communication is very erratic and mostly...
by breuil11
Mon Nov 07, 2016 9:20 pm
Forum: General Discussion
Topic: roboclaw 7A delayed motor stop
Replies: 8
Views: 8225

Re: roboclaw 7A delayed motor stop

Updated the firmware (.16 to .19) and everything is working great...problem solved.

Thanks!
by breuil11
Mon Nov 07, 2016 11:05 am
Forum: General Discussion
Topic: roboclaw 7A delayed motor stop
Replies: 8
Views: 8225

Re: roboclaw 7A delayed motor stop

I've got the USB connector on my board. I apparently referenced an old post that talked about needing to use a Serial to TTL converter for connecting to IonMotion for a firmware update. So have all the python libraries linked on the download page been updated for the new checksum? Thanks for the hel...
by breuil11
Mon Nov 07, 2016 8:29 am
Forum: General Discussion
Topic: roboclaw 7A delayed motor stop
Replies: 8
Views: 8225

Re: roboclaw 7A delayed motor stop

Thanks again. I'm working to get the firmware updated. However that leads me to another beginner question. Connecting the roboclaw to Windows via IonMotion. Right now all I have is a USB to TTL converter and not having much luck. 1. Is using the USB to TTL converter vs a Serial Port to TTL a non-sta...
by breuil11
Wed Nov 02, 2016 7:42 pm
Forum: General Discussion
Topic: roboclaw 7A delayed motor stop
Replies: 8
Views: 8225

Re: roboclaw 7A delayed motor stop

Thanks for the response. I ran the code below at the original 115200 and then at 9600... import time import roboclaw roboclaw.Open("/dev/ttyS0",9600) address = 0x80 millis = int(round(time.time() * 1000)) print millis roboclaw.ForwardM1(address,30) millis = int(round(time.time() * 1000)) p...
by breuil11
Tue Nov 01, 2016 8:08 pm
Forum: General Discussion
Topic: roboclaw 7A delayed motor stop
Replies: 8
Views: 8225

roboclaw 7A delayed motor stop

I'm working on a tracked robot application and am having trouble with the motors continuing to drive for about a half second after being commanded back to 0 (I'm about 99.9% sure its not coasting to stop, but actively being driven.) This makes it very hard to control the robot to a particular direct...