BasicMicroUK - Forums

www.basicmicro.co.uk
It is currently Sun Nov 19, 2017 11:35 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Need help with Serial control of robo claw 2 x 60
PostPosted: Sat Jun 14, 2014 9:02 pm 
Offline
New User

Joined: Sat Jun 14, 2014 8:47 pm
Posts: 2
Hello, new here so please be easy on me. I have a robo claw 2x60 motor controller. I am trying to control it via serial connection on pins S1. I am using a microcontroller called EZB 4. I have set the robo claw to mode 5, and baud rate to 38,400. When I send a command the motors start and run in opposite directions and never stop. My code was very simple.

SendSerial(D0,38400,255)
SendSerial(D0,38,400,127)
Sleep(3000)
SendSerial(D0,38400,0)

Code should start motors, run and then stop. The motors continue to run and will not stop until I physically remove the battery. I have confirmed serial Mode 5 by the 5 flashes in menu#1 and comm speed 38,400 by 4 flashes in the menu#3. Can anyone help? I have posted at the microcontroller site to no avail. Thanks Chris


Top
 Profile  
 
 Post subject: Re: Need help with Serial control of robo claw 2 x 60
PostPosted: Fri Jun 20, 2014 5:05 pm 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 7:00 pm
Posts: 1316
Location: Temecula, CA
Do you have a Roboclaw or a Sabertooth. Sabertooth(by Dimension Eng)? If looks like you are trying to send a baudrate detection byte(255) which we don't support. Our simple serial mode requires you have the baudrate already set correctly. So you should be able to remove the 255 command. ALso you must set the board to simple serial mode. By default the boards are set to either USB mode or Packet Serial mode.

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO