Breaking News
Blog

# My Arduino Robot Bites the Dust! Oh, the Horror…

Blog
10/25/2013 02:15 PM EDT

NO RATINGS
1 saves
User Rank
Author
What does "Torque: 0.78Kg-cm (rated load)" mean?
10/25/2013 3:11:12 PM
NO RATINGS
I was just looking at this motor and it's associated shaft encoder -- the motor spec says "Torque: 0.78Kg-cm (rated load)  (10.83oz-in)" -- what does this mean in real terms? Could three of these power my robot if it weighed say 10 pounds?

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/25/2013 3:16:39 PM
NO RATINGS
Take a look at this page. This was the motor I was originally going to get (but it doesn't have the shaft encoder).

This is rated at 78.4mN.m -- is that bigger / better / badder than 0.78Kg-cm?

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/25/2013 3:59:19 PM
NO RATINGS
Also to note you may need more power to get up a bump in the road and such.  As to your motors, and torque in general.  Torque is a simple force times a distance.  So if you had a wheel that had a diameter that was ø1" and it took 2lbs of force to get it going, then you would need a motor with 2in*lbs of torque (sometimes also written as lbs*in).  As to which motor is stronger, you will just need to do the unit conversions (actually cancel out the appropriate number of zeros) to get to N*m (Newton*meters).

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/25/2013 4:47:47 PM
NO RATINGS
@aeroengineer: Also to note you may need more power to get up a bump in the road and such

I'm primarily going to have it scurrying aroudn the hardwood floors in our house -- no bumps or anything like that to worry about

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/31/2013 7:53:20 AM
NO RATINGS
@ Max. Ref your query on comparing motors. Change to a common system of measurements, I prefer metric in this case and N.m, Using Newtons work of Force= Mass x Acceleration (F=ma) convert 0.78kg to Newtons by muliplying by g (accelation due to gravity 9.81 m/s/s) this gives 7.65N-cm. Then convert cm to m by dividing by 100, 0.0765N-m then multiply by 1000 to get mN, hence 76.5mN-m, so motor 2 is better by 2.5%. I've been racking my brains to remember the formulae to calculate the speed/accelaration to weight section, but it currently escapes me.

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/31/2013 10:16:20 AM
NO RATINGS
@Steam Kid: Ref your query on comparing motors. Change to a common system of measurements...

It's amazing how it's only when you come to want to do something that you realize how little you know LOL  Thanks for the advice -- I'm learning so much -- it's great :-)

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/25/2013 3:46:20 PM
NO RATINGS
That encoder is just a US Digital E4P with the proper sizing for the motor's shaft.  Another option if you need higher resolution is CUI's AMT encoders, which are <\$30 at Digikey.  With encoders, you have to match shaft size, mounting holes (or sticky tape), output format (quadrature / sin-cos / serial, single ended / differential, etc), and speed (which won't be an issue in your case).  Most (all?) E4Ps are single ended quadrature output.

Next questions, how are you going to read the quadrature encoder?  If you use interrupts, you'll be severely limited in speed.  Another approach is to convert quadrature to up/down and connect to a counter.  Also, there might be encoder input shields available.  (Side note: another reason why the BeagleBone is so nice, it's got three quadrature encoder inputs built in)

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/25/2013 3:50:03 PM
NO RATINGS
@TonyTib: Next questions, how are you going to read the quadrature encoder?

Duane Benson is working on something that is so exciting it makes me want to squeal like a school girl. Duane and I will be writing about thsi in the not-so-distant future. Suffice it to say that it can be used to address this issue.

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/25/2013 4:22:55 PM
NO RATINGS
From no happy dance to school girl squeal in about 30 seconds. You are one mercurial guy max.

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/25/2013 4:49:30 PM
NO RATINGS
@DrFPGA: From no happy dance to school girl squeal in about 30 seconds. You are one mercurial guy max.

Fortunately I'm blessed with a happy-go-lucky disposition -- plus it is Friday, and as soon as I get hom it will certainly be a case of the (beer) glass being more than half full (but not for long :-)

User Rank
Author
Re: mercurial Max
10/25/2013 6:30:50 PM
NO RATINGS
I think we all prefer the gruntled and consolate Max to the disgruntled and disconsolate one......

User Rank
Author
Re: mercurial Max
10/26/2013 5:22:43 PM
NO RATINGS
@David: I think we all prefer the gruntled and consolate Max to the disgruntled and disconsolate one......

To know me is to love me, whatever my state of gruntlement LOL

User Rank
Author
Re: Shaft encoder
10/26/2013 3:13:55 AM
NO RATINGS
Hi Max: I can certainly say that Crusty knows nothing about robot building, but I do wonder about why you need a shaft encoder, and would that be three? one per wheel?

It seems to my mind that DC motors of the old school have comutators and that you can count the number and speed of segments being powered to determine shaft rotation speed. I did this years ago with a guy called John Ewins for a motor speed controller, for a very accurate tape cassette recorder. Design was published in Wireless World probably 35 years ago.

If you are using stepper motors then you know how fast and how many steps you are sending to the motor.

So why the shaft encoder? It will not give any more information about wheel slip versus distance, or does it? and you are still going to have to count the pulses in the Arduino code.

Though I would drop this in as everyone is helping you on the motors at the moment.

I will be going through similar problems as I am going to try to make an XYZ axis plotter with a lazer head, which will write PCB etches direct to photo sensitive resist coated euro boards.

Any one up for a Kickstarter project with me on this, or has someone got there before me?

Happy days are here again.

User Rank
Author
Re: Shaft encoder
10/26/2013 5:51:31 AM
NO RATINGS
@Crusty1....

> "an XYZ axis plotter with a lazer head, which will write PCB etches direct to photo sensitive resist coated euro boards."

> "Any one up for a Kickstarter project with me on this, or has someone got there before me?"

I'd be in if I could afford it - damn good idea!    I got some goodies which were used for writing on drawings - they held a pen and had an X-Y drive and a solenoid to lift / lower the pen.    I thought about modifying them - putting a small motor and mill on it but it would weigh too much - drawing pens are pretty light.  However a laser diode is a different matter.  Also though the X drive was a good few inches the Y drive was only about an inch at the most - enought for writing one or two lines of text.   So only very small PCBs.    You've obviously given this a lot more thought.  Let me know if you get any further with it.

User Rank
Author
Re: PCB lazer plotter
10/26/2013 6:44:45 AM
NO RATINGS

I have been thinking about this for some time. 30 to 40 years ago, I got to like XY plotters when I worked in the LTE labs, where I programmed one to work of an Apple IIe, sadly the plotter is long gone, but I do still have a working Apple IIe.

I am think that XY tables are now coming down in price, so it would be worth a look at using a lazer instead of a fibre pen, to draw on a sensitised surface.

Do you think Max might loan me his 3D printer? It has XY an Z axis movement and the lazer could go in place of the printer head?

Well thats another avenue of research using the cheapest 3D printer, instead of a milling table, which has the greast accuracy?

Your little plotter would be good, now the size of components are shrinking?

What type of laser do I need? Can I use a CD lazer with its constant focus tech.

How do I get my Mac book to spell check on these post boxes while typeing.

So many questions? To few answers.

User Rank
Author
Re: PCB lazer plotter
10/26/2013 7:29:01 AM
NO RATINGS
Hi Crusty

- I don't know where you would get an x-y table, but I guess you could get such a thing somewhere...anyone know where?

- I think you'd have to wait a bit before Max will lend you his 3D printer, especially if you want to cannibalise it, but you could always ask :-)

- by a happy coincidence I have two of my little writers.  They have a couple of steppers in them for X and Y motion, and a solenoid for Pen up/down.  And a uC board for driving them.  And a keyboard for inputting the text.   It would be a simple matter to rip out the guts and connect the Steppers / Solenoid to something else.   If you're serious about this and would like one, I'll send it over....not sure how much the postage would be but it couldn't be worse than the parcels we send to the wife's mom in Zimbabwe.... Let me know.

- If it's a true laser you wouldn't need to up/down it, just turn it on and off.  What you would have to worry about is the beam size compared to the step size, the beam intensity and time to correctly expose a "pixel", and whether the sensitised PCB is sensitive to red light (they usually want UV - can you get UV lasers?)  You might be able to get a UV LED and focus it with optics....

- There does not seem to be a spell check in these post windows.  I can spell, but my fingers don't seem to have mastered it.....

User Rank
Author
Re: PCB lazer plotter
10/26/2013 11:16:43 AM
NO RATINGS
@David : I think I have the XY table worked out Proxxon Micromot KT 70 MICRO Compound Table £79 to £86 It gets good reviews from the scientific comunity for accuracy in optical and microscopy usage. Probaly has enough travel to suit the boards I want to make. easily converted to CNC control.

Now ned to get Margaret to agree the cost.

User Rank
Author
Re: PCB lazer plotter
10/26/2013 5:03:47 PM
NO RATINGS
@Crusty.... Very nice.... but I note the specs

Table size 200 x 70mm. X travel 134mm and Y travel 46mm,

Is that enough?  46 mm is pretty limiting.  howw would you do a eurocard with that?

(but I'd love one for my drill press....)

User Rank
Author
Re: PCB lazer plotter
10/27/2013 4:28:31 AM
NO RATINGS
@David, Yes a limited bed size, but as a test bed for the idea it has everything going for it. Even the ability to put in the drill holes.

And it will also fit on my lathe and vertical drill so I get the best of both worlds if the idea is a failure. As luck would have it my Kistarter backing for Microduino presents me with a Microduino stepper kit for 3D printing, so the table can also work for small part printing.

I shall order the table today and wait for all the other bits to come together. Looks like much of the glue circuits will be on Veroboard which is always my fall back PCB.

Thinking about it, I can always put the table to work as a micro milling cutter and mill some circuit boards straight from the copper.

Will try everthing out with and up down fibre pen and paper before moving to a board.

I can see that this is going to turn into a Crusty Bits blog at some stage. Watch out Max!

Life got hectic when I started to rebuild my old UK101 in an FPGA, little did I think I would be looking at home PCB manufacture.

User Rank
Author
Re: Shaft encoder
10/26/2013 5:36:43 PM
NO RATINGS
@Crusty: So why the shaft encoder? It will not give any more information about wheel slip versus distance, or does it? and you are still going to have to count the pulses in the Arduino code.

First of all there would be three shaft encoders -- one per wheel. Depending on your motor, you can mount them on the back-end of the shaft (before the gearing) or on the output/drive shaft (after the gearing).

The main reason for having them is to provide another way to measure what the robot is actually doing compared to what it thinks it's doing. Also, there's the point that we have the three motrs, so the way they are mounted means that even if we are going "forward" (say an axis from the center directly betwen two of the wheels -- see my previous blog on this topic), a complete rotation of the wheel doesn't actually equate to the robot travelling the same distance as the circumpherance of the wheel.

Don't worry about my Arduino spending all of its time counting pulses from the encoders -- it won't be spending any time doing this -- based on Duane's current "Secret Squirrel" project, all of the boring counting stuff will be off-loaded to distributed sensor processors ... we'll be talking about this more soon...

User Rank
Author
Re: Shaft encoder
10/26/2013 5:38:32 PM
NO RATINGS
@Crusty: Happy days are here again.

Every day is a happy day when (a) I'm in it and (b) we're all learning something new and interesting :-)

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/26/2013 5:40:05 AM
NO RATINGS
@Max Crusty speaks for me too on this one - what did you want to do with your shaft encoder data?   If for speed control or distance measurement you'd get some inaccuracy from slippage - especially if your wheels could be driving at other than 0 degrees to the direction of travel?   And I seem to remember you were going to have an on-board accellerometer?   From which you could get fairly accurate measurements for speed and distance?  Speed control from an accellerometer would (to me) be a fairly horrifying conrtol system to implement, but I seem to remember also that you got your degree in control systems, so to a man of your abilities this should be a mere bagatelle?

User Rank
Author
Re:Robot Movement feedback
10/26/2013 2:53:16 PM
NO RATINGS
For a three wheel robot like that, especially running on carpet, I prefer to use a pair of optical mice for movement feedback.  It is better if you can use a relay lens to space the mouse sensor up from the floor a little.

User Rank
Author
Re:Robot Movement feedback
10/26/2013 5:44:44 PM
NO RATINGS
@Douglas: For a three wheel robot like that, especially running on carpet, I prefer to use a pair of optical mice for movement feedback.  It is better if you can use a relay lens to space the mouse sensor up from the floor a little.

Tell me more (like whats a "relay lens") -- can you email me at max.maxfield@ubm.com?

User Rank
Author
Re:Robot Movement feedback
10/26/2013 9:59:30 PM
NO RATINGS
A relay lens is a lens or lens set that replicates an image on a different imaging plane with little or no modification.  http://en.wikipedia.org/wiki/Relay_lens  A borescope is an extreme example.

In this case a double convex lens can focus the floor on the optical mouse chip without having the chip too close to the floor.  I once built a sensor to track the slimey encrusted bottom of a ship for a ship hull inspection robot where the lens also sealed against seawater and provided a 3:1 optical motion reduction so the robot could go faster than the mouse wanted to track.  The robot wheels tended to slide on the hull but the optical tracker could track without touching.

User Rank
Author
Re:Robot Movement feedback
10/27/2013 2:25:07 PM
NO RATINGS
@Douglas: I once built a sensor to track the slimey encrusted bottom of a ship for a ship hull inspection robot...

Wow -- it sounds like you have a mega-interesting job!!!

User Rank
Author
Re:Robot Movement feedback
10/27/2013 3:17:18 PM
NO RATINGS
Interesting yes, but not so profitable.  The company (Imetrix) I built that sensor for went bankrupt in 2002.  The patent application died with the company.

User Rank
Author
Re:Robot Movement feedback
10/26/2013 9:10:54 PM
NO RATINGS
Douglas - re: "a pair of optical mice for movement feedback"

That's quite clever. I hadn't thought about something like that. I certainly have a few old mice that don't get any use any more.

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/26/2013 5:42:24 PM
NO RATINGS
@David: And I seem to remember you were going to have an on-board accellerometer?

Yup -- also gyroscopic sensors and a magnetometer. Also ultrasonic range sensors. However, talking to Adam (Aeroengineer) yesterday, he pointed out that untrasonic measurements can be affected by temperature and humitidy, so I'm going to have to have those sensors also. Since this is just a platform for me to play with, I'm going to load it with sensors and then get the robot to use whatever is most appropriate for what it's trying to do at the time (mostly this will involve sneaking up behind the dog and then making a loud noise :-)

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/25/2013 4:32:44 PM
NO RATINGS
now I'm curious! I want to know what you guys are working on!

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/25/2013 4:50:22 PM
NO RATINGS
@Caleb: I want to know what you guys are working on!

When you hear, you'll be squealing like a schoolgirl also :-)

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/25/2013 5:13:32 PM
NO RATINGS
I only squeel like a schoolgirl when I get scared Max. Are you going to scare me with this? Oh also when I met Keepon.

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/26/2013 5:21:04 PM
NO RATINGS
@Caleb: Oh also when I met Keepon.

You met Keepon? He never mentioned it to me LOL

I  LOVE that little thing (not sure quite what to call it)

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/25/2013 6:58:08 PM
NO RATINGS
Caleb / Max - Mostly I'm working on putting in all of the features I accidentally left out of version 1.

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/26/2013 5:26:47 PM
NO RATINGS
@Duane: Mostly I'm working on putting in all of the features I accidentally left out of version 1.

My problem is that I tend to over engineer everything -- so I spend a lot of my time TAKING OUT a lot of the features I accidently put into version 1 LOL

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/26/2013 4:53:43 PM
NO RATINGS
@Max The Magnificent: When you hear, you'll be squealing like a schoolgirl also :-)

As a former schoolgirl, I resent your implication.

(But I did chuckle a little.)

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/26/2013 5:35:22 PM
NO RATINGS
Now there's a conundrum: how to squeal without offending Susan??

I've heard of stuck pigs being used for this purpose, but we'll probably offend the animal rights lobby....

And tyres (oops...tires) squeal as well when pushed.  But they don't evoke the same sense of excitement.

So I think we're stuck with schoolgirls.  Did you never squeal over your favourite pop idol, Susan?   Even if you didn't, I reckon the fact that Max and Caleb squeal over Keepon gives you plenty of ammunition for having a dig at them in the future :-)

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/26/2013 5:50:49 PM
NO RATINGS
@David: Now there's a conundrum: how to squeal without offending Susan??

Start practicing and we'll see how well you do when you cme to EE Live! 2014

That reminds me of the old Zen thing... "If a man says something in the middle of the forest and there is no woman around to hear him, is he still wrong?" LOL

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/26/2013 6:06:59 PM
NO RATINGS
Hi David: LOL. The pig did cross my mind.  (As in male-chauvinist...ha ha.. I could not resist that one.) I don't want to distract from the topic anymore, but I'm just saying that school boys can squeal as much as girls, and some of them even have higher voices for a time. And yes there are usually electronics involved when boys squeal. (I know...I gave a coworker an Enocean energy harvesting dev kit.  She came back the next day and said her teenaged son squealed and didn't want to go to the concert or sports event that night with his dad. He wanted to stay home and tinker with the dev kit.)

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/27/2013 2:23:25 PM
NO RATINGS
@Susan: I'm just saying that school boys can squeal as much as girls, and some of them even have higher voices for a time.

OK, who have you been talking to? That was a one-time incident and I have an excuse!!! :-)

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/26/2013 9:15:19 PM
NO RATINGS
David - re "how to squeal without offending"

Motor drivers (mostly higher powered than Max is using) can emit a pretty harsh squeel at the wrong PWM frequency. Give the subject, I'd suggest squeeling like a motor driver.

User Rank
Author
Re: What does "Torque: 0.78Kg-cm (rated load)" mean?
10/26/2013 5:47:39 PM
NO RATINGS
@Susan: As a former schoolgirl, I resent your implication.

Are you saying that you never once squealed when you were a schoolgirl? Although it's a long time now since I was at school, I seem to recall that squealing was regarded as being obligatory LOL

User Rank
Author
Motors
10/25/2013 3:22:20 PM
NO RATINGS
While bowties are cool, I prefer more the pinstripe suit and a long overcoat.  That aside to things of lesser importance, motors.  DC electric motors are not that bad if you can get a few numbers out of them.  The two main numbers that you will need are the Stall Torque and the No Load Speed.  From there I plot that data on a chart with RPM on the x axis and torque on the y axis.  The line between these two points represents the operating capacity of the motor.  I generally try and keep the motor operating under 30% of max torque for continuous duty operations with brief moments in the 50% torque range.  This will keep the motors happy.  You can go higher if you have active cooling on the motor.  With this in hand, you will then need to determine the amount of torque that is needed on each wheel.  Because you are going to loose some efficiency in each wheel (most likely each of these wheels will be around 50% efficient in transmitting torque to the ground).  This should give you some general sizing parameters.  You would have to do some hand cranks assuming an acceleration rate how much torque would be needed to be delivered to the wheels, but this should give you a starting point.

User Rank
Author
Re: Motors
10/25/2013 3:44:20 PM
NO RATINGS
@aeroengineer: What I really want is for someone to say "This motor is just what you need" ... failing that, your starting point is just what I need :-)

User Rank
Author
Re: Motors
10/25/2013 4:11:58 PM
NO RATINGS
Unfortunately, I have not any background on motors dynamics, and torque specs are like black magic for me :-(

Having said this, thank you very much for the detail photo of the wheels. When I read your previous blog, I was wondering how the robot was going to deal with the "dragging" force of the remaining perpendicular wheel when moving in a straight line. Now the mechanism is crystal clear!!

User Rank
Author
Re: Motors
10/25/2013 6:29:50 PM
NO RATINGS
Aero - This is great information. My brain is missing a lot in terms of all things mechanical. I tend to just guess with motors and end up with more power, weight and cost than I really need.

User Rank
Author
Re: Motors
10/25/2013 6:38:31 PM
NO RATINGS
Duane,

No worries.  I really love DC and BLDC electric motors.  I have dedicated some amount of study to them.  DC electric motors are easier to understand and easier to control, but BLDC motors offer more power density and usually they have better efficiencies.  This is not always the case, but it is a good generalization.

One thing, though that I have found by creating the simple chart that I described is that you can then you can back out how much torque you are actually using and then size your next round of motors more appropriately.  If you take your current motor and make that chart, and then you put the motor under the worst load that you are expecting, you can then measure the RPM of the motor (assuming that you have an encoder and some way to record this).  Once you have this RPM, you can go back to the chart you created and just fine on the line the value of the RPM.  You then read on the Y axis the torque.  Now you have a better estimate for your next round of motors.

Oh and did you get my email on how to solve your motor adaptor problem?  I think that it will work for you.  Let me know if you need any help getting that drawn up.  I can help out with that.

User Rank
Author
Re: Motors
10/25/2013 6:56:37 PM
NO RATINGS
Aero - I've got a motor I'm dealing with (the one I emailed about) that produces 8.5 inch pounds of torque. The limited data I have gives a current of 16 Amps. I'm assuming that's stall current, but it doesn't say.

One of the challenges for me is translating the weight of a robot into power required to move it. It would have to consider weight, rolling resistance, desired acceleration a dn any amount of slope I might want. I suppose I qould emperically determine how much force it takes to move something, but that means I can't really design it until after I've designed and built it.

I'm not sure about a plastic adapter (from 4mm square shaft to something round). I don't know how well the plastic would hold up. Short of getting a piece of metal machined, I just had another thought. I could get a pair of flat L brackets and bolt the together suchb that they have a 4mm square in the middle and four ends sticking out that I could then bolt to a wheel or something. Does that sound workable?

User Rank
Author
Re: Motors
10/25/2013 6:59:14 PM
NO RATINGS
Do you know what the no load speed of the motor is?

User Rank
Author
Re: Motors
10/25/2013 7:08:35 PM
NO RATINGS
I do. No load 500 Rpm, 250 rpm at rated torque.

User Rank
Author
Re: Motors
10/26/2013 5:24:38 PM
NO RATINGS
@Adam (a.k.a. Aeroengineer): Oh and did you get my email on how to solve your motor adaptor problem?  I think that it will work for you.  Let me know if you need any help getting that drawn up.  I can help out with that.

Are you talking to me or to Duane (I haven't checked my email yet today)

User Rank
Author
Re: Motors
10/26/2013 5:27:47 PM
NO RATINGS
@Max, that was towards Duane, though I did send you an email yesterday of something that you might be able to use as motor mounts.

User Rank
Author
Re: Motors
10/26/2013 5:29:28 PM
NO RATINGS
@Adam: ...that was towards Duane, though I did send you an email yesterday of something that you might be able to use as motor mounts.

I realized that just after I'd sent my original comment -- sorry -- I should take the time to peruse and ponder :-)

User Rank
Author
Motors R us
10/25/2013 7:23:26 PM
NO RATINGS
Max - I've bought a number of motors from Surpluscenter. They have a pretty wide variety. Ov course, since they're selling surplus, you never quite know if you'll be able to buy the same one twice. But they have a good selection and ship things pretty quickly.

User Rank
Author
Re: Motors R us
10/26/2013 5:28:00 PM
NO RATINGS
@Duane: I've bought a number of motors from Surpluscenter.

Cool Beans -- I'll take a look over there

User Rank
Author
using magnets for feedback
10/27/2013 5:29:22 AM
NO RATINGS
Hi MAx.

I've used magnets on at least 3 actuator projects .

----------------------------------------

Austria Microsystems make a good range of encoder chips & magnets, although some of the SMD packages are a bit small.

http://www.ams.com/eng/Products/Magnetic-Position-Sensors

These typically resolve the position of the magnet to at least 256counts , and usually use I2C or similar. You can daisy chain the chips with SPI too. These are good, but can be finicky about spacing above the magnet.

This magnet could go on the wheel.

----

Alternatively if you use a 2pole magnet, you can use a magnetic compass chip, and this can be about 10mm away from the magnet, which might help in your geometry, I've used a magnetic compass chip this way, as a proof of concept for retrofitting the Austria Microsystem chips as an upgrade to reed switches.

-----------------

Off the shelf linear actuators almost always use a 2pole to 6pole ring magnet attached to the motor or a gear shaft with a screw through the middle. And then standard hall effect switches.

---------------

Note if making your own , you must use "Latching" hall effect sensors

---------------

I also did a batch of about 100 of gluing encoders to the back of a gear motor,

(insert picture here???? the upload image from computer button has dissappeared?)

This had a 4mm stub shaft sticking out the back of the motor. You take a "Diametrically polarised" disc magnet (about 5mm across) ,  pick it up with bamboo tweezers put a pinhead of polyurethane on the magnet, then place it on the slowly rotating motor shaft, give it a nudge with the tweezers and it will centralise. You then put two half-pea sized globs on the PCB and push it onto the rear of the motor, and secure with a rubber band while the PU sets. The power is on all the time, so you should see both LED's flashing.

These don't usually work on the type of gearmotor you have there, as the motor shaft is flush on this motor style.

---------

You can just take some of the 3 leaded Hall effects, solder them to a bit of veroboard, and glue this on the motor, The magnet/hall effect combo is quite tolerant of positioning. (Unlike slotted disk optos)

-----------

Ok Doing the Quad encoder in Firmware

(a) There is a booby trap in the way Atmel do the pin change interrupts, while you can get a pin chnage interrupt on every single pin, in practice there are only 4 pin change interrupts, one for each port, i.e. A , B,C,D. So you must hook up the "A" channel of your first motor to say any of the A pins, and the "B" channel of your second motor to say any of the B pins, and the third one to any "C" pin. The "B" encoder channels can go aon any pin.

(b) The PCI is set up to go off for any change on hall effect A , so all the ISR has to do is add one if hall effect A and B are both the same , or subtract one if different.

Here is some sample code:

Ew_pulse_isr:
Then Ew_position_long = Ew_position_long - Ew_step_long
Else Ew_position_long = Ew_position_long + Ew_step_long
Return

Note you also get a free "multiply by scaling factor" thrown into the above!

in my case Ew_position_long is a fixed point representation, where the top 16bits are the sun angle in minutes, and the bottom sixteen are the fraction, (so you just map the top 16 bits as an integer and ignore the fraction) the scale factor is embedded in  Ew_step_long which equals 8509 with my particular gearing, this is basically a fraction i.e.  8509/65536 = 1/7.7019 , so in my case I move 1 minute (= 1/4 of a degree) with 7.7 counts , and as there are two counts per revolution, this is nearly 4 turns on the motor.

Have fun!

User Rank
Author
Re: using magnets for feedback
10/27/2013 2:27:38 PM
NO RATINGS
@salbayeng: Have fun!

I will do so -- thanks for all the advice -- keep watching for my future columns on this robot topic.

User Rank
Author
Re: using magnets for feedback
10/28/2013 3:22:30 AM
NO RATINGS
OK stumbled on this while looking at something un-related: it's an encoder compatible with those little 30mm gearmotors:

Robotshop has omni wheels (\$4 to \$10) and motor brackets , so you can build the whole thing from parts.

encoder :  RB-Lyn-217   \$31   (400ppr optical)

Motor :  RB-Hsi-05      \$22

Bracket :  MMT-02   \$8

(Note the 400PPR will be too high a countrate for the simple interrupt type scheme I suggested earlier.)

-------------

Ahh here we go

http://www.robotshop.com/en/pololu-gearmotor-encoder-2274.html

\$36 gets you motor + encoder (they have a couple of different speed options), this is a a nice planetry gearbox as well.

It's only a 1" motor , 4mm shaft, maybe too small?

----------------------

Note the three wheel base you were looking at is back in stock on 11 november anyway.

User Rank
Author
Re: using magnets for feedback
10/28/2013 12:49:29 PM
NO RATINGS
@salbayeng: OK stumbled on this while looking at something un-related...

Wonderful -- thanks for the info -- I'm now contemplating furiously :-)

User Rank
Author
Wheels
12/19/2013 6:49:39 PM
NO RATINGS
"Unless anyone offers a better suggestion, I'm looking at 4-inch-diameter FXA156 (4202) transwheels from the folks at Kornylak Corporation."

You only need one;

See Honda HOT Drive System

User Rank
Author
Re: Wheels
12/20/2013 11:15:17 AM
NO RATINGS
@csquared0: You only need one; See Honda HOT Drive System

I've seen that before -- I would LOVE one of these!!!

Maybe for my next robot...