Custom Movement Panel V2 icon Custom Movement Panel V2 — Custom Movement V2 panel for ARC: scripts for F/R/L, Reverse, roll left/right, up/down with speed mapping to PWM for drones, mecanum & custom drives Try it →
Asked — Edited

Turning Digital Ports On/Off With Speech?

Hello all When I'm using a Movement Panel the digital ports work (using "set digital" to verify, it turns red when off and green when it's on) but somehow when I try to use speech control to turn the same port on, it doesn't work.

Can someone test this for me, or is this a possible bug?

Thanks all.:P


ARC Pro

Upgrade to ARC Pro

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

Author Avatar
United Kingdom
YouTube
#25  

Strange. I'm running out of ideas now. So the script runs ok on its own without voice recognition, correct? Are you running the script in the voice rec control as a script block, or a ControlCommand() in the phrase configuration?

In post #6 you posted a script you was using. Have you tried a simple set(D8,on) on its own in the script in the speech rec control?

#26  

@Doombot you need to remove the quotes from "1" and "0"...should be


if(getDigital(D8)=1)
saywait("it is working")
elseif(getDigital(D8)=0)
saywait("it is not working")
endif
Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#27  
  1. Are you having trouble with D8 only?

  2. Is your SET(on) and set(off) working for other ports?

Richard is correct, "Quotes" are for "Strings".

String A string consists of alphanumeric characters to create words. "This" is a strong. So is "This". And "This is a string containing a sentence".

Example: $x = "This is a string"

Numbers Numbers are simply numeric. A number is a 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 only. The only additional symbols you can use for numbers are a - (minus) and a . (decimal)

Example: $x = 3.14

#28  

@Dj

I just got home and tried it. Everything I did in the beginning worked, I just needed the EZb to be connected...very weird but it works.

@Richard R and @Dj Thanks! I'm sure I know that (by now) I was just beat and I forgot...but thanks for the correction kind sirs.

On to testing! To those who care I'm just finishing up the cosmetics on my bot! Mechanically it's sound and ready to kill!

:D

Author Avatar
United Kingdom
YouTube
#29  

Sounds like you may have it sorted then. Looking forward to seeing the end results of your bot.:)

#30  

@ Doombot
Hi, Any pictures yet? The weather is getting nice, so I can't wait to see him by the Harley..

What was the final script you ended up with?

Ron

#31  

Doombot did this ever get completely resolved? I'm having very similar issue.

#32  

@ANDY ROID

Those are just test scripts, but I do use a lot of set() commands since I use a lot of motors and tip120 circuits...so i turn on/off digital pins a lot...

Oh no pictures just yet...

@kamaroman68 No it was resolved on it's own, since the test scripts i wrote worked when the EZb was connected...it wasn't working when the EZb is NOT connected. I don't know why...but instead of giving credit to anyone I just left it unresolved. What issue do you have? Maybe I can help...