Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:odroidoduinoone [2013/11/04 13:57] odroid |
en:odroidoduinoone [2015/09/04 18:23] (current) odroid [Qt(Ubuntu arm)] |
||
---|---|---|---|
Line 12: | Line 12: | ||
DHT11 Sensor (Humidity / Temperature sensor) | DHT11 Sensor (Humidity / Temperature sensor) | ||
[[http://www.micro4you.com/files/sensor/DHT11.pdf]] | [[http://www.micro4you.com/files/sensor/DHT11.pdf]] | ||
- | {{en:dht11-humiditytempvsg.jpg}} | ||
- | |||
- | |||
+ | Connections are (V)oltage, (S)ignal, (G)round | ||
+ | {{en:oduinoone:dht11-humiditytempvsg.jpg}} | ||
DHT11 uses one-wire communication and I connected it to the digital Pin#3 of Arduino. | DHT11 uses one-wire communication and I connected it to the digital Pin#3 of Arduino. | ||
Also note that we should add a 10Kohm pull-up resistor on that pin. | Also note that we should add a 10Kohm pull-up resistor on that pin. | ||
- | See photo : Connections are (V)oltage, (S)ignal, (G)round | + | {{en:oduinoone:oduinoone_side.jpg?600|}} |
+ | |||
+ | The example code shows the temperature, humidity and pressed keypad information on LCD. | ||
+ | It also transmit that information to the host via USB. | ||
+ | |||
+ | {{en:oduinoone:oduinoone_top.jpg?600|}} | ||
+ | |||
+ | |||
+ | To compile this source code, you need to install the Arduino IDE on your ODROID board or PC. | ||
+ | <code> | ||
+ | $ sudo apt-get install arduino | ||
+ | </code> | ||
+ | |||
+ | I could run the Arduino IDE on ODROID with Ubnutu image. | ||
+ | The connection node of Arduino USB is "/dev/ttyACM0" or "/dev/ttyACM1". | ||
+ | To complete to compile this test code, you must install the library of DHT sensor. | ||
+ | Download dht.cpp and dht.h from below link and copy them into "~/sketchbook/libraries/dht". | ||
+ | [[http://playground.arduino.cc/Main/DHTLib]] | ||
+ | I should restart the Arduino IDE after copying to use the library. | ||
- | [code] | + | <code> |
#include <LiquidCrystal.h> | #include <LiquidCrystal.h> | ||
#include <dht.h> | #include <dht.h> | ||
Line 165: | Line 182: | ||
delay(50); // delay 50 msec. | delay(50); // delay 50 msec. | ||
} | } | ||
- | [/code] | + | </code> |
+ | |||
+ | ===== Application ===== | ||
+ | ==== Qt(Ubuntu x86) ==== | ||
+ | http://dn.odroid.com/ODUINO/binary/Ubuntu_Qt/x86/oduino | ||
+ | |||
+ | ==== Qt(Ubuntu arm) ==== | ||
+ | http://dn.odroid.com/ODUINO/binary/Ubuntu_Qt/arm/oduino | ||
+ | |||
+ | {{http://dn.odroid.com/ODUINO/binary/Ubuntu_Qt/screenshot, 2013-11-04 14:32:15.png?600|}} | ||
+ | |||
+ | The binary & source code of PC Application. | ||
+ | http://dn.odroid.com/ODUINO/source/Ubuntu_Qt/oduino.zip | ||
+ | === How to compile x86 and ARM Application for Ubuntu/Linux === | ||
+ | == install packages == | ||
+ | <code> | ||
+ | $ sudo apt-get install qt4-default qt4-designer libqwt-dev | ||
+ | </code> | ||
+ | == build the oduino == | ||
+ | <code> | ||
+ | $ cd oduino | ||
+ | $ uic oduin.ui > ui_oduino.h | ||
+ | $ qmake | ||
+ | $ make | ||
+ | </code> | ||
+ | |||
+ | == Tip == | ||
+ | If you need the application with Qt5, refer this link.\\ | ||
+ | http://forum.odroid.com/viewtopic.php?f=90&t=8524#p104675 | ||
+ | ==== Android ==== | ||
+ | http://dn.odroid.com/ODUINO/binary/Android/Oduino.apk | ||
+ | |||
+ | {{http://dn.odroid.com/ODUINO/binary/Android/Screenshot_2013-11-04-14-46-26.png?600|}} | ||
+ | |||
+ | The binary & source code of Android Application.\\ | ||
+ | http://dn.odroid.com/ODUINO/source/Android/Oduino.zip |