Pages: [1]   Go Down
Author Topic: Reading values on the roomba wheel encoders  (Read 922 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have anybody done this with arduino?

or have anyone a documented tutorial on it, because I'm having a lot of problems to understand how to do it, because I dont get any values in the serial monitor when I use the arduino rotary encoder code..

Best regards
Logged

BCC AZ USA
Offline Offline
Edison Member
*
Karma: 35
Posts: 1213
It gets hot so it must be working
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have Roomba motors on my robot and have no trouble reading the encoders.  They just send pulses (7 per motor rev on mine).  I use an interrupt to count the pulses.

I attached a bmp of the schematic for the encoder.  The colors are of the wire to my motors.
I use the 7414 to square up the edges, makes it more reliable.


* MOTOR ENCODER COND.bmp (30.45 KB, 724x503 - viewed 110 times.)
« Last Edit: July 25, 2013, 12:55:28 pm by groundfungus » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Alot for your answer, I got the encoders working now, showing values on the serial monitor! thanks.

I was wondering how can I save the values and use them for something.

In the end I had like to make a robot which drives a route, and the encoders save the encoder values, and use them later to drive the same route just on the encoder values received earlier. how would suchs a program be, if you have a clue on it, I would like to hear it.

Best regards
Logged

BCC AZ USA
Offline Offline
Edison Member
*
Karma: 35
Posts: 1213
It gets hot so it must be working
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How are you going to guide the robot for the initial route?  Is it a measured course?  It would not be difficult to record values at certain points into two arrays and use the array values to repeat the course.  If you measure your wheel diameter and wheel base and find out how many pulses per revolution of the wheel you can calculate distances and angles.  It is certainly doable, but I need more info to be more specific code wise.
Logged

Pages: [1]   Go Up
Jump to: