06-05-2023 05:21 AM
Hi, I'm looking for support/help with my little project. It is a simple temperature controlled by a fan in the room. It is primarily a simulation, not an actual project.
It roughly looks like this:
- DHT 11 sensor receives temperature to Arduino and then to LabVIEW
- in LabVIEW, shows up the actual temperature and controls it by PDI (doesn't have to be too precise, just simulation)
- If possible, PDI sends a control signal to the fan (it can be virtual to simulate a change of temperature) fan receives a PWM signal in ARDUINO and works according to the desired temperature.
So far, using a visa connection with Arduino, I could read temp and humanity from Arduino. Still, problems occurred with transmitting the signal back to Arduino with PWM to control a fan.
Attached is a VI and Arduino code,
many thanks
06-05-2023 03:14 PM
06-08-2023 03:32 PM
Hi, sorry for the late response; I updated the program and started working if you have any suggestions, please share them with me.
I just base it on VI, and what suits me is not a bit big project, just a simulation.
Many thanks and greetings from Ireland
06-13-2023 12:20 PM
Hi
I made a few changes. I did not understand why you had to close both visa resources? In fact it is only one resource.
Second I used the visibility of the display indicator of Humidity and Temperature instead of a separate indicator. If you right click on a control you can select that visibility.
Third I added a feedback loop to the text save, to prevent to type in that name more than once, but I don't know if that ws a problem.
4th I added a real simulation in LabVIEW for reading from the arduino, so now you can simulate your arduino as well