Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69240

control LEDs with a potentiometer via LabVIEW and Arduino

$
0
0

Good morning,

I'm currently working on a project with LabVIEW and Arduino, and I need help implementing a specific feature. My goal is to read the value of a potentiometer plugged into Arduino using LabVIEW and then light up different LEDs based on that value.

More specifically, here is what I want to achieve:

Read the value of the potentiometer connected to Arduino from LabVIEW.
If the value read is greater than or equal to 3, turn on an LED connected to pin 7 of the Arduino.
Otherwise, if the value is less than 3, turn on another LED connected to pin 8 of the Arduino.
Being a beginner, I am asking for your advice and suggestions to improve the structure of my code, in particular by using the LabVIEW case structure effectively.

I thank you in advance for any help you can give me.


Viewing all articles
Browse latest Browse all 69240

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>