EL2ISA2

UPDATE MARCH 18 2014: Well, it's been silent in that project since it was finished. Now, after EL2ISA2 broke down because of a leaking battery he was waiting to be re-born. That time has come now. I proudly present the new main board for EL2ISA2

(Click on the pictures to get the big size.)

Left is the top side and right is the bottom side. U1 is a Atmega8 (but maybe a Atmega328) as the brain and U2 is a DRV8833 as motor driver. A MicroSD card MP3 module is waiting to give EL2ISA2 a voice. Now I still need time to put it together.

The new EL2ISA2 will get his own entry, so that one still stays "Done"

Older entries here:

Finally I got my own one. Thanks to my friend sending the mint candy can in R2D2 shape all the way from Germany to me at Shanghai. As a special thanks I named it after my friend.

Well, what to say. It's a metal can, the brain is an ATTiny85, the mucle is a L293D to drive this two tiny gear motors. Powered is the whole thing by just one LiPo battery 3.7V/200mAh.

Again, it's a proofe of concept what can be done with the ATTiny and some other components. Right now it's just doing the test program and driving around by changing the direction each 2 seconds. The tricky thing is, I just have one I/O pin left for a sensor. Later (probably tomorrow) I will try to get an IR sensor working. It's a TCRT5000, similar to the Sharp but much smaller. Any suggestions with that? Or just use a pair of IR LEDs?

Ok, enough writing...here comes the pictures (FYI: The videos are identical. The one on youku is just for the Chinese people since youtube is blocked here):

Gear motors

DIY board. Did not have a 16 pin socket for the L293D so I combined what I had and made this multi-chip-socket ;-) for ATTiny85 and L293D

No comment to this :-S

Wired up and ready for test run.

Still space in the can (my wife was complaining "Why not that R2D2 sound?) I am open for suggestions...I was thinking to put an additional sound thingy in and trigger it with maybe every time when it turns left...

Todo:

1. give him some eyes (see picture below) -> DONE

2. make him pretty with a bunch of LEDs -> DONE

3. give him a voice...just some beeps -> still searching for the right sound module

Problem solved. I don't know exactly what it was but after soldering the LEDs in the whole thing just worked ;-)

New video is coming soon up now!!!

UPDATE: March 28:

Test of operation time. Given the full charged LiPo 3.7V/200mAh the little can is running for 1:50 hours with no break. Loads are the ATTiny, L293D, 2x LED. The running program is the one I attached here.

UPDAT MARCH 31:

Got the AtTiny singing "do re me fa so la ti do". Found the code for the sound function here: http://web.media.mit.edu/~leah/LilyPad/07_sound.html Now have to find out in what frequency Artoo is beeping and aso it's tone lenght to write a sequence of his beep's.

UPDATE APRIL 1/2:

As you know I let my robots also have fun...they need to get out sometimes too. Last Thursday EL2ISA2 got the chance to play pool. See the new video!!!

There is hope: http://item.taobao.com/item.htm?id=14179917693

UPDATE APRIL 5:

The sound module is working and the video is up loading. As soon as the video is finished you should be able to watch it here. I am sleeping now. ;-)

EPILOG:

Later I will update the link to the sound module, since I was using another one. After this project I realized that my hands are just too big for such tasks :-)

Finally I got the sound module running. It's not holding the recored sound when the power is off, so i attached a small LiPo 3.7V/70mAh on it to feed it permanently. One motor pin for the right motor reverse function acts as a trigger. When forward is LOW then it triggers the sound. The sound module and the Attiny shares a common ground. 

Recording sound with the microphone sucks since the quality and volume is very low. So I just plugged it into the earphone plug of the computer and recorded it with volume set to 20%...good enough.

PROJECT SUCCESSFUL DONE!!!

Drive around, avoid obstacles and beeps with R2D2 sound when facing an obstacle

  • Actuators / output devices: 2x tiny gear motors, 2x LED, 1x speaker
  • Control method: autonomous
  • CPU: attiny85
  • Operating system: Arduino ISP
  • Power source: 1x LiPo 3.7V 200mAh, 1x LiPo 3.7V/70mAh
  • Programming language: Arduino ISP
  • Sensors / input devices: IR sensor
  • Target environment: table, indoos

This is a companion discussion topic for the original entry at https://community.robotshop.com/robots/show/el2isa2

Excellent project

You gave me all sorts of ideas on how to make a little 8DIP uC dance! The one remaining pin issue is a tough one. If you’re content with a digital IR sensor I might suggest the GP2Y0D810Z0F. It’s a 10cm range on/off IR sensor. It’s a little tedious with the pitch of the pins but Pololu sells breakout boards for them. There is a 5cm version as well.

Those are great little gear motors. Where did you find them?

Thanks guys, that was really

Thanks guys, that was really fun to build him.

@Max: A second ATTiny would be possible but I wanna try it with one first.

@Gareth: Haha, yes you should grab one or a dozen :wink: Yep, the balance is one thing which is easy to handle with this kind of construction :wink:

@Jack: I was going to use the TCRT5000 (see updated description) but the first try to get a reliable signal out of it failed. Now I am thinking to use just 1 or 2 bright LEDs and one LDR to measure the changing light compared with the ambient light. The gear motors are from our local electronic store (well, it’s not a store it’s a huge 5 floor double buliding with estimated 5000 dealers :wink: and I am sure every single LMR member would get crazy there - next time I will take some photos and post it in a blog)

So cute! Makes me want to

So cute! Makes me want to have one! Where did you get those nice motors?

Thanks Gabriel. The gear

Thanks Gabriel. The gear motors are from our local electronic store and very cheap. 

Do they ship to Canada? I

Do they ship to Canada? I would like to get a pair. Or can you ship one pair for me? Let me know how much is it and I’ll Paypal you the money. Thanks!

Well, they don’t ship but I

Well, they don’t ship but I can :wink:

I would suggest slow shipping since these shipping costs are already more than the price for the motors not to mention DHL or some other services. 

about your sensor problem:

about your sensor problem: Are you doing an analog read on the sensor? If so, make sure you have the right pin, they are different than digital. Pin2 = Analog Input 1, Pin3 = Analog Input 3 and Pin4 = Analog Input 2.

 

attiny45_85pinout.png

Yeah, I figured this out

Yeah, I figured this out last night but still something wrong. will see if I get it done this evening.

I sent you a message.

I sent you a message.

Thanks, I replied, I hope

Thanks, I replied, I hope you get the message instead of the stupid mallware links…

This is Great

You have done an amazing job on this little guy.  He is cute as a button and so tiny to.  I am surprised you managed to fit it all into the can.  Thanks for showing him to us.

Thanks kingart, there is

Thanks kingart, there is still space inside to fit in a sound module (hopefully i get this working) because what would an R2D2 clone be without this typical beep…beeeeeeeep…beep…beep…beep :slight_smile:

I had to buy a few of those

I had to buy a few of those motors. Nice and micro, I couldn’t say no.

I like the placement and operation of the IR sensor. Works nice. I would like to see it make noise too. How cool would that be.

Yes Jack, the motors are

Yes Jack, the motors are really cool.

I am done with testing the sound function on the ATTiny without the tone command (as we know it’s not working with the ATTiny). Thanks to this website http://web.media.mit.edu/~leah/LilyPad/07_sound.html I could make my AtTiny playing a “do re me fa so la ti do” scale :wink:

Now comes the tricky part. How the hell can I measure the frequency and the tone lenght of Artoo’s beep’s? Any help there?

I am planning to use one of the motor pins for that, maybe the right motor reverse pin. It should not move the motor by playing the tone sequence i guess.

How about to use the reset pin for that? I heard that it can be used as a weak I/O pin but have to take care that you not pull it to ground.

 


He-he, read

He-he, read this: https://www.robotshop.com/letsmakerobots/node/23387

lol

Yes, I ran into difficulties myself. In the end I went with a small serial MP3 player module which has sampled R2 sounds on it. I cheated sorta :)

I think you’re going to need

I think you’re going to need some sort of audio spectrum analyzer (something like this perhaps) and samples of R2 boops and beeps to translate. You seem to have already found the other piece of the conversion puzzle.

Well, I see what you have

Well, I see what you have done…I tried to convert it to Arduino just now…it’s a pain in the b*** :slight_smile:

My MP3 players at home are all too big…and can’t be cut to fit into the can…my last hope is a sound module of those birthday cards.

OMG, that’s a bit complicate

OMG, that’s a bit complicate for this tiny project :wink: I am going with one of those sound modules and try to hack it to upload/record my own sound there. Those MP3 board you linked to is too big for that little can.