docwelch / weather-station Goto Github PK
View Code? Open in Web Editor NEWWeather station using Arduino and BeagleBone Black
License: Other
Weather station using Arduino and BeagleBone Black
License: Other
Hi ...
My system :
Arduino uno R3 ( +5 volts ) + Xbee (first version) + Weather Shield ( sparkfun ) + Weather Meters ( SParkfun)+ BBB ...
I have a problem when retrieving the pression from the arduino ...
To get a good values i need to remove this line in the code :
// myPressure.setModeActive(); // Go to active mode and start measuring!
Also i change this value (128) to (7) in this line :
myPressure.setOversampleRate(7); // Set Oversample to the recommended 128
But the error is that the values i get from the sensor is too high 255825.00 after conversion = example 75.72 inHg ..
Sometimes i get 0 from the arduino ...
I used this formula to get the pressure from pascals to inhg :
payload[23] = tdailyrainin & 0xFF;
// Calculo la presion en hpa para enviar a wunther
float pressure = baromin / 100; //pressure is now in millibars
float part1 = pressure - 0.3; //Part 1 of formula
const float part2 = 8.42288 / 100000.0;
float part3 = pow((pressure - 0.3), 0.190284);
float part4 = LOCAL_ALT_METERS / part3; // Local_Alt_Meters esta ya en coma flotante
float part5 = (1.0 + (part2 * part4));
float part6 = pow(part5, (1.0/0.190284));
float altimeter_setting_pressure_mb = part1 * part6; //Output is now in adjusted millibars
float baroin = altimeter_setting_pressure_mb * 0.02953;
unsigned int tpressure = (unsigned int)(baroin * 100);
payload[24] = tpressure >> 8 & 0xFF;
payload[25] = tpressure & 0xFF;
what could be the problem ... a faulty weathershield / arduino ?
Also , sometimes i get that i have rain , but there is no raining ... maybe daily rain =0.09 , 0,10 .. etc .. if i reset the arduino rain = 0 ... after 2 hours rain =0.3 ... etc ...
Thanks so much ...
Hi ...
First of all i would like to thank you about your supperb work .. I have been checking your code and works ok .
I have found two possible errors i can not recover ...
In the code of BeagleBoneBlack . The info arrives from the arduino , it is displayed in the console of cloud9 IDE , but never execute sendDataToWunderground(); .. I see all the info comming from the arduino , but never sends data to internet ...
Also there is a problem in the code of the Arduino , Line ...
*baromin = myPressure.readPressureinHg(LOCAL_ALT_METERS); *
I tried to get some libraries from internet , included the ones in SPARKFUN but no luck , the function does not exist .. I have made new routine from example in SPARKFUN .. i will check ...
Maybe i make some mistake ...
Thanks a lot ...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.