SSC-32 Servo Controller icon SSC-32 Servo Controller ARC integration for SSC-32 servo controllers via PC COM or EZ-B/Arduino UART; maps V0-V31, configurable baud, enables servos in ARC skills. Try it →

ARC Pro

Upgrade to ARC Pro

ARC Pro is more than a tool; it's a creative playground for robot enthusiasts, where you can turn your wildest ideas into reality.

Author Avatar
Italy
#1  

I have connected D0 as 'trigger' and D1 as 'echo'. I have a label1. I have a 'Button1' and when i press this, i have written:

Private Sub Button1 click Dim distance as integer dist= EzB.Connect2.EZB.HC_SR04.GetValue(Digital.DigitalPortEnum.D0, Digital.DigitalPortEnum.D1) label1.text=dist End sub

No distance is reported in label1 when i press the button. Where am i wronging?

Author Avatar
Italy
#2  

The result is always "20".