Websocket Client icon Websocket Client — WebSocket client for ARC: open/send messages, store server responses in a variable, run a response script, and track connection status. Try it →

ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

Author Avatar
PRO
USA
#65  

Nomad did you see the code I pasted?

EzAng

Author Avatar
PRO
Belgium
Thingiverse
#66  

ezang

do you mean this?

$soundright = auto needs to be # $soundright = 0

Author Avatar
PRO
USA
#67   — Edited

Yes

in code we initialize it with 0 - zero

$soundright = 0

Just like $pwmvalue = 0

was initialize with 0 - zero

or $soundright = auto

will work

EzAng

Author Avatar
PRO
Belgium
Thingiverse
#68  

ezang 

thats good info thanks.

Author Avatar
PRO
USA
#69   — Edited

You know , you can use also use:

$pwmvalue = auto

lol 

All works

I guess the real question is did Bobsheaux get it?

EzAng

Author Avatar
PRO
Belgium
Thingiverse
#70  

ezang

no i didn know that.

Author Avatar
PRO
USA
#71  

I use

$soundvalue = auto $pwmvalue = 0

works the best

EzAng

Author Avatar
PRO
USA
#72  

Or a simple script to turn on and off

set the servo speed to 2 or whatever, I use 0

ServoSpeed(d0, 0)

:loop

Set LED On

pwm(d0, 0)

wait some time for the pwm to do its ramping thing

sleep(1000)

#set LED Off pwm(d0, 100)

wait some time for the pwm to do its ramping thing

sleep(1000)

goto(loop)