
monterdur
I am trying to open a window with a 360 servo and the speech recognition. The gears and the servo mount have been printed. The servo that I started using was a regular (MG9956R 60 degree). The problem was that it did open the window all the way. I got it to work with speech recognition to open the window and close the window. I just received a new 360 degree KOOKYE servo and would like to limit the rotation with the speech recognition to open and close the window. Does anyone know if Synthiam can limit the amount it rotates right and left? Since this is a continuous servo I cannot get it to stop. When I say (close the window) it keeps rotating right and when I say (open the window) it keeps rotating left without stopping. I looked through the tutorials but I was not able to find anything helpful. It sounds like auto positioning may be what I should be using and limiting the servo right and left. But I can’t seem to get it to work correctly. It only spins in one direction with the Execute button and I can’t get it to work with speech recognition. The goal is to get it to open and close the window all the way with a speech command. Any ideas how I may be able to get this to work?
I deleted my post; it was not correct.
Here is DJ answer below
thanks, be well
I am new to Synthiam. Sorry for my slow understanding of the program. I created the 3 frames 1, 512, 1024 after changing the properties of the max servo position properties from 180 to 1024. Thank you for that video. My 360 continuous servo spun to the right for a few turns stopped and turned position to the left to a non stop. I think that's what it was suppose to do. How would I go about creating a frame that stops at around 3 full turns of the servo with the speech command of open window? And with another speech command of close the window turn the other way the exact amount of turns?
I tried playing with the numbers to servo settings like 20 to 100 etc. However it will not stop spinning. Totally my lack of understanding. How many frames do you think I would have to create to achieve all of this in auto position? Synthiam can achieve this with a 360 servo correct?
You will require limit switches. A limit switch on the window or shaft allows ARC to know when to stop moving the servo.
A limit switch can be connected to a digital port of the EZB robot controller that you're using. Then, your Speech Recognition command would be something like...
JavaScript code to roll the window up
Code:
JavaScript Code to roll the window down
Code:
Dave, to answer your question. I want the motor to stop after a couple of rotations on its own. With out a stop command. So when I say open window the servo will rotate 2 revolution and stop on its own. And when I say close the window it will do the same rotations on the other direction and stop on its own.
DJ, I just read your comment thank you by the way very informative. Before I read it I was playing with the settings a bit last night. Here are my findings so far. I managed to get the motor to stop after a rotation and a half. I can probably push it more to like 2 rotations. Here are the settings that I used in a pic. So I am half way there so to speak. But then I read DJ's info and I am not sure if I can make it rotate the other way to close. So as of now I can get the motor to open the window with a rotation and a half with a speech command. So the question is now can I get it to rotate the other direction with the close window command the same amount of rotations and stop on its own?
Frame 1 set to 103
Frame 2 set to 36
In the action I made frame 2 the first on the list.
Servo movement panel
Just two scripts:
for OPEN
For SHUT
The only real foolproof way to get your rotation to be exact to your needs is to install an encoder at the location of the rotation. You will also need a motor controller that can read the feedback of the encoder.
So, The motor controller is attached to the EZB, ARC sends the commands to the motor controller through the EZB, the motor controller is attached to the encoder reads the encoder's feedback, the encoder reads the motor shaft or something that the motor it turning.
A lot of people have used and like a Sabertooth motor controller with a Kangaroo motion controller attached to it.
If you are just moving a platform on rails like a printer or something then Limit switches at the stop points can work instead.
What are you trying to move with your motor?
Dave and Nomad
EzAng
I am trying to open a small window about 2ft by 2ft. It does not have to be perfect or open all the way. This is just my first project with EZ-B V4. We are a STEAM program for children K-5th grade. We are an Arduino shop. We have built many projects with Arduino and ESP32 boards. But I wanted to try Synthiam to see if this could be a good platform for teaching the next gen. Thank you so much for the advice I will look into the motor controller with the motion controller that you mentioned. The kids at our center thank you for sharing.
Nomad,
Thank you for that advice. We will take the time measurement into consideration. As I understand it there are many variables to keep in mind when using time to measure rotation. But it is worth looking into as I mentioned it does not have to be a perfect setup and there will be room for degrading servo performance that may change the rotation if measured with time.
EzAng,
Thank you for the screen shoots and the scripts. Very simple but effective.
Our school will be closed for the next 2 weeks. I hope everyone on this thread is getting a little bit of time off to enjoy as well. I may not be online as often these next 2 weeks. So if I miss you Happy Holidays everyone. I will try my best to keep you all posted on the outcome.
Thanks for the holiday wishes - and hope the same for you and family. The holidays does give me some off time for doing what I love best playing with robots
although I am back home at the lake visiting family right now. So it’s a mix of roboting, quading in the snow and eating lots of fish!
Off topic but how’s this for a view to wake up to
That place looks amazing. I am on my way with my fishing rod. I don't blame you at all. If I was there I would not want to ever leave. I am happy to hear you are having a good time with family. This is what it's all about this time of year. Enjoy the fresh fish.