Arduino Forum

Community => Bar Sport => Topic started by: focalist on Jan 31, 2011, 10:04 pm

Title: Take my rovio for a spin!
Post by: focalist on Jan 31, 2011, 10:04 pm
Since the other thread was getting a lot off topic with folks playing with it (it is awfully fun), here's a fresh thread.

Below is the link to my Rovio, which has now been at least partially fixed.  The Rovio is a mobile webcam, it drives around using a web-control interface.  I picked this up at a junk shop, broken, for $5.  I've put in some AA NIMH's, some solder, and a few bits of wire to fix a circuit trace fault.  What an awesome toy.. fun, but I sure don't think I'd pay the $250 the thing actually sells for!

The battery capacity is rough, and I have to tweak some of the other stuff (Navigation beacons still not operating right), but it's mostly functional.

Take her for a drive!

http://24.60.232.215:9000 (http://24.60.232.215:9000)
Title: Re: Take my rovio for a spin!
Post by: focalist on Jan 31, 2011, 10:23 pm
FYI, in the finding of the API level controls for brightness and contrast, I discovered the required function:

"write_i2c"

With the appropriate information.  Yes, that said I2C.

Houston, we have an interface.
Title: Re: Take my rovio for a spin!
Post by: Valalvax on Jan 31, 2011, 10:26 pm
Time to throw some offroad wheels on it, a tracking beacon (for when we get it lost down the block) and let 'er outside
Title: Re: Take my rovio for a spin!
Post by: focalist on Jan 31, 2011, 10:31 pm
If this has I2C, then it's a master device to be sure.  I've not done any I2C interfacing, but it does seem fairly straightforward... it's just another name for Dallas two wire, right?  I assume that the Arduino can be set as a slave device and that way I should be able to assign it a bus endpoint number and be able to "talk" to it, right?

Here's where you hardcore guys may have some insight..
Title: Re: Take my rovio for a spin!
Post by: biocow on Jan 31, 2011, 11:01 pm
I was driving it and got attacked by a monkey!
Title: Re: Take my rovio for a spin!
Post by: focalist on Feb 01, 2011, 01:18 am
That's awesome.. My daughter is a bit of a ham... hehhe

BTW guys- I'm tweaking the video settings with an external program at the moment, so plz don't adjust anything under the Video tab... thanks!
Title: Re: Take my rovio for a spin!
Post by: Valalvax on Feb 01, 2011, 01:25 am
AHHHHHHHHHHHHHHHHH!!!!!!!!!!!!!!!!

I turned it around and... And.... IT WAS RIGHT THERE!!!!!!!!!!!!

I think it was a hand


IM BEING TAKEN HOSTAGE!!!
Title: Re: Take my rovio for a spin!
Post by: amacmullen14 on Feb 01, 2011, 01:50 am


I said in the other topic, there is a chance I may possibly have attacked your dog and you.
:)


I may also possibly have been the one spinning a second ago.
Title: Re: Take my rovio for a spin!
Post by: focalist on Feb 01, 2011, 02:20 am
hehehe.. giving it a little downtime to charge up a bit.. and to get kids to stop being pests.. but I'll bring it back online for a while again later... ;)
Title: Re: Take my rovio for a spin!
Post by: focalist on Feb 01, 2011, 04:36 am
Back online for about the next two hours... have fun if you wanna!
Title: Re: Take my rovio for a spin!
Post by: focalist on Feb 01, 2011, 07:45 pm
She's back online and ready... we're getting snowed in here, just doing some house work and then might actually get to some more amusing stuff later... 

I have to admit, it's cool knowing that who is driving it is somewhere halfway across the planet, potentially...

http://24.60.232.215:9000 (http://24.60.232.215:9000)
Title: Re: Take my rovio for a spin!
Post by: bld on Feb 01, 2011, 08:12 pm
bah, your dog got used to it already... Not interested in flashing lights or moving camera any longer...
Title: Re: Take my rovio for a spin!
Post by: focalist on Feb 01, 2011, 08:20 pm
heheh.. she freaks out at it when nobody is around, she must think whatever human is present must be controlling it otherwise ;)
Title: Re: Take my rovio for a spin!
Post by: bld on Feb 01, 2011, 08:22 pm
A bit like my cat when i had my wifitank running...

Kept poking it when it was standing still, then ran away when it was moving... Until he discovered it had sensors on, and wouldn't run into him, even when the people controlling it kept trying :P
Title: Re: Take my rovio for a spin!
Post by: focalist on Feb 01, 2011, 08:29 pm
Personally, I think the auto-docking is the coolest thing to watch.  Nice bit of automation there.

Other than the standard Rovio battery (which apparently have problems from the word go) I'm going to research what I can fit into the battery compartment.  Right now, it's just seven (two 1200MAH's are in parallel, the rest are 2200MAH in series, but these are used/older NIMH's.) AA NIMH rechargables.  The battery bay I will need to measure, but I'm pretty sure I can cobble or find something better than the 3000MaH pack that's standard for the Rovio.  The compartment I would speculate could hold 10-12 AA's easily, at worst.

Since the Rovio has I2C, I'll now be looking into interfacing to that.. which will mean I'll probably tap the power pack for Arduino power also.  A little extra capacity will always be good.

I figure an RC shop is a good idea as to where to look for a good (cheap) NIMH pack.. got any other brilliant ideas I haven't thought of?
Title: Re: Take my rovio for a spin!
Post by: biocow on Feb 01, 2011, 08:46 pm
Needs a pincher arm attached so we can move things.

And maybe throw on an LCD screen so we can type messages to you that you can read.
Title: Re: Take my rovio for a spin!
Post by: bld on Feb 01, 2011, 08:48 pm

Needs a pincher arm attached so we can move things.

And maybe throw on an LCD screen so we can type messages to you that you can read.

Or even better, one of those speech chips things, so it can say the message :D
Title: Re: Take my rovio for a spin!
Post by: biocow on Feb 01, 2011, 08:55 pm
Good call. Voicebox shield. Then there would be 2 way communication. (Well, except from an iPhone. I don't get sound on it from the Rovio.)
Title: Re: Take my rovio for a spin!
Post by: focalist on Feb 01, 2011, 09:05 pm
Actually, it supposedly has a speaker onboard and can be used.. though I don't see where in the web client that would be.  I know from the API that two-way audio is part of the spec.. and aftermarket user software has implemented Push-to-talk on the browser side, at least from one of the software descriptions I read online.  I'll be browsing what's been done, but since the API is entirely driven by the onboard web interface, probably the best solution would be to maybe wrapper it into an embeddable OCX or similar web lib.  From what i understand, the current implentation that uses PTT is IE6+ only.
Title: Re: Take my rovio for a spin!
Post by: Valalvax on Feb 02, 2011, 12:13 am

Actually, it supposedly has a speaker onboard and can be used.. though I don't see where in the web client that would be.  I know from the API that two-way audio is part of the spec.. and aftermarket user software has implemented Push-to-talk on the browser side, at least from one of the software descriptions I read online.  I'll be browsing what's been done, but since the API is entirely driven by the onboard web interface, probably the best solution would be to maybe wrapper it into an embeddable OCX or similar web lib.  From what i understand, the current implentation that uses PTT is IE6+ only.


I saw a volume slider for the onboard speaker, and turned it up, trying to get my computer to make noise
Title: Re: Take my rovio for a spin!
Post by: macegr on Feb 02, 2011, 01:09 am
I looked into the write_i2c command a long time ago. It would be great except that there is no way to set an I2C device address, it always writes to the camera chip address. Perhaps with some deeeeeeep hacking you could use the memory writing commands to set a new I2C address. But I had hoped to use I2C to bypass the nasty effect that every firmware update moves things around so that memory addresses are no longer valid.
Title: Re: Take my rovio for a spin!
Post by: smeezekitty on Feb 02, 2011, 01:41 am
How are multiple connections handled?

Title: Re: Take my rovio for a spin!
Post by: focalist on Feb 02, 2011, 02:12 am
it appears that multiple users connected actually all have control at the same time (or can act as spectators).  A good portion of the time I've also been connected, just watching as others drive her around.  By the way, as I keep referring to it as "Her", she deserves a name, don't you think?  Got any thoughts, guys?

By the way, it seems when it docks and at other times, the camera brightness resets to unusable values.  This is the simple app I am using, typically I am setting the brightness to .6, min framerate to 1, and AGC ceiling to 3.  I leave the contrast.  Seems to be the best overall.

Interestingly, the debug command set also includes read and write memory.. so maybe it could be tricked ;)  .. I sure don't want to reverse engineer the embedded application..

If you want to tweak the video values, here's the application to do it.  Remember to set the IP/port in the interface.. it's just an HTML form

http://www.robocommunity.com/download/17526/RovioBrighter/ (http://www.robocommunity.com/download/17526/RovioBrighter/)
Title: Re: Take my rovio for a spin!
Post by: Valalvax on Feb 02, 2011, 02:27 am
I can't hear you talking, sorry...

I did get my picture taken, I fully expect that to be uploaded

Do you got a funny shaped fan?
Title: Re: Take my rovio for a spin!
Post by: focalist on Feb 02, 2011, 02:28 am
Yah... I got it from Lowe's... nice kinda avant garde.

Like the Purple walls?
Title: Re: Take my rovio for a spin!
Post by: Valalvax on Feb 02, 2011, 02:29 am
Thanks for stopping it for me :P

It tends to want to drive to the left, could you look at the wheels and see if they don't have hair caught up in them or something?
Title: Re: Take my rovio for a spin!
Post by: focalist on Feb 02, 2011, 02:30 am
Hmm.. will do.  Kinda need to vacuum, could just be dust or something.  If I remember right, the fan was only like $79, I already had the chain and cord.  We like it so much we may be getting a second for our bedroom.
Title: Re: Take my rovio for a spin!
Post by: kevinsa5 on Feb 02, 2011, 02:52 am
:D I attacked your vacuum cleaner

...and then your foot

...and then you when you tried to tie your shoe  :D

best laugh I've had in a long time, thanks!
Title: Re: Take my rovio for a spin!
Post by: focalist on Feb 02, 2011, 03:07 am
battery completely croaked on the way back to the base.. give it a few minutes to at least get a bit of a charge.  Kill this battery pack, it's spare AA's anyway, I'll be upgrading it soon enough.. well, assuming I can find a reasonable battery for under $20 or so..
Title: Re: Take my rovio for a spin!
Post by: focalist on Feb 02, 2011, 03:40 am
Quick- run over a MSP430 Launchpad -or- Pinhead from "Hellraiser"... your choice.  Or both ;)
Title: Re: Take my rovio for a spin!
Post by: kevinsa5 on Feb 02, 2011, 04:39 am
Not tyler, unfortunately. :D I'm unfamiliar with the rovio, how does it manage to dock itself and get the charger arranged correctly?
Title: Re: Take my rovio for a spin!
Post by: focalist on Feb 02, 2011, 04:52 am
yes it does, most of the time.. it's not getting a good charge due to use, but normally does well :)
Title: Re: Take my rovio for a spin!
Post by: jezuz on Feb 02, 2011, 05:00 am
Someone just waved to me  :smiley-eek:
Title: Re: Take my rovio for a spin!
Post by: focalist on Feb 02, 2011, 05:06 am
That would have been Yours Truly :)

Rebooting it atm... seems to have hung/crashed..

update... back online.
Title: Re: Take my rovio for a spin!
Post by: kevinsa5 on Feb 02, 2011, 05:54 am
what'cha watching?
Title: Re: Take my rovio for a spin!
Post by: focalist on Feb 02, 2011, 06:02 am
well, watching Family Guy and having a chill session with the wifey (she's the minor godess you see sitting next to the moronic me.)

So... it's midnight here and we're gonna have a little time to ourselves... going offline, but it'll be charging overnight, for a possible outing again tomorrow, and maybe a "carrying" tour of the historic snowfall here...
Title: Re: Take my rovio for a spin!
Post by: focalist on Feb 02, 2011, 08:02 pm
She's back online again..  Still looking for name suggestions.. During the coming week, will be working on it further, to see if I can get the audio systems working properly.. after that, it's time to figure out how to piggyback on I2C and connect up an Arduino to expand the functionality..

http://24.60.232.215:9000 (http://24.60.232.215:9000)

Have fun...
Title: Re: Take my rovio for a spin!
Post by: biocow on Feb 02, 2011, 08:26 pm
Man, I was just watching some sports center then tried to go home and got held up at gun point!
Title: Re: Take my rovio for a spin!
Post by: smeezekitty on Feb 04, 2011, 04:11 am
I am getting a server not found error.