LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Upload Lifa base to arduino uno problem, Please Help Thank you

I don't know what you mean by "i put a wire in the digital pin".  Also, you should have all your LINX VIs inline (each one should use the resource wire of the previous LINX VI). 

0 Kudos
Message 21 of 30
(2,355 Views)

Hi Nathan,

The thing is, after I briefly connect a pin to 5V or 3V3, the reading would start going nuts like: 1 0 0 1 0 1 1 1 0 1 0 1 1 0 Without any sense! Without having any wire connected directly to my VCC (5V or 3V3) the reading is constantly changing, when it should be zero!

0 Kudos
Message 22 of 30
(2,355 Views)

If you don't have the pin connected to anything, that is normal behavior.  What are you trying to use the digital pin for?

0 Kudos
Message 23 of 30
(2,355 Views)

i want to use digital pin for a sensor get information. ( just false or true not analog  )

i use a 10 k ( 10k resistor to GND and to digital pin , )

i think it's called pull up/down resistor,

ex:

http://cdn4.resistorguide.com/pictures/pull-down-resistor.png

what do you think ?

for example if vcc was a sensor that give tension ( from 0.5 to 5 v )

can i read it like that ?

what is range of digital input ?

Thank you in advance

0 Kudos
Message 24 of 30
(2,355 Views)

You should look for information about the Arduino to determine the acceptable voltage levels.  Some of the posts that I've seen say that you need at least 0.6Vcc for the digital pin to recognize it as a high level.

What sensor are you using?  If you give us a link to the sensor we will be better able to help you determine if this will work or not.

Also, since your question has nothing to do with the topic of this thread, you should create a new discussion that will be dedicated to your question.  Another thingto consider is to use LINX because LINX has officially replaced LIFA:  LIFA Replacement - LINX Officially Released

0 Kudos
Message 25 of 30
(2,355 Views)

Hi Khga123.

you can use the LINX library.

https://labviewhacker.com/doku.php?id=learn:libraries:linx:getting_started

in the link you can see the instruction to use.

is compatible with the arduino toolkit, i just use the LINX library to achieve the comunication.

0 Kudos
Message 26 of 30
(2,355 Views)

i too had the same problem while uploading lifa base to arduino and i was using arduino1.6.1 and it got compiled when i used arduino1.0.5. hope it works for u too.

0 Kudos
Message 27 of 30
(2,355 Views)

does the LINX support the xbee like LIFA

THANKS

0 Kudos
Message 28 of 30
(2,355 Views)

Yes

Here is a response posted by Sam Kristtoff

The easiest way to use an xbee for wirless communication with LINX is to use serial passthrough mode with a baud rate of 9600. You'll need to configure the Xbee and have one attached to your computer (with something like this) and the other xbee attached to an Arduino or other LINX device using the Serial firmware.


When you launch LabVIEW you'll select the com port associated with the Xbee and any data you transfer will be passed through the xbees to your remote LINX device.


Let us know if you have any questions about this.

Here is a link to Sam's message

<https://www.labviewmakerhub.com/forums/viewtopic.php?f=12&t=664&p=3965&hilit=Xbee#p3965>

hrh212

0 Kudos
Message 29 of 30
(2,355 Views)

Hi,

 

I'm also facing same issue while interfacing linx with arduino. How did you resolve it?

Certified LabVIEW Architect
System Test Architect
Electrical Engineering
JLR
0 Kudos
Message 30 of 30
(1,870 Views)