To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 18631
18630  |  18632
Subject: 
Re: LEGO Purism
Newsgroups: 
lugnet.robotics
Date: 
Fri, 9 Aug 2002 17:15:31 GMT
Original-From: 
Steve Baker <SJBAKER1@AIRMAIL.NETantispam>
Reply-To: 
sjbaker1@airmail.net+saynotospam+
Viewed: 
1800 times
  
Steve Hassenplug wrote:
I too like working within the existing constraints. It makes you creative.
Still. I'd kill for a stall sensor.

One way to do this, without adding any hardware is to check the internal
battery voltage.  I'm not sure if it's possible with the standard firmware
v2.0 (it wasn't possible with 1.0/1.5) but you can do it with replacemet
firmware, like BrickOS (formerly LegOS).

I've done it and had a great deal of success.  When the internal battery
voltage drops, there is some additional drain, like stalled or stressed motors.

You have to keep the 'normal' voltage up to date, and you also have to
ignore starting and stopping, but it does work.

Neat!

I guess the only drawback is that you don't know *which* motor stalled - but
most applications can probably live with that.

Anyway - you *CAN* do this with the RCX 2.0 firmware.  In NQC, you can call

     x = Batterylevel () ;

...the result is in millivolts.

Dunno how/if you get to that from the Lego programming environment though.

----------------------------- Steve Baker -------------------------------
Mail : <sjbaker1@airmail.net>   WorkMail: <sjbaker@link.com>
URLs : http://www.sjbaker.org
        http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net
        http://prettypoly.sf.net http://freeglut.sf.net
        http://toobular.sf.net   http://lodestone.sf.net



Message has 1 Reply:
  Re: LEGO Purism
 
(...) I don't suppose you have some code for this do you? I tried this some while back with no success :-(. I found that the battery voltage seemed to fluctuate too much for me to be able to detect a stall condition with any degree of certainty. (...) (22 years ago, 10-Aug-02, to lugnet.robotics)

Message is in Reply To:
  Re: LEGO Purism
 
(...) One way to do this, without adding any hardware is to check the internal battery voltage. I'm not sure if it's possible with the standard firmware v2.0 (it wasn't possible with 1.0/1.5) but you can do it with replacemet firmware, like BrickOS (...) (22 years ago, 9-Aug-02, to lugnet.robotics)

39 Messages in This Thread:















Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR