lape
LAPE e-log
Fields marked with
*
are required
Entry time:
Tue Sep 1 13:31:42 2026
Author
*
:
Type
*
:
- please select -
Routine
Software Installation
Problem Fixed
Configuration
Other
Category:
- please select -
General
Hardware
Software
Network
Other
Aividades do LAPE
Detectores de M?ons
Hardware Problem
Cintiladores
RioPix
Espectroscopia
Subject:
<p><br /> <br /> <span style="font-size: large;"> <strong>Informacoes importantes para utilizar o sensor SHT15 no Arduino e LabView</strong></span></p> <p><span style="font-size: large;"><strong>(Nao irei mostrar aqui como montamos as coisas, apenas guardar algumas informacoes uteis e tambem fiz upload de alguns arquivos uteis, no final do post.)</strong></span></p> <p><span style="font-size: large;"><strong>Se quiser ver o esquema de montagem e coisas do genero veja este(s) post(s): </strong></span>-Quando tiver-</p> <p> </p> <p><br /> ========================================================================== ==========================================================================<br /> ========================================================================== ==========================================================================<br /> <strong># Site da fabricante do sensor com informacoes do sensor e dados de montagem e codigo para arduino</strong><br /> <br /> <a href="https://www.sparkfun.com/products/8227">https://www.sparkfun.com/products/8227</a><br /> <br /> ========================================================================== ==========================================================================<br /> <strong># cara criou uma biblioteca ( .C++ e .h) que pode ser acessada no arduiono com os comandos para o sensor, sem precisar ficar copiando o codigo fonte todo.</strong><br /> <br /> <a href="https://github.com/practicalarduino/SHT1x ">https://github.com/practicalarduino/SHT1x </a></p> <p><a href="http://www.practicalarduino.com/news/id/211">http://www.practicalarduino.com/news/id/211</a><br /> <br /> ========================================================================== ==========================================================================<br /> <strong># Como ler a temperatura e mostra-la em um display</strong><br /> <br /> <a href="http://labdegaragem.com/profiles/blogs/tutorial-mostrar-a-temperatura-ambiente-com-o-arduino-em-um">http://labdegaragem.com/profiles/blogs/tutorial-mostrar-a-temperatura-ambiente-com-o-arduino-em-um</a><br /> <br /> ========================================================================== ==========================================================================<br /> <strong># Olhando o esquema de montagem e observando esta informacao: </strong><br /> <br /> ""The SHT15 uses a two-wire connection for communication that is similar to, but not, I2C. So we wont be able to use the Arduino’s dedicated lines for this.</p> <p>The down side is it is a bit slower to get readings from, the plus side is that you can connect it to any 2 digital pins you want. We are using pins 2 and 3 on our arduino.""</p> <p>( Fonte: <a href="http://bildr.org/2012/11/sht15-arduino/">http://bildr.org/2012/11/sht15-arduino/</a> )<br /> <br /> chego a conclusao de que o arduino consegue gerenciar até 6 sensores, usando as portas digitais de 2 a 13, em pares, desde que usemos uma alimentacao externa, pois so à uma porta de 5V no arduino, mas isso nao é problema algum !</p> <p>Daria para por muito mais usando o shield que tem nesse link: <a href="http://seeedstudio.com/wiki/Grove-_Temperature_and_Humidity_Sensor">http://seeedstudio.com/wiki/Grove-_Temperature_and_Humidity_Sensor</a> , mas nao acredito ser necessario compra-lo, nos temos varios microcontroladores ATMega que o Arduino usa, bastaria tira-los do arduino e usa-lo em uma protoboard.<br /> <br /> ========================================================================== ==========================================================================</p> <p><strong># Controlando o arduino pelo labview ( nao necessariamente com o SHT15, mas fica algumas coisas uteis)</strong></p> <p><a href="http://labdegaragem.com/profiles/blogs/controlando-arduino-pelo-labview-comunica-o-rs-232-serial-usb">http://labdegaragem.com/profiles/blogs/controlando-arduino-pelo-labview-comunica-o-rs-232-serial-usb</a></p> <p><a href="http://labviewhacker.com/doku.php?id=libraries:lifa:lifa">http://labviewhacker.com/doku.php?id=libraries:lifa:lifa</a> (esse site tem forum, logo é muito util)</p> <p><a href="http://">http://sine.ni.com/nips/cds/view/p/lang/pt/nid/209835</a></p> <p> </p> <p>========================================================================== ==========================================================================</p> <p><strong> # Informacoes dadas pelo professor Franciole Marinho ( IF/UFRJ-Macae) para tirar dados do arduino e por em txt ou algo parecido</strong></p> <p><br /> - Se voce estiver no windows pode tentar o recomendado nessa pagina para ler e escrever na porta:<br /> <br /> <a target="_blank" href="http://timewitharduino.blogspot.com.br/2009/05/getting-arduino-to-write-to-or-read.html">http://timewitharduino.<wbr></wbr>blogspot.com.br/2009/05/<wbr></wbr>getting-arduino-to-write-to-<wbr></wbr>or-read.html</a><br /> <br /> - Tem um caso interessante em que se tenta fazer a leitura usando python<br /> <br /> <a target="_blank" href="http://stackoverflow.com/questions/4633174/storing-serial-data-onto-a-text-file-using-python">http://stackoverflow.com/<wbr></wbr>questions/4633174/storing-<wbr></wbr>serial-data-onto-a-text-file-<wbr></wbr>using-python</a><br /> </p> <div>- Para o caso "unix based":<br /> <br /> <a target="_blank" href="http://arduino.cc/forum/index.php/topic,44265.0.html">http://arduino.cc/forum/index.<wbr></wbr>php/topic,44265.0.html</a></div> <div> </div> <p>- Outras opções são:<br /> <br /> <a target="_blank" href="http://electronics.stackexchange.com/questions/54/saving-arduino-sensor-data-to-a-text-file">http://electronics.<wbr></wbr>stackexchange.com/questions/<wbr></wbr>54/saving-arduino-sensor-data-<wbr></wbr>to-a-text-file</a><br /> <br /> <a target="_blank" href="http://my.safaribooksonline.com/book/hobbies/9781449399368/serial-communications/logging_arduino_data_to_a_file_on_yo">http://my.safaribooksonline.<wbr></wbr>com/book/hobbies/<wbr></wbr>9781449399368/serial-<wbr></wbr>communications/logging_<wbr></wbr>arduino_data_to_a_file_on_yo</a></p> <p>Veja se você está fazendo o setting da taxa de amostragem e essas coisas de acordo.</p> <p> </p> <p>====================================================================================================================================================</p> <p>Eu andei falando com alguns caras no Forum do labview, a respeito da implementação do labview com o arduino para ler o sensor SHT15, a resposta que obtive foi a seguinte:</p> <p> </p> <h3 style="margin:10px 0 5px;font-size:17px;font-weight:normal">Re: Arduino Digital Read</h3> <p><span style="margin-bottom:10px"> created by <a href="https://decibel.ni.com/content/people/Sammy_K" target="_blank">Sammy_K</a> in <i>LabVIEW Interface for Arduino</i> - <a href="https://decibel.ni.com/content/message/51974#51974" target="_blank">View the full discussion</a> </span></p> <hr style="margin:20px 0;border:none;background-color:#dadada;min-height:1px" /> <div> <p>I took a quick look at this sensor. It uses a non standard communication method but it might potentially work with SPI (ignoring the CS pin) if the correct mode is chosen, so you should do a bit of research to see if you can use SPI to talk to the sensor. If you can use SPI you can use the LIFA SPI VIs. If not you may want to implment the communication in the LIFA firmware and add custom commands to retrieve the data. Using the digital read / write commands from LabVIEW will be pretty slow if you have to send 8+ commands to get a single byte back.</p> <p style="min-height:8pt;min-height:8pt;padding:0px"> </p> <p>Good luck, let us know if you get it working.</p> <p style="min-height:8pt;min-height:8pt;padding:0px"> </p> <p>-Sam K</p> <p>LIFA Developer</p> </div> <div style="background-color:#f4f4f4;padding:10px;margin-top:20px"> <p style="margin:0">Reply to this message by replying to this email -or- <a href="https://decibel.ni.com/content/message/51974#51974" target="_blank">go to the message on Community</a></p> <p style="margin:0">Start a new discussion in LabVIEW Interface for Arduino by <a href="mailto:discussions-groups-labview--interface--for--arduino@decibel.ni.com" target="_blank">email</a> or at <a href="https://decibel.ni.com/content/choose-container%21input.jspa?contentType=1&containerType=700&container=1614" target="_blank">Community</a></p> </div> <p>====================================================================================================================================================</p> <p> </p> <p> </p> <p> </p> <p> </p>
Encoding
:
HTML
ELCode
plain
Suppress Email notification
Attachment 1:
ELOG V2.9.2-2455