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 / 22181
22180  |  22182
Subject: 
YAL, Yet Another LegWay
Newsgroups: 
lugnet.robotics, lugnet.robotics.rcx.legos, lugnet.announce
Followup-To: 
lugnet.robotics
Date: 
Thu, 5 Feb 2004 09:43:34 GMT
Highlighted: 
!! (details)
Viewed: 
10037 times
  
YAL: Yet Another LegWay



Allen Foster and Harold Jarvie posts showed me that it was possible to build a LEGO-only self-balancing robot, inspired by the famous Steve Hassenplug’s LegWay.

Here are some details of my implementation, using two regular light sensor to monitor YAL inclination.



The code is a simple PID algorithm implemented in BrickOS, direct translation of Allen Foster code. The input comes from front and back light sensors difference, the output is applied to both motors.

Yal works best with diffused overhead lighting and doesn’t like at all lateral lights (windows)

Here are some movies (Quick Time, 0.5 to 1Mb)

Even Better : Frédéric Siva’s single light sensor version

Frédéric modified the code to make YAL work using a single light sensor: a RIS-only self balancing robot!



Here is Frédéric’s modified code

Slightly less stable than its 2 sensors brother, it is nonetheless quite convincing, as shown in this movie (AVI, 1Mb)

Congratulations, Frédéric!

Philo


Many thanks to John Hansen, whose BricxCC and Cygwin/BrickOS installers made BrickOS palatable to average Windows users like me !



Message has 6 Replies:
  Re: YAL, Yet Another LegWay
 
(...) This is really cool. It's great to see what everyone's done with a really simple idea. Very nice. Steve (21 years ago, 5-Feb-04, to lugnet.robotics, FTX)
  Re: YAL, Yet Another LegWay
 
Oooh! I know what I'll be building this weekend! Incredible well done, Steve showed the path and you guys walked it :) (21 years ago, 6-Feb-04, to lugnet.robotics)
  Re: YAL, Yet Another LegWay
 
(...) Very nice, Philo. Looks very stable. I guess the next job is to get it to respond to the LEGO remote ;) You could even implement forwards/backwards by having the remote shift a weight on the LegWay!! ROSCO (21 years ago, 7-Feb-04, to lugnet.robotics, FTX)
  Re: YAL, Yet Another LegWay
 
(...) I built one of these yesterday, and it works surprisingly well! I like the very simple design. Like Steve H's original LegWay, it requires very few parts. Although it is a little tricky to put it together. I found that the performance of the (...) (21 years ago, 7-Feb-04, to lugnet.robotics, FTX)
  Re: YAL, Yet Another LegWay
 
(...) Hey Philo, I was just looking over your code, and I think if you change this line: pid = (Kd * errdiff + Kp * err + Ki * errint) /3000l; to something like this: pid = (Kd * errdiff + Kp * err + Ki * errint) /3000l + ForwardOffset; then when (...) (21 years ago, 9-Feb-04, to lugnet.robotics, FTX)
  Re: YAL, Yet Another LegWay
 
(...) (18 years ago, 12-Nov-06, to lugnet.robotics, FTX)  

14 Messages in This Thread:






Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Contact Recovery Nerd for Speedy USDT / BTC Recovery
11 hours ago
Custom Search

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