BasicMicroUK - Forums

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: RoboClaw Encoder Reading
PostPosted: Fri May 16, 2014 10:44 am 
Offline
New User

Joined: Tue Apr 08, 2014 12:21 am
Posts: 4
Hey, I am testing my DC motor with optical encoder. When I connect the encoder to roboclaw, I try to use command 30 to read the speed. In the user manual it says that command 30 will return 5 bytes and the first 4 bytes represent speed. I got different values for different speed, but I can't link these value to the actual speed value. How can I convert them to the actual speed of motor? Thanks.


Top
 Profile  
 
 Post subject: Re: RoboClaw Encoder Reading
PostPosted: Tue Jun 03, 2014 8:04 pm 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 7:00 pm
Posts: 1316
Location: Temecula, CA
They need to be stored into a long variable. The first byte is the high 8 bits, second byte the next 8 bits etc... How you do this depends on the programming language you are using.

_________________
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