Mannys First Robot

Hi, i am new here and this is my first robot.

Inspired by the awesome tutorial by FritsL.
Of course, i made my own modifications. I wanted the tread-look to have it crawl around in my livingroom.
I salvaged parts from my old Computer Chassi and some parts from my broken 19" LCD Screen.

Of course, this thing falls apart a little bit now and then due to the doubble-sided rubber-tape not being strong enough.
The video shown is the first inital test.
I think i might have to tweak the AI of course and the amount of turning when encountered with an obstacle.

This stuff is real fun.
Gonna be doing more robots in the future.

Stuff to add to this guy:

1. Speaker (He will make noise and play different movie-themes in different situations.)

2. Diodes! (Of course. Need to glow in the dark. Green when pushing forward and red when obstacle is precent)

3. Powerswitch (Gotta make it easier to turn on and off.

4. Something awesome.

 

Thanks for this great site.

 

Update:

Added another video using code from Frits. However, while taping this video he managed to update the code :o
In this update it also has:

1. Speaker

2. Diode

3. Powerswitch

So i guess all that is left to physically add at this point would be "Something awesome"

 

Cheers!

Travel around mindlessly. Navigate around via ultrasound.

  • CPU: Picaxe 28x1
  • Power source: 3 AA Batteries
  • Programming language: Picaxe basic
  • Sensors / input devices: SRF05 Ultra Sound
  • Target environment: indoors, robot lab, bar

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

You’re way ahead of me!!
You’re way ahead of me!!

Heh

I still have lots of stuff to tweak. Need to reinforce the main construction so it doesn’t fall apart ever so often :stuck_out_tongue:

Get cranking, you!

Don’t worry, world
Don’t worry, world domination is just around the corner!

Cool that you are using

Cool that you are using SRF05. An advantage is that you can see on the back of it when a pulse is omitted. You can set down the wait time before it’s every move; Just make sure it never moves it’s head while the red light is flashing, or you will get strange readings.

You can get a way more alert rob then (only perhaps it will fall more apart, faster :wink:

Dude, your robot is awsome!

And I like the picture, nice to see some 16:9 or what it is - very movie-like! You need to get some better tape though ;D Or perhaps even advance to melt-glue-gun! (they are extremely cheap)

Thanks for sharing, and looking forward to next time!

/ Fritsl

OH - and PS; You are going

OH - and PS; You are going to need bumpers if you want it to be able to avoid cables etc. But hey - you have some 11 inputs left, so there should be room for some kind of contact/ sensor if this is what you want :wink:

/ Fritsl

Thanks Frits!I noticed that

Thanks Frits!

I noticed that during travelling forward, sometimes the servo tend to twitch a bit to the right for no reason. It keeps twitching until it cant twitch anymore.
I probably just need to sit down some more with the code.

I have now added the LED and the speaker. They dont do much except make an alert when obstacle is found and it begins the turning-proceedure.

One of the biggest problems right now is that the tape attaching the SRF05 to the Servo loose grip after a while. I need to find a better way of attaching it to the servo.

I will post an update as soon as i have more material to show :smiley:

Thanks again for your comments

//Fred

Hey, that’s looking good.

Hey, that’s looking good. You can definitely speed up the scanning to make it react faster, as you get more comfortable with it. The sonar pulse takes a maximum of 50ms to be measured (usually less), so it can scan all three directions practically as fast as the servo can move to those places. The measuring itself takes almost no time. Just be sure, like Frits said, that the head doesn’t move while the red light is flashing.

And yeah, hot glue definitely holds things together better than two-sided tape. It IS a step up on the ‘permanent’ scale, but even hot glue can usually be cut off if you change your mind :slight_smile:

Nice work, keep it up.

Dan

Interesting. I shall

Interesting. I shall optimize the code right away.

I was also thinking about having it make a 180 turn if all directions are blocked.
A hot glue gun may very well be my next purchase.
There was a bunch of purchases for me to get started, i had to get soldering equipment and tools and stuff like that.

Does anyone know a good way of making the speaker sound louder? The volume is slightly low at the moment so i kindof want to make it louder :slight_smile:

Cheers!
//Fred

IMHO you should not

IMHO you should not hard-code 180-turns, but let the robot decide when it is time to turn; try to make it look in the direction it is turning towards, or read this, to put it short :slight_smile:

I know you should remember to turn off your speaker afterwards - read this - but turning up volume (without an amplifier) is only possible by selecting a different speaker. There is a HUGE difference in the volume they make.

/ Fritsl

Wow! That code you had

Wow! That code you had shared there was excellent! Mind if i use it?
Its definetly more fluent that way rather than going into a total halt every 10 seconds :smiley:

And thanks for the warning regarding the speakers. Didn’t know it was like that.

Of course you can use the

Of course you can use the code, heck! :slight_smile: - I think if you look at Part II of "Make your first robot", there is a never version. And I also think there is a slight error in that, and i think I will just get some wood for the fireplace, and in say 15-30 minutes I will have a new corrected version on the site :wink: (Just wait for that posting to be top on the site, and you will know I have updated it)

/ Fritsl

WOW!!!/ Fritsl

WOW!!!

/ Fritsl

There’s something else I’ve

There’s something else I’ve found that can have a dramatic effect on how loud a speaker is. If you’re using just a bare speaker, try cupping your hand around it, to form a sort of tube. The idea is to physically separate the air above the speaker from the air below it. I’ve found that when you do that, many speakers get MUCH louder, especially in the lower frequencies, and they sound much better. Of course, holding your hand around it wouldn’t be a permanent solution, but building a little box with a hole in the top for the speaker to sit in could work. I’ve thought of buying some of those plastic “project enclosures” they have at Radio Shack, and just cutting a hole in the top the size of the speaker and hot-gluing it in.

Let me know if my explanation isn’t clear, I can take a picture of the ‘cupping your hand around the speaker’ thing if you need it. But if you play around with it a bit, you should figure out what I mean.

Dan

Thanks.So there is no way of

Thanks.

So there is no way of enhancing the signal between the output and the speaker, then?
Its not really that important, i was just curious :slight_smile:

:smiley:
:smiley:

Oh, sure there are, you can

Oh, sure there are, you can build a simple audio amplifier to make the signal louder, it just gets a little more complicated because there’s more circuitry involved. Try this page for several examples of schematics for audio amplifiers. I’ve never actually built one of these circuits, so I can’t really offer much help other than to point you to the site :slight_smile: I’d actually be curious to hear how it goes if you do build one, because it’s something I might want to try in the future.

Dan

gratz… greath robot, much

gratz… greath robot, much better look then mines… keep going, you are in the good way…

(i can’t w8 until the ultrasonds sensors arrive my home)

A amall amp is one of the

A amall amp is one of the typical thing you can buy in a kit at hobby-electronics stores…

But look around, that old PC-speaker over in the corner has a build in amp, it is even in stero, so you can mix 2 autdio signals…

/ Fritsl