/ Friday, 24 March 2017 / No comments / LabView
Arduino binary logic to decimal value using push buttons and leds in LabView
Arduino binary logic to decimal value using push buttons and leds in LabView
Task:
Our task is to Convert the binary logic into Decimal value.we have to make a labview programm that reads the binary logic from arduino digital channel and convert it into corresponding decimal value.
Step # 1:
Open labview and in the search bar enter Digital read n Channel.OR
Insert this box by right clicking on the project window and go to makerhub>Linx>peripherals>digital and pick the digital box and place it on the project window.now click on the arrow near to change digital read channel and check it into the digital read N channel.
Step # 2 :
Now do all the necessary steps for creating the makerHub project.Place while loop and open and close boxes.
Step # 3 :
The most easy way is to place or modify things id to search.Go to Help > find Examples and now type in the search window Digital read n Channel.
A ready example will be open up if you have any issue placing basic parts like open and close and other peripherals.
Now Type in the search window > Bool to decimal > a bool array will be shown in the search bar pick that one and place into the project.now connect to the digital read n channel values output line and after Boolean array connect an indicator for displaying decimal value.
see the figure below to understand the concept.
see the figure below to understand the concept.
Hardware: Connect 4 push buttons in the configuration below. You can also connect these in pull down configuration.this is the pull up configuration.
4x Resistors 1K
4x Push Buttons
Take 4 digital arduino pins.connect the out put of circuit to that pins.Give power to the circuit from arduino board.
4x Resistors 1K
4x Push Buttons
Take 4 digital arduino pins.connect the out put of circuit to that pins.Give power to the circuit from arduino board.
Final Step :
Open up both the windows of your project and connect arduino to the serial port.Now select Com Port and Run the program. One more thing before running the program is give the corresponding digital pin number to the digital array that is alongside the leds array.
Now press the push buttons in a way that binary logic works that is 1-2-4-8. The corresponding number will be shown on the decimal indicator.
Download the Files by Entering the E-mail address.If you have any issue regarding how that works please comment to notify.
Download the Files by Entering the E-mail address.If you have any issue regarding how that works please comment to notify.
Related Posts
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment