Ultrasonic Distance Sensor
Because there has been several requests for different ultrasonic distance sensors, I decided to make an all inclusive library for the ones that use similar communication protocols. These sensors require a trigger pulse and then the use of the Arduino pulseIn() function to measure the length of the output pulse. This requires custom LIFA firmware which is provided with the library.
Supported sensors:
DYP-ME007
HC-SR04
Parallax PING)))
SRF04
SRF05
US-100
I'm not able to test all of these sensors so please post to let me know if you are able to get them working. If they don't work, please also let me know so I can get them fixed.
Note: This document was formerly specifcally for the Parallax PING))).
How can I work with sensors from arduino source and the ultrasonic sensor from linx
You can't use LIFA and LINX together. You have to use one or the other.
True, what I want is to use it with LIFA
Thank you.
Date: Fri, 2 Oct 2015 15:06:02 -0500
From: web.community@ni.com
To: bjlcm_71@hotmail.com
Subject: Re: - LIFA Ultrasonic Distance Sensor
NI Community
LIFA Ultrasonic Distance Sensor
comentario nuevo por Nathan_B. Ver todos los comentarios en este documento
You can't use LIFA and LINX together. You have to use one or the other.
Responda a este correo electrónico para responder al comentario de Nathan_B..
de hola mi po drias faire Descargue Estós Archivos, utilizando el módulo estoy HC-SR04 y al ejecutar la aplicacion me da error de la ONU:
LIFA ultrasónico Distance.lvlib: Obtener Pulso Time.viLabVIEW Interfaz parrafo Arduino.lvlib: Init.vi. Un tiempo de espera se produjó al Intentar leer Formar el Arduino.
No se como Solucionar Este Problema (adjunto la imagen del programa)
Hola Usted podria ayudarme a descargar Estós Archivos, estoy Usando el módulo HC-SR04 y ejecutar la Aplicación géneros de error de la ONU:
Código 5003
LIFA ultrasónico Distance.lvlib: Obtener Pulso Time.viLabVIEW Interfaz párrafo Arduino.lvlib: Init.vi. Un tiempo de espera se produjó al Intentar leer Formar el Arduino.
imagen del Programa adjunto:
Nathan_B. escribio:
Usted Dębe Actualizar una LINX from LIFA se admite ya no oficialmente. Nativo Soporte Tiene también LINX Para El HC-SR04.
Gracias por su Respuesta, Precisamente eso hice, la Aplicación ya lo desarrolle con el módulo LINX, y resulto Menos complicado ya Que Cuenta Con Los vi de lectura, escritura y pwm de la USO similares a los vi de Arduino.
por intermedio de LINX lo resuelves de manera rapida, investiga que es una
aplicación adjunta a LABVIEW
2016-01-02 13:10 GMT-05:00 SHADOWFREE8000 <web.community@ni.com>:
NI Community <https://decibel.ni.com/content/index.jspa> LIFA Ultrasonic
Distance Sensor new comment by SHADOWFREE8000
<https://decibel.ni.com/content/people/SHADOWFREE8000> View all comments
on this document
<https://decibel.ni.com/content/docs/DOC-31869#comment-46596>
https://www.youtube.com/watch?v=HRMRjTHKtLk
El 4 de enero de 2016, 10:15, Fernando Moreno <qcmoreno@gmail.com> escribió:
por intermedio de LINX lo resuelves de manera rapida, investiga que es una
aplicación adjunta a LABVIEW
2016-01-02 13:10 GMT-05:00 SHADOWFREE8000 <web.community@ni.com>:
>> NI Community <https://decibel.ni.com/content/index.jspa> LIFA Ultrasonic
>> Distance Sensor new comment by SHADOWFREE8000
>> <https://decibel.ni.com/content/people/SHADOWFREE8000> View all comments
>> on this document
>> <https://decibel.ni.com/content/docs/DOC-31869#comment-46596>
este es una aplicación que realice
El 4 de enero de 2016, 10:35, Fernando Moreno <qcmoreno@gmail.com> escribió:
https://www.youtube.com/watch?v=HRMRjTHKtLk
El 4 de enero de 2016, 10:15, Fernando Moreno <qcmoreno@gmail.com>
escribió:
>> por intermedio de LINX lo resuelves de manera rapida, investiga que es
>> una aplicación adjunta a LABVIEW
>>
>> 2016-01-02 13:10 GMT-05:00 SHADOWFREE8000 <web.community@ni.com>:
>>
>>> NI Community <https://decibel.ni.com/content/index.jspa> LIFA
>>> Ultrasonic Distance Sensor new comment by SHADOWFREE8000
>>> <https://decibel.ni.com/content/people/SHADOWFREE8000> View all
>>> comments on this document
>>> <https://decibel.ni.com/content/docs/DOC-31869#comment-46596>
El subVI, mat, no te preocupes por el, lo impotante esta en trabajar con LINX
Good day.
I'm running tests measuring distance, and for that I am using HC-SR04 ultrasonic sensors and Paralax, with NI Myrio -1900 card.
My problem is that when I take below measures 20 cm, faults measures, the program crashes, that does not detect the echo.
The program is simple, generates a trigger signal, according to the manufacturer time and time off, and wait for the echo signal is taken, the time is calculated and converted to the extent and ends.
My question, NI Myrio -1900, not enough to read, very short time very well and for me that does not take away the right reading and reading is as if in echo?
How I can correct the program to read all measures, starting 2 cm?
Thank you
Since you are having issues with myRIO, I recommend that you post in the
myRIO forums. I assure you that the myRIO is fast enough for this sensor.
Alternatively, you can try LINX which has support for both the myRIO and
that sensor IIRC. http://www.labviewmakerhub.com/linx
Thank you
what are the pins you have defined for the triger and echo
i'm new to labview interface with arduino so can u pls help me to get correct LIFA base for HC- SR04. and i tried all Lifa base for these sensor its nt working.
Muchas gracias hermano, realmente me has ayudado!