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
--- /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
--- /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
--- /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
--- /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
--- /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