FINISHED: LazyBee Security Bot - Laptop Based solution for Dummies

Lazy Does It ;)Then again, I

Lazy Does It :wink:

Then again, I don’t want to cheer to quickly. As soon as I get the sensors to do what I want I’ll dive into the multitasking part. So please Grue, keep reading that last chapter :))

The sensor part is some different game all together. Whilst servo movemend is really easy I’m still holding my breath over the ping and pir at the moment. (As I don’t fully understand the code yet, well I think I do but the one provided is either rather silly or it doesn’t seem to trigger anything). I’ll hook it up to the digibee tommorow to see if it still sets a high when activated.

By the By…

I remembered this which might help a lot…

https://www.robotshop.com/letsmakerobots/node/2390

This is a post about a lynx system arm but it has a lot of usable info. There is a list of all the servos used and you can see how they are mounted and arranged. Also, if you scroll down a bit, you will find a link to all the photos of assembly. You can see each part and how they fit together. Should be pretty handy when refining yours.

 

(Wish we would switch to metric)

Chris the Carpenter

Remember to set the

Remember to set the direction of the pin to input or output first like:

dira[pin_number]~~

then set it to a high like:

outa[pin_number]~~

You can also do it in just one line of code like:

outa[pin] := dira[pin] := 1

As for the PING))) sensor, that should be simple using the object from the OBEX. Download the object called “PING)) Demo” and extract it from zip file to where you are working on your other objects. All you have to do is declare it in your program and then call it to your variable like this:

OBJ

pg : “ping” 'Declare the PING object with the Alias of "pg"

CON

pin = 0 'Set my pin for the Ping

VAR

long useconds, inches, centimeters, millimeters ’ Setup variables that store the results

PUB GetDistance

useconds := pg.Ticks(pin) ’ Get ms reading and assign that to the VARiable “useconds”

waitcnt(cklfreq + cnt) ’ wait one second just (because I want to)

inches := pg.Inches(pin) ’ get distance in inches and assign that to the VAR of “inches”

waitcnt(cklfreq + cnt) ’ wait one second just (because I want to)

centimeters := pg.Centimeters(pin) ’ The VAR “centimeters” now holds the distance in centimeters

waitcnt(cklfreq + cnt) ’ wait one second just (because I want to)

millimeters := pg.millimeters(pin) ’ same as above the “millimeters” VAR holds the distance in mm

 

The coding is fairly strait forward by looking at the PING.spin object. Remeber that you do not have to look at all the lines of code in an object’s PUB routine to use it. For example:

PUB Millimeters(Pin) : Distance

The name after the PUB statement is what you call from your own object with the options in parenthesis (pin).

 

Nice robot! Where did get

Nice robot!

Where did get those wheels?

Did you also consider Microsoft robotics studio?

Got the wheels of a local

Got the wheels of a local hardware store, 4 euros each :wink:

My bigmouthing about the cheap servo’s is setting me back now. I got them in but they just jitter a lot when I hook them up. Grrr. Another problem was extending the cable from the parallax sensor. Again, doesn’t work while others (branded) do work fine. I’m starting to understand the rather steep differences in price.

DSC00704.jpg

I sort of restarted the chassis. "Dad, where is his face and where are his eyes?" So here they are.

DSC00699.jpg

Now please electronics, give me a break :)

DSC00700.jpg

Should be done before 2012 :)

I just used standard DSL

I just used standard DSL cable to make my extension cables.

And CAT 5 Cable

Just about any cable will do. The fun part was crimping all the ends

Could you be more specific
Could you be more specific on the wheels? Waar heb je ze gehaald? Ik woon namelijk ook in Nederland dus ik ben zeer geïntereseerd!

Prachtig!

Hee man,

 

prachtig werk tot nu toe! blij te horen dat er op deze website ook buren zitten :slight_smile:

Dat maakt het makkelijker

Dat maakt het makkelijker inderdaad :wink: Bij de Praxis.

Amazing design

I must admit that your skill as a builder amazes me. Your robot looks like it was factory built and designed by the best industrial designers out there.

Great work!!!

fasza kis robot :slight_smile: nice

fasza kis robot :slight_smile: nice robot :slight_smile:

Thanks Geir, considering

Thanks Geir, considering what you have build already I take this as a big compliment :slight_smile:

Some Tools

I also looked into some tools to control the bot. Ofcourse all need to be free of charge. Few things I found to be very handy;

Teamviewer

http://www.teamviewer.com/nl/index.aspx

Works like RDP but easier, you can connect from any internet connection and it doesn’t care about firewalls or whatever. Installed a host (runs as a service) on the 10" laptop and a client on my own laptop. You set up a password and that’s it, you can connect to it from anywhere. On the downside, it doesn’t resize screen resolution so I just get a 10"display on my normal laptop/desktop. That’s a bit small so when I’m at home I just use RDP.

YawCam

http://www.yawcam.com

Free webcam utility, open source and it has motion detection. Whenever something moves in front of the cam it will take a picture and set off any “alert” you like (like sending an email or starting a program).

Skype

http://www.skype.com

Pretty much known arround the world. Nice feature, you can set it to auto answer calls from anyone in the contact list. So no need for someone to be on the robots side to switch things on. Just start a video call et voila, your live, seeing what your robot is seeing and speaking through it. My kids LOVE this feature and even better, when the robot sits in the living room they break less stuff since they are worried I can see them :)))) I looked for ways to incorporate voice into skype so my daughter can call me (eg Daddy!) and skype would set up a call to me automatically. It’s there but so far I couldn’t find a free version. Bummer, guess that will have to come from a torrent.

Wow, this is really coming

Wow, this is really coming along. The new look is very classy.

Which HP mini is that? I’m

Which HP mini is that? I’m writing this from the 110 :slight_smile:

HEY! Crazy Dutch man is

HEY! Crazy Dutch man is back! :smiley:

But hey, wait, what is this?

But hey, wait, what is this? New design, what? Mismatch between video and main picture? What?

That is one ugly spirit!!It

That is one ugly spirit!!

It looks tired as well :stuck_out_tongue:

good job

Makes me wanna fix my old laptop and do the same :stuck_out_tongue:

I know!!!

It must have been dead for a thousand years!