Subject:
|
Re: LEGO Purism
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Fri, 9 Aug 2002 17:15:31 GMT
|
Original-From:
|
Steve Baker <sjbaker1@#stopspam#airmail.net>
|
Reply-To:
|
sjbaker1@+NoSpam+airmail.net
|
Viewed:
|
1580 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
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: ![](/news/x.gif) | | 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:
![](/news/x.gif) | | 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: ![Spybotics vs Cricket -Suzanne D. Rich (26-Jul-02 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: Spybotics vs Cricket -John Hansen (2-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![RE: Spybotics vs Cricket -Ralph Hempel (2-Aug-02 to lugnet.robotics.spybotics, lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: Spybotics vs Cricket -John Hansen (2-Aug-02 to lugnet.robotics.spybotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Spybotics vs Cricket -Philippe Hurbain (2-Aug-02 to lugnet.robotics.spybotics, lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Spybotics vs Cricket -lego-robotics@crynwr.com (Russell Nelson) (7-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Spybotics vs Cricket -Paul Andrews (8-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Spybotics vs Cricket -lego-robotics@crynwr.com (Russell Nelson) (11-Aug-02 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/68.gif) ![Re: Spybotics vs Cricket -Ken Koleda (7-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: Spybotics vs Cricket -John Barnes (7-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: Spybotics vs Cricket -Colin White (8-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Spybotics vs Cricket -lego-robotics@crynwr.com (Steve Baker) (8-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: Spybotics vs Cricket -Colin White (8-Aug-02 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Spybotics vs Cricket -lego-robotics@crynwr.com (Rob Limbaugh) (8-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Spybotics vs Cricket -Colin White (8-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Spybotics vs Cricket -lego-robotics@crynwr.com (Wap) (8-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Mindstorms Profitability, Demise of Technic, Bleak Future -lego-robotics@crynwr.com (The Gaff) (8-Aug-02 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Mindstorms Bleak Future - Bah! Purism Shmurism! -lego-robotics@crynwr.com (Bruce Boyes) (8-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: LEGO Purism -lego-robotics@crynwr.com (The Gaff) (8-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: LEGO Purism -Rob Hendrix (8-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: LEGO Purism -lego-robotics@crynwr.com (Steve Baker) (9-Aug-02 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![RE: LEGO Purism -Ralph Hempel (9-Aug-02 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/268.gif) ![Re: LEGO Purism -Paul Andrews (8-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: LEGO Purism -John Barnes (9-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: LEGO Purism -Paul Andrews (9-Aug-02 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/268.gif) ![Re: LEGO Purism -John Gerlach (9-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: LEGO Purism -John Barnes (9-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: LEGO Purism -Paul Andrews (10-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: measuring motor voltage on sensor input -lego-robotics@crynwr.com (Bruce Boyes) (10-Aug-02 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: LEGO Purism -Steve Hassenplug (9-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![You are here](/news/here.gif) ![](/news/46.gif) ![Re: LEGO Purism -Paul Andrews (10-Aug-02 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: LEGO Purism -Benjamin Medinets (10-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: LEGO Purism -lego-robotics@crynwr.com (Steve Baker) (10-Aug-02 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/268.gif) ![Re: LEGO Purism -lego-robotics@crynwr.com (Bruce Boyes) (9-Aug-02 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: LEGO Purism -lego-robotics@crynwr.com (Mike Payson) (9-Aug-02 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![RE: Mindstorms Bleak Future - Bah! Purism Shmurism! -Marco Correia (9-Aug-02 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Spybotics vs Cricket -lego-robotics@crynwr.com (Harri 'Junkarn' Manni) (8-Aug-02 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![RE: Spybotics vs Cricket -lego-robotics@crynwr.com (KrzysFl) (9-Aug-02 to lugnet.robotics)](/news/x.gif)
- 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
|
|
|
|