FRDM-K64F example featuring the Seeed Grove Temperature and Humidity sensor
Fork of FRDM-K64F_Seeed-Grove_Temp-Humidity_Example by
Simply Import this Program
into your mbed compiler
Select Compile
to generate the binary file
Open an Hyperterminal window and connect to the mbed Serial Port (COMxx)
peripheral using speed 9600bps
Plug the Grove Shield v2 on the top of your FRDM-K64F
Connect on end of the 4-pin Grove cable to the Temperature and Humidity module and the other end to the port A1 of the Grove Adapter
.
Drag n drop the FRDM-K64F_Seeed-Grove_Temp-Humidity_Example.bin
into the mbed drive from your file explorer
Wait for download to complete
Press the Reset/SW1 button of your FRDM-K64F board
to launch the program
Your hyperterminal window should now display Temperature and Humidity measurements (see picture below)!!
Diff: main.cpp
- Revision:
- 2:39e8fc849cb1
- Parent:
- 0:c12c28a0f9e7
--- a/main.cpp Tue Mar 10 21:33:31 2015 +0000 +++ b/main.cpp Thu Dec 31 00:26:07 2015 +0000 @@ -2,7 +2,7 @@ #include "mbed.h" #include "DHT.h" -DHT sensor(D4, DHT11); +DHT sensor(A0, DHT11); int main() {