
Andy Roid
USA
Asked
— Edited
Hello To All,
This time of year my old plc controllers and arduino ends up at my friends Halloween Barn. I program a number of displays for our friends, both fiends and ghouls amusement.
This year my poor robots will become brainless for a while and two of my ezbv4's will become an addition to the party. One may run a talking head with facial tracking.
I was wondering if the object tracking mode works with an IR camera hooked to my computer? I would like to use my second ezb to run servos and a couple relays using object location and tracking (people) in the dark.
Any experiences or ideas?
Ron R
Thanks, I will give that a shot too.
Ron R
Hello @bhouston and @WBS00001. You guys were right ! It was a timing issue. I put a 20 second sleep (upper average skit time) in between the CC and the problem went away.
I will put the program on the cloud when I am done.
Thanks for the replies which helped a lot.
I will post a video soon.
Ron R
Right on ! Glad you got it working. Looking forward to seeing the video.
I'm curious, did you try the ScriptStartWait thing? I would have thought it would have eliminated the need for any delay since it would have prevented anything from proceeding until the skit was done. Also, the same goes for any of the sub-scripts you run for the actual actions. If there are any CC calls there, they should be using the ScriptStartWait as well.
The only thing I can think of, offhand, that the ScriptStartWait would not take into consideration would be the actual movement of the servos since they are asynchronous to everything. That's where I would think delays might be needed. To give the servos time to do their thing before allowing the script to proceed.
Hi @WSB00001
When I tried the ScriptStartWait it didn't seem to work. The servos did the same slow step thing, but the audio still ran ok like normal. I then tried writing a Sleep with a time of 30 seconds (just a guess number) and the problem went away. The real problem is the interaction between my sequencer and the script manager and the sleep time assures enough time to run the script/skit. I am past my deadline so I loaded the sleeps based on the longest script/skit time, which fixed / patched the problem. Once everything is running, I will review the whole Sequercer / ContolCommand section and see if I can debug more and simplify it.
I will be posting the whole program to the cloud once it is done as it is now. That way you can look at what I did and how it runs.
I am a beginner at writing scripts so you may see weird program logic, but I am happy I wrote something with everyone's help that works.
Thanks for the thought of ScriptStartWait. (I learned a new command). It still may be the way to go.
Ron R
Would like to see a video of this project in action when you get the chance....
I will be posting it soon. Look for it under the post "the Great Madame Ninndo"
Ron R
@ANDY ROID Have you changed the servo speeds at all or are you running all servos at the default "full" speed? Also be aware that the autopostioner controls servo speeds to an extent depending on whether you are using "jump to" or "Transition to" and CC commands...
Can you post an example of one of your actual servo movement scripts?