RCX 1.0 Motor back-EMF measuring

This is where you talk about the RCX hardware related topics such as the brick, sensors, LEGO pieces, etc

Moderator: roger

RCX 1.0 Motor back-EMF measuring

Postby Urrakka » Tue Jul 24, 2007 4:29 am

Hello,

I've been learning how to program a RCX 1.0 brick using lejos to hopefully help my community college teach a range of programing classes. I've been having lots of fun building robot designs and programming them accordingly.
All I have to use is a 217 piece "Mindstroms for Schools" set.

I quickly learned that the touch sensors aren't very sensitive and that the light sensor is extremely versatile. It's a shame I only have one. I've successfully programmed the bot to avoid obstacles with the proximity sensor. The bot mindlessly runs around great but the only catch is the motors may stall from time to time on an object. Or the bot is easily foiled by carpet in which again the motors stall.

Is there any way to have the RCX recognize this stall?

I've been searching all around and I'm afraid I can't do this without purchasing extra sensors. I'd like to avoid this and see how far I can push the limits of this 217 piece set. Being able to do something meaningful with the back-EMF is like the holy grail to me. It would solve quite a few problems.

I've even attempted to attach a lead directly from the motor port to the sensor port. While I can read the load on motor (0 spinning free 100 loaded/stalled) I can't do anything useful with this as I lose functionality of either forward or reverse.

This is my last resort. From what I've learned after a few days of research all signs point to NO. But I am hoping that just maybe someone else can provide a bit more information on why I can or can't use the stock pieces to detect back-EMF and have the bot free itself from a jam.

Thanks.
Urrakka
New User
 
Posts: 1
Joined: Tue Jul 24, 2007 3:22 am

Stall

Postby mdsmitty » Fri Aug 10, 2007 4:05 am

I've used rotaion sensors in the past to check for stalls. set the value of the sensor to a variable wait a few and compare. if its not staled set the variable again and keep going.
mdsmitty
Novice
 
Posts: 72
Joined: Tue Feb 27, 2007 3:07 am


Return to RCX Hardware

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff