ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

PRO
Synthiam
#1  

A PIR you can use - but it's an outdated and boring technology. I'd recommend using the camera instead. The camera has motion detection. So simply add a script for the tracking script to send a notification when it sees movement with the camera.

PRO
Belgium
#2  

dj

ub selling old stuff then.ok something to learn.thanks

PRO
Synthiam
#3  

Yeah - pir is what's used in old alarm systems that have been around since the 80's. Ub Tech doesn't use much new technology - their robots are pretty terrible and filled with cheap components. But, they have quite the marketing budget!

PRO
Belgium
#4  

i bouth one robot from them the alpha2,worked a few months then they disconneted my robot from there server.there forum dissepeared, no contact. many on indiego didn get a refund or a robot.they lie about averything. a big shame,but we have ez robot.:D

PRO
Synthiam
#5  

I'm sorry to hear that, nomad. It is indeed a good thing we have ezrobot:)

#6  

@Nomad... all a PIR sensor is, (you can google it to find out exactly what it does)... is a $5 switch that's all it is. It measures infrared (IR) light radiating from objects... When it reads a change in IR light like from a human or animal that walks by it activates. When plugged into an EZB4 it will cause a digital port to "go high"... You read the digital port and write a script of what you want to do when it activates... It doesn't send emails or pictures or anything else... it's just a switch... As @DJ mentioned use the camera so you can use more advanced features...

I use one in my inMoov to detect if people are around... If no people are around I programmed inMoov to go to sleep. When people come in the room the PIR detector is activated and I have inMoov wake up...

PRO
Belgium
#7  

hi RR

you have a great inmoove.thats sounds like a cool script you have.

PRO
Belgium
#8  

is this a good pir sensor ?

pir

another with movement detectection

pir

#9  

@ Nomad Like DJ suggested, using the camera to this is very easy. I have the camera on my Inmoov set to detect motion and when it does, it takes a snap shot and then sends that snap shot to me in an email. I haven't tried a video of what it sees but it should be easy enough to do as well. Using the camera to this is more efficent as it takes the PIR out of the setup. If you want use the PIR, that would be easy to do as well. Once the PIR is triggered then the camera takes a video, then sends that video to you in an email. Let me know if you need a hand setting it up.

PRO
Belgium
#10  

bhouston

thanks for the help.i dont have a pir ,so i wil use the camera. if you have some pics or script for me what to do will be very helpfull.

#11  

@ Nomad, Sorry to take so to post this, I've been away. Put you email address and name in where I've indicated.


:start

ControlCommand("Camera", CameraMotionTrackingEnable)
#center camera on object
if($Cameraistracking = 1)
sleep(500)
ControlCommand("Camera", CameraSnapshot)

ControlCommand("SMTP Client", SendImage, "Camera", "your email address here", "your name here", "Motion detected", "Hey Bob, this is InMoov. I have detected motion in the shop. Here's a picture of what I saw.")# you can change this to say what ever you want
Sleep(2000)
ControlCommand("Camera", CameraMotionTrackingDisable)
endif
sleep(10000)
goto(start)

Let us know when you get it send a video (I haven't tried that yet)

PRO
Belgium
#12  

bhouston

this is awesome thank you.

PRO
Belgium
#13  

i just notis ,what comes here ?

User-inserted image

#14  

Use the slider on the bottom of the code box to move it over.

PRO
Belgium
#16  

jd takes pics and send it to a folder on my pc ,not to my mail adres. posseble cause my adres is BE ?

#17  

I wouldn't think that would matter, an email address is an email address. Check it and make sure it's entered right. Send me an email ( it's in my profile) and I'll try sending you from my robot.

PRO
Belgium
#18  

i checked found one letter wrong ,but not working.

i put the script here.

User-inserted image

#19  

I just have mine in the Script Manager. I my 'Init' Script I start the camera and this will run the script when motion is detected.

User-inserted image

PRO
Belgium
#20  

snapchot and video works.all is same except mail adres,jd dont send.

PRO
Belgium
#21  

do i need to change here maybe ?

User-inserted image

#22  

Send me an email. I’ll check a couple of others things in a bit.

#24  

Do you have the SMTP Client control activated and configured? It is in the Misc folder in the Controls. You need this.

PRO
Belgium
#25  

Ah that will be the problem’

PRO
Belgium
#26  

Is tat the iphone streaming ? In misc

PRO
Belgium
#27  

ok smtp is a plugin,i have it downloaded.

mine says smtp.telenet.be port 587 but not ssl but tsl ?

PRO
Belgium
#28  

i try all i read in the tutorial,not working.

User-inserted image

#29  

Patrick, I use an email account on Yahoo with mine so my SMTP address is smtp.mail.yahoo.com and I had to find my settings from Yahoo for the port and if use SSL was needed or not.

Did smtp.telnet.be as the address come from your internet provider or was it your best guess? If it was your best guess try smtp.mail.telnet.be and if that fails then try again checking Use SSL.

PRO
Belgium
#30  

hi justin

i look it up its like i wrote it.smtp.telenet.be thanks i try.

#31  

@Nomad, Mine is - smtp-mail.outlook.com. Try it like Justin suggested.

PRO
Belgium
#32  

i did try that no luck sofar.i get error line 9 cant send it. below i read time out.

User-inserted image

PRO
Belgium
#33  

here a pic from telenet serversmtp.

User-inserted image

#34  

smtp.telenet.be is clearly your smtp server name per them. So change the server name back to that and keep it that. Keep the port 587.

Try keeping the SSL checked as well. My concern is TLS which is close to SSL but not 100% the same. This might prevent it from authenticating correctly, it might not be possible with your email service.

Patrick, I assume you have your email password entered and it is just cleared out for the screen shot to share publically, correct? And I assume you are not loosing internet connection when trying this (just covering all the bases)?

If it keeps failing my best guess would be the TLS native cryptographic protocols from telenet.be is not compatible and I would recommend setting up a free email with a service like Yahoo! that has a known functional smtp interface.

PRO
Belgium
#35  

justin

yes i cover up my password.i do have another mail adres with a .com

from gmail.my internet stays good.

PRO
Belgium
#36  

joepie its working.needs some audio do,would cool.

User-inserted image

PRO
Belgium
#37  

wow jd is disconnected but he still sends pic to my mail?

#38  

Glad to hear you got it working!

PRO
Belgium
#39  

so how does it stop taking only one pic ?

#40  

Patrick, put your thinking hat on. How does anything else stop in ARC?

If you are running this code:


:start

ControlCommand("Camera", CameraMotionTrackingEnable)
#center camera on object
if($Cameraistracking = 1)
sleep(500)
ControlCommand("Camera", CameraSnapshot)

ControlCommand("SMTP Client", SendImage, "Camera", "your email address here", "your name here", "Motion detected", "Hey Bob, this is InMoov. I have detected motion in the shop. Here's a picture of what I saw.")# you can change this to say what ever you want
Sleep(2000)
ControlCommand("Camera", CameraMotionTrackingDisable)
endif
sleep(10000)
goto(start)

Your answer is to stop the script. Come on, with your thinking hat on I know you had to have known that.

PRO
Belgium
#41  

remove start and goto?

#42  

Patrick, it's a script, just press STOP like very other scrip in ARC, I've seen you do that in your videos I know you know how to press stop to stop it from running like any other script and it will stop sending email pictures to you.

Or are you trying to ask how to modify the script in order to change it's behavior so it does something else for you?

PRO
Belgium
#43  

ah i placed the script in the camera script,not separt. so i make a script outside camera settings.?

PRO
Belgium
#44  

got it use the pause button.

#45  

Yes, you should always keeps your scripts separate from your controls unless you have a very good and specific reason to put them in the control settings of your control objects.

That was a good example of why you should NOT put a script like that there.

I recommend using Script Manager(s) to organize your scripts, then you can manually start and stop them. You can also create voice commands to start and stop your scripts. And if you get fancy you can use personality generators or versions of AI to let your robot choose when to run it's own scripts.

I think you learned a lot today Patrick!

PRO
Belgium
#46  

justin

yes indeed.the finding of the smtp on telenet alone was super, i finaly found something.ofcourse with some needed help here,:P ok i changed to a separt script,and still works. i will see what the script manager does.

thank you very much.

PRO
Belgium
#47  

now its working on my phone to,inclu the pic too .awesome ;) its works really fast,the sec jd notest movement its comming allreddy , in my phone.

Canada
#48  

This has been an interesting post. I learned something. Glad you got it working Nomad

PRO
Belgium
#49  

hi holy1

glad you like it also.next point will be video or sound in the mail.

thanks

PRO
Synthiam
#50  

Patrick, if you put a loop in the "camera tracking start", it will loop forever until a "camera tracking stop" script is executed. You can stop it by putting this in the "camera tracking stop" script:


Halt()

Putting something (anything) in the camera tracking stop script will stop any other camera scripts. Each control can run one script at a time, so this example shows how that

PRO
Belgium
#51  

hi dj

thats a new one for me.thanks for the tip.but wil i be able to stil use video record ?

PRO
Synthiam
#52  

Then just do this... Voila, done!

Put this in the Camera Tracking Start script...


# Start recording because we detected something
ControlCommand("Camera", CameraRecordStart)

Put this in the Camera Tracking Stop script...


# Stop recording because the object went away
ControlCommand("Camera", CameraRecordStop)

PRO
Belgium
#54  

is this correct for video?

:start

ControlCommand("Camera", CameraRecordStart) #center camera on object if($Cameraistracking = 1) sleep(500) ControlCommand("Camera", CameraSnapshot)

ControlCommand("SMTP Client", SendImage, "Camera", "patrick.dierckx7@telenet.be", "patrick dierckx", "Motion detected", "Hey patrick, this is jd. I have detected motion in your house. Here's a picture of what I saw.")# you can change this to say what ever you want Sleep(2000) ControlCommand("Camera", CameraRecordStop) endif sleep(10000) goto (start)