Current location - Recipe Complete Network - Healthy recipes - LabVIEW controls relay through raspberry pie GPIO.
LabVIEW controls relay through raspberry pie GPIO.
In the last article, LabVIEW and Raspberry Pie were combined to control LED lights, but it was found that the English community version of LabVIEW was too uncomfortable to use, and it was too slow to understand things in English at first glance. Then, the English LabVIEW community version is turned into a Chinese professional version. After the change, the connection between Raspberry Pie and LINX software is normal, but there is a language conflict when deploying the program. Still can't change the raspberry pie into Chinese, American English and British English! After some tossing, I put back the LabVIEW community edition. Later, I thought about slowing down my English and arguing for a few minutes.

After reloading, I began to do experiments with my relay! LabVIEW has rich functions, which can be combined with software and hardware in embedded development, making development easier.

1, wiring diagram

V is positive 5V, G is negative, S is signal line (GPIO port), and BORAD code is 40. The control interface of raspberry pie is BORAD code.

2.LINX connects raspberry pie

Install the raspberry pie plug-in and turn on the demonstration control relay.

3. Deployment procedures

Program block diagram: Boolean quantity controls the on-off of GPIO port.

Front panel: relays are controlled by buttons.

4. Generate a real-time application and deploy it to Raspberry Pie. Please refer to my article-the combination of ——LabVIEW and raspberry pie, an interesting embedded development.

Through this experimental test, the function of the current control relay can be completed by LINX software of labview, C language and Python. Please refer to my article-using C language and Python to control relays and LED lights on raspberry pie. C language and python are embedded, and labview can be controlled by man-machine interface or embedded.

Measured renderings: