cansat
Dependencies: DHT SCP1000 mbed
Revision 0:0c6be6af3d6d, committed 2015-08-02
- Comitter:
- mohamedgamal
- Date:
- Sun Aug 02 08:43:04 2015 +0000
- Commit message:
- cansat
Changed in this revision
diff -r 000000000000 -r 0c6be6af3d6d DHT.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DHT.lib Sun Aug 02 08:43:04 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/Wimpie/code/DHT/#9b5b3200688f
diff -r 000000000000 -r 0c6be6af3d6d SCP1000.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SCP1000.lib Sun Aug 02 08:43:04 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/kadams6/code/SCP1000/#47d6f205890b
diff -r 000000000000 -r 0c6be6af3d6d mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Aug 02 08:43:04 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/bad568076d81 \ No newline at end of file
diff -r 000000000000 -r 0c6be6af3d6d total_project.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/total_project.cpp Sun Aug 02 08:43:04 2015 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" +#include "xbee.h" +#include "math.h" +#include "SCP1000.h" +#include "DHT.h" +SCP1000 scp1000(p5,p6,p7,p8); +Ticker myticker; +Ticker Send_data; +DHT sensor(p23,SEN11301P); +int main() +{ + +float temp; +int press; +int err; + xbeeInit(9600); + temp=scp1000.readTemperature(); + press=scp1000.readPressure(); + err = sensor.readData(); + +} \ No newline at end of file
diff -r 000000000000 -r 0c6be6af3d6d xbee.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xbee.h Sun Aug 02 08:43:04 2015 +0000 @@ -0,0 +1,11 @@ +/**********XBEE intialization file**************/ +Serial pc(USBTX, USBRX); +Serial xbee(p9,p10); //xbee pin assignment +DigitalOut rst1(p11); //xbee reset pin +/***********************************************/ +void xbeeInit(int baud){ + pc.baud(baud); + xbee.baud(baud); + } +/***********************************************/ + \ No newline at end of file