A question of lego..
Mar. 21st, 2006 12:30 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Does anyone know what the current status of Lego robotics and interfacing with Linux is like?
Let me explain..
My house has suffered a few power or gas failures recently. They have been entirely our fault, due to the pre-pay meter running out.
burritob suggested we should hook a webcam up and keep track of the credit that way. Hell, we might even be able to do OCR on it. As I have spare linux-compatible webcams, this would be fine, except that one of the meters needs you to press a button in order to display remaining credit.
So, I'm wondering what state Lego Robotics stuff is like these days. It all came along too late after my childhood for me to have played with it, but any excuse to get some out again is good.
Does anyone know if you can directly control stuff though? Eg. I want to write a program, that will run on Linux, that can give the Lego commands to turn motors and stuff, so I could put the webcam on a sliding rail that moves between the two meters, and has another motor that extends a rod to push the "display credit" button.
Is that sort of thing possible? I think I've seen Mindstorms demos that looked like it was all standalone - eg. you program it once, but then it just runs off and executes the program, rather than continues to receive input from the PC. I would need to have interaction with the PC though, in order to take the webcam shot at the correct time.
Any suggestions on other technology to use?
Let me explain..
My house has suffered a few power or gas failures recently. They have been entirely our fault, due to the pre-pay meter running out.
![[livejournal.com profile]](https://www.dreamwidth.org/img/external/lj-userinfo.gif)
So, I'm wondering what state Lego Robotics stuff is like these days. It all came along too late after my childhood for me to have played with it, but any excuse to get some out again is good.
Does anyone know if you can directly control stuff though? Eg. I want to write a program, that will run on Linux, that can give the Lego commands to turn motors and stuff, so I could put the webcam on a sliding rail that moves between the two meters, and has another motor that extends a rod to push the "display credit" button.
Is that sort of thing possible? I think I've seen Mindstorms demos that looked like it was all standalone - eg. you program it once, but then it just runs off and executes the program, rather than continues to receive input from the PC. I would need to have interaction with the PC though, in order to take the webcam shot at the correct time.
Any suggestions on other technology to use?
(no subject)
Date: 2006-03-21 12:43 pm (UTC)(no subject)
Date: 2006-03-21 12:49 pm (UTC)I gather they have support for various lego-brick sensors and actuators, but do they have any data I/O ports? (ie. to signal to the PC that "I'm in place, take picture now", or to receive a "picture taken, please move to position #2 now" message)
I guess it might be possible to hack something up with a parallel port pretending to be a light-brick, and then have the mindstorm controller blink messages across at 1bps, but that seems a bit of a kludge.
(no subject)
Date: 2006-03-21 12:55 pm (UTC)Can't say I recall any of the specs, I'm afraid, been a while since I poked at it last.
(no subject)
Date: 2006-03-21 12:45 pm (UTC)It may also be worth checking out Make magazine and seeing if there's anything in their online archives.
(no subject)
Date: 2006-03-21 12:48 pm (UTC)I think this is probably a technical solution for a human problem - just feed your meter regularly once a week.
(no subject)
Date: 2006-03-21 12:51 pm (UTC)Oh, absolutely! :)
(no subject)
Date: 2006-04-10 02:21 am (UTC)coincidentally, the only thing never stolen on our estate were 50p coins. you could have a bucket with 1000 of them, and you're place could be stripped clean, but the coins would be left to keep you warm.
as a fellow techgeek, i applaud your interest in a technologicla solution - thing is - you'd still have to rememebr ot feed the 'bot so it had somehtign to feed the meter with.
is there anywhere in that godforsaken place that has moved on from the 70s yet?
(no subject)
Date: 2006-04-10 10:17 am (UTC)(no subject)
Date: 2006-04-10 11:04 am (UTC)hope your new job is good/fun/interesting/doesn't-make-you-want-to-scream :)
i'mn enjoying part-time academicness ... being a technerd at a tech-oriented uni is fun.
(no subject)
Date: 2006-04-10 11:12 am (UTC)They have some new projects that I'm going to be working on that are really quite cool, and more interesting than I was expecting, actually!
(no subject)
Date: 2006-04-10 11:20 am (UTC)[arriving at work shouldn't be worse than the trip to get there.]
i'm enjoying my work and figure everyone else should too :)
(no subject)
Date: 2006-03-21 01:00 pm (UTC)Communications go via the IR tower. I seem to recall some fiddling to get the Linux driver for the USB tower to work, but the serial ones were fine and the USB driver has probably been sorted now.
(no subject)
Date: 2006-03-21 01:30 pm (UTC)(no subject)
Date: 2006-03-21 01:06 pm (UTC)(no subject)
Date: 2006-03-21 01:10 pm (UTC)Yeah, a clock and a finger.
Works like this:
- Clock buzzes to wake you up in the morning.
- You get up
- You do normal morning type stuff
- You then use 'finger' to push button and read meter
- If meter reading too low, get extra credit
- Repeat
Simple, effective, already used a gazillion times over and requires no extra kit or preocedural debugging! :)
Good luck with "the project" though. It'd be interesting to see the end result.
(no subject)
Date: 2006-03-21 01:11 pm (UTC)*doh!*
(no subject)
Date: 2006-03-21 01:21 pm (UTC)(no subject)
Date: 2006-03-21 01:23 pm (UTC)call the electricity company and say you'd like the prepay meter taken out and replaced with a normal meter that you get bills for quarterly, and pay by direct debit.
(no subject)
Date: 2006-03-21 01:26 pm (UTC)(no subject)
Date: 2006-04-10 11:06 am (UTC)they don't have to live there.
(no subject)
Date: 2006-03-31 04:02 pm (UTC)- stay up until after 2am, geeking or gaming
- clock buzzes to wake Toby up in the morning
- clock buzzes a bit more
- some strange buzzing noise, what on earth is it?
- sleep a while longer, with this strange dream about lots of buzzing bees
- wake up mid-morning, send an SMS to say you're going to be late for work
- turn of annoying buzzing alarm clock
- geek a bit
- head out to work in a rush
No time for that whole meter stuff ;-)
Speaking of work, hope the new job goes well for you next week Mr C. It's been a pleasure sitting next to you in the orifice all this time.
(no subject)
Date: 2006-03-21 01:40 pm (UTC)(no subject)
Date: 2006-04-10 11:11 am (UTC)but ... have you seen what geeks do with whiteboards? code, schematics, proposed designs for the robots we *must* have ...
(no subject)
Date: 2006-04-10 11:50 am (UTC)(no subject)
Date: 2006-04-10 12:33 pm (UTC)(no subject)
Date: 2006-03-21 01:40 pm (UTC)(no subject)
Date: 2006-03-21 01:45 pm (UTC)(no subject)
Date: 2006-03-21 07:31 pm (UTC)(no subject)
Date: 2006-03-21 10:00 pm (UTC)but yeah.. we really should work on changing the meters over somehow.
(no subject)
Date: 2006-03-21 10:07 pm (UTC)(no subject)
Date: 2006-03-21 11:12 pm (UTC)(no subject)
Date: 2006-03-21 11:17 pm (UTC)Since it costs nothing to revert to a pre-payment meter I can't see what the fuss is about.
(no subject)
Date: 2006-04-03 01:40 pm (UTC)I saw this article recently and thought you might be interested.
(no subject)
Date: 2006-04-03 06:29 pm (UTC)That's the next-gen Lego tech.. it's been talked about for a while, but it's still only coming out at the end of the year! :(
The current-gen Lego stuff is *still* selling for lots of money, sadly, even though it's about to be superceded.. (more's the pity.. in the end I didn't buy any lego mindstorms stuff, as even 2nd hand on ebay, it sells for 150-190 quid.. which is a lot for something to just check the gas meter.. I mean, we could just put 150 quid ON THE METER and never have to check it again! :)
(no subject)
Date: 2006-04-10 02:43 am (UTC)removals van?