Optical Motor Shaft Encoder in Zumo with Signal Processing

The place to discuss the Pololu 3pi, m3pi, and Zumo robots and share your code.

Optical Motor Shaft Encoder in Zumo with Signal Processing

Postby Erich » Sat Mar 08, 2014 8:28 am

I managed to get the shaft mounted optical quadrature wheel encoder http://www.pololu.com/product/2591 to work inside the Zumo chassis.
As the encoder produces an analog signal, and we have seen that it can be heavily impacted by light and other factors, we decided to create a processing PCB which transfors the analog signal into a clean and calibrated digital quadrature signal. With this, we are able to accurately process the signal of the 1:75 Micro Metal Gear Motor at full speed with the 3-tooth encoder. Best of all: the Zumo Bot can perform per software an auto-calibration :-)

With the hope that this might be beneficial for someone else, all the details, schematics and sources are posted here:
http://mcuoneclipse.com/2014/03/08/processing-the-pololu-motor-shaft-encoders/

Image
Image
Image
Image
Image

Happy Stepping :-)

Erich
Erich
 
Posts: 22
Joined: Sun Mar 10, 2013 12:15 am
Location: Switzerland

Re: Optical Motor Shaft Encoder in Zumo with Signal Processi

Postby JonathanKosh » Mon Mar 10, 2014 6:56 pm

Hello, Erich.

Awesome! Thanks for posting your results. We plan to make a community project blog post about this soon.

-Jon
User avatar
JonathanKosh
Pololu Employee
 
Posts: 395
Joined: Mon Jun 04, 2012 10:00 am
Location: Las Vegas, NV

Re: Optical Motor Shaft Encoder in Zumo with Signal Processi

Postby Erich » Fri Mar 14, 2014 11:43 pm

The PCB's for the signal processing arrived :-)
See http://mcuoneclipse.com/2014/03/14/new-encoder-pcbs-arrived/#more-11035

Images:
Image
Image
Image
Erich
 
Posts: 22
Joined: Sun Mar 10, 2013 12:15 am
Location: Switzerland

Re: Optical Motor Shaft Encoder in Zumo with Signal Processi

Postby nuhor68 » Tue Jun 10, 2014 12:47 am

Hello Erich,

I have a question. Is it possible to replace MCP4728 and MCP6004 used in your project with other ICs preferably in DIP package?

Thank you & best regards,

Igor
nuhor68
 
Posts: 5
Joined: Tue Aug 21, 2012 4:34 am

Re: Optical Motor Shaft Encoder in Zumo with Signal Processi

Postby Erich » Tue Jun 10, 2014 5:04 am

Hi Igor,
yes, absolutely. We used SMD components as they need less space, are less expensive and can be soldered manually or with a reflow oven.

Erich
Erich
 
Posts: 22
Joined: Sun Mar 10, 2013 12:15 am
Location: Switzerland

Re: Optical Motor Shaft Encoder in Zumo with Signal Processi

Postby hybotics » Thu Aug 07, 2014 3:26 am

Hi,

I'm also using the Micro Metal Gearmotors, with the newer Pololu optical shaft encoders, for some of my robots. I am interested in building some of your encoder boards for myself, possibly using 0.1" spaced headers instead of soldering wires directly to the board. However, I could not find any Eagle or other CAD files for your encoder board. Do these files exist in your GitHub repo somewhere?

Thanks in advance!

8-Dale
hybotics
 
Posts: 2
Joined: Thu Aug 07, 2014 2:53 am

Re: Optical Motor Shaft Encoder in Zumo with Signal Processi

Postby Erich » Thu Aug 07, 2014 10:17 am

Yes, the Eagle files are on GitHub:
https://github.com/ErichStyger/mcuoneclipse/tree/master/Eagle/INTRO%20Robot%20QuadEncoder

Erich
Erich
 
Posts: 22
Joined: Sun Mar 10, 2013 12:15 am
Location: Switzerland

Re: Optical Motor Shaft Encoder in Zumo with Signal Processi

Postby hybotics » Thu Aug 07, 2014 11:28 am


I found them, thanks! This is great work, and will save me a lot of effort. :)

8-Dale
hybotics
 
Posts: 2
Joined: Thu Aug 07, 2014 2:53 am


Return to 3pi, m3pi, and Zumo Robots

Who is online

Users browsing this forum: No registered users and 5 guests