LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Toggling Digital Output Pin

Solved!
Go to solution

p1.PNG

I am using LabVIEW to control an arduino uno with a sensor wired to it. The sensor is a camera (https://www.adafruit.com/product/3202). My goal is to take 5 pictures at 3 second increments. Thus, I need the white wire connected to the digital I/O pin to read ground for .4s. Then, I'm assuming, some voltage for 3 seconds. The red wire is connected to 5V pin and the black to GND pin on power section of the arduino.

 

The VI runs as it should besides the lack of function of the Stop button. However, the camera is not taking pictures (indicated by no pictures found on the SD card and the camera not flashing red to take a picture).

 

The camera works when I touch ground manually. 

I tried multiple digital pins on the arduino. 

I have proper wiring (the arduino is on and the camera is indicating on).

 

I am guessing I am not understanding what the white wire is supposed to read when it is not reading low. 

 

Any suggestions are appreciated. Thank you.

 

 

0 Kudos
Message 1 of 3
(3,797 Views)
Solution
Accepted by topic author 16rasmuaut

Sounds like a hardware problem to me. It would be easy to make sure it is.

 

If you disconnect everything from the DO, can you measure if it works or not? One or two LEDs with resistors should show you if the DO is high or low. A oscilloscope or even a multimeter would validate this as well.

 

How about posting some hardware schematics? Or even some clear photo's?

 

Intuitively I'd say a pull down resistor might be needed. But I'm not that experienced with HW.

 

BTW. Good code commenting! The wiring could be straighter though. Try to keep the error wire one horizontal line without bends. If you replace the Waits with "Stall Data Flow.vim", the Flat Sequence Structure can be removed. Flat Sequence Structures are not good practice, and almost always easy to avoid.

0 Kudos
Message 2 of 3
(3,753 Views)

Thank you for tips! Particularly about straight wires and the "Stall Data Flow." It was a hardware issue. I wrote some code and for some reason the sensor was not reading ground from the pin, so i connected it to a different ground pin and it worked. Thanks!

Message 3 of 3
(3,698 Views)