Sound Servo (PC Speaker) icon Sound Servo (PC Speaker) Maps PC audio volume to servos in real time with scalar, min/max, invert & multi-servo options-ideal for syncing robot mouth to sound Try it →
Asked
Resolved Resolved by DJ Sures!

Dollar Sign In Blocky Variables

I am in the midst of learning Blocky and when I updated the program I noticed a dollar sign appear in front of all my Variables. At first I ignored it but then I noticed a program would not run like in the online tutorial.

I have attached an image with a screen shot where JD is supposed to count down from 10 to 1 and then say Happy New Year. When I duplicate the program and run it JD will only count from 10 to 2 and then says Happy New Year. He does not say "1" as he is supposed to and does in the demo video. https://youtu.be/MRcSs-ImcF4?t=410

You can see in the screen shot that my blocky is the same as the tutorial yet I am getting different results.

User-inserted image

Best Regards,

Tim



Related Hardware (view all EZB hardware)
EZ-B V4 by EZ-Robot
EZ-B v4/2 robot controller: dual Cortex ARM, Wi-Fi, audio/video, 24 servo/digital ports, I2C/UART, camera and Synthiam ARC control for custom robots
Wi-Fi / USB
Servos 24
Camera
Audio
UART 3
I2C
ADC 8
Digital 24

ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#1  

Ah, i see with the looping that there's something not right there. I think the generated FOR loop requires a <= rather than <. I'll fix it for tomorrow's beta release:)

A \(in javascript variable means it is public/global. Blockly generates JavaScript, which means the variables will be private by default. To be public, the variables can start with a\) (dollar sign).

User-inserted image

#2  

Thanks DJ!  Your quick response is most appreciated! Looking forward to the next release.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#3  

You bet - the robot will count down to 1 for ya:) and celebrate New Years.. either 5 months late or 7 months early depending on our perspective hahaha. Stay tuned for the update

#4  

LOL Well it may be 7 months until I have a good handle on this coding but I will eventually get it. You have a great product.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#5   — Edited

Thanks! We’re putting a new section up soon that will have a more organized manual for the ARC software. It’ll come handy for you

Author Avatar
PRO
USA
#6   — Edited

I also would like  a more organized manual for the ARC software. It’ll come handy for me also.

EzAng

#7  

Thanks All,

My point was not to actually make a countdown. My point was that my program gave different results than the sample I was following and that concerned me. DJ addressed it. I appreciate the tips though.

Best,

Tim

Author Avatar
PRO
USA
#8  

ok - Be well, thanks

EzAng