Award
Congratulations Rich, for answering the question and has received an EZ-Credit award! Share what you have learned and create a tutorial to help others by clicking here.

Adc To Move Jaw New Software

Assistance Requested

Help merne with their question and receive $10 of EZ-Credit to get more robots and parts from our store. The following information was provided about their previous efforts searching tutorials for a resolution.

merne claims to have checked these sources:
 
#1

Hello, I had a working JAW/mouth working with older software. I upgrade to the lastest software and can't figure out how to sync the jaw using a analog to digital from my PC to the power amp that goes to the ADC0. I can't figure out how to make it work using the new software.

This is what I had using the older software for the jaw sync...If (ADC(ADC0) > 1)
servo(d4,48)
sleep(10)
release(d4)
endif

Any help would be nice.

Thanks, Mike

I have found a few conversations, tutorials and activities that may help with your question. Take a look at these links. I've sorted them by what I believe to be most relevant but that is not always the case as I'm still learning.


Also, consider reviewing the Learn section for informative lessons and activities. Check it out!


#2

The IF in line one is incorrect. ADC(ADC0) is incorrect, it should be GetADC(ADC0)

Code:


IF (GetADC(ADC0) > 1)
servo(d4,48)
sleep(10)
release(d4)
ENDIF

#3

Thank you Rich, I will give it a try.

#4

So, did it work?

#5

hi rich sorry it's taken so long to get back to you. I've been away from my project for quite a while. that program statement that you put in the thread did work however it only does it once I need it to be continuous. maybe using the wrong program but I'd like to have the jaw move every time the speech recognition says something. is this possible I'm using version 9 4 2013. I am still using the v3 board.

thank you in advance Mike

#6

merne, you need to upgrade to the latest EZ-B release, is there some reason that you are still using 9.4.2013 ?

#7

Add a label to the top and a sleep and goto at the bottom to make it loop.

Code:

:loop
IF (GetADC(ADC0) > 1)
servo(d4,48)
sleep(10)
release(d4)
ENDIF
SLEEP(100)
GOTO(loop)



You may need to add in another servo() command to move the servo from position 48 since it's all moving very quickly it may all happen faster than it can physically move and release the servo.

Also, as Doc said, update your software.

#8

Hi guys, as always, your all so quick for answers. Thanks! I will try Rich's program commans today. as for the new software version, i thought it's for the new v4 board only? Maybe i am wrong.
Mike

#9

Although the New EZB4 code is now included in the new releases there are still quite a few improvements in the code for the EZB3s.

#10

Improvements including a firmware update to the V3 which makes it a lot better. It's worth keeping the software up to date.