LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ultrasound sensor

need help to control the speed of my motor according to how far is an object infront of my ultrasound sensor. eg if an object is infront of my sensor the motor will start to slow down, if it gets nearer to the sensor the motor will stop

0 Kudos
Message 1 of 6
(2,399 Views)

Hi dennis,

 

which help do you need?

 

Looks pretty simple:

IF distance > limit THEN full speed
IF min < distance <= limit THEN half speed
IF distance <= min THEN stop engine

😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,375 Views)

how do i write de min and limit

0 Kudos
Message 3 of 6
(2,371 Views)

Hi dennis,

 

"min" and "limit" would be controls on the front panel of your VI…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(2,368 Views)

can i ask min and limit of what?

0 Kudos
Message 5 of 6
(2,364 Views)

Hi dennis,

 

can i ask min and limit of what?

Sure you could ask.

 

But I thought you already knew that as your original question was this:

according to how far is an object infront of my ultrasound sensor

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(2,356 Views)