|
Re: Simple wind sensor
I added the cup anemometer example code to the OCS on github. The example code is functionally identical to what's below (compiles to the exact same thing) but the names of variables etc. were
I added the cup anemometer example code to the OCS on github. The example code is functionally identical to what's below (compiles to the exact same thing) but the names of variables etc. were
|
By
Howard Dutton
·
#339
·
|
|
Re: Simple wind sensor
This is the reason it's 0.015 not 0.03. Two switches, twice as many pulses for a given wind speed so the multiplier is 1/2 as much.
This is the reason it's 0.015 not 0.03. Two switches, twice as many pulses for a given wind speed so the multiplier is 1/2 as much.
|
By
Howard Dutton
·
#338
·
|
|
Re: Simple wind sensor
Well, I find this calculator: https://www.calctown.com/calculators/rpm-to-linear-velocity
So, with 80mm "anemometer arm" radius (measured at now) => 120 RPM gives 1 m/s. This is OK, because that gives
Well, I find this calculator: https://www.calctown.com/calculators/rpm-to-linear-velocity
So, with 80mm "anemometer arm" radius (measured at now) => 120 RPM gives 1 m/s. This is OK, because that gives
|
By
Zoltán Pásztor
·
#337
·
|
|
Re: Simple wind sensor
The # of switches is irrelevant. I was going to change the wording in the code comments but that just makes the subject even more confusing so I'm leaving it as is. Instead imagine the mechanics
The # of switches is irrelevant. I was going to change the wording in the code comments but that just makes the subject even more confusing so I'm leaving it as is. Instead imagine the mechanics
|
By
Howard Dutton
·
#336
·
Edited
|
|
Re: Simple wind sensor
This is the design of the anemometer.
https://www.thingiverse.com/thing:2523343
There is 2 magnets, so 1 revolution is 2 HIGH events.
And here is a sentence from the creators notes:
"The perimeter
This is the design of the anemometer.
https://www.thingiverse.com/thing:2523343
There is 2 magnets, so 1 revolution is 2 HIGH events.
And here is a sentence from the creators notes:
"The perimeter
|
By
Zoltán Pásztor
·
#335
·
|
|
Re: Simple wind sensor
The following should work I think. Just substitute this for the similarly named section/functions (they are just place-holders for the real thing) in Weather.ino
Naturally this logs the average wind
The following should work I think. Just substitute this for the similarly named section/functions (they are just place-holders for the real thing) in Weather.ino
Naturally this logs the average wind
|
By
Howard Dutton
·
#334
·
Edited
|
|
Re: Simple wind sensor
Perfect. This accuracy is enough, this is not a weather station.
Is this implementable to the Weather.ino?
Perfect. This accuracy is enough, this is not a weather station.
Is this implementable to the Weather.ino?
|
By
Zoltán Pásztor
·
#333
·
|
|
Re: Simple wind sensor
The formula is a simple multiplier. I'm sure it isn't accurate and is entirely based on the example sketch you provided.
The 0.054 part someone came up with converts to RPM to MPH. I just factored
The formula is a simple multiplier. I'm sure it isn't accurate and is entirely based on the example sketch you provided.
The 0.054 part someone came up with converts to RPM to MPH. I just factored
|
By
Howard Dutton
·
#332
·
|
|
Re: Simple wind sensor
Oh, I forget. There are two magnets in the body, front of the Hall sensor, at 180 degrees. Does this not change the calculation?
Oh, I forget. There are two magnets in the body, front of the Hall sensor, at 180 degrees. Does this not change the calculation?
|
By
Zoltán Pásztor
·
#331
·
|
|
Re: Simple wind sensor
Yeapp, that's looks good. Thank you for your effort.
What is the formula of the RPM2KPH conversion?
Yeapp, that's looks good. Thank you for your effort.
What is the formula of the RPM2KPH conversion?
|
By
Zoltán Pásztor
·
#330
·
|
|
Re: Simple wind sensor
The design of that sketch is such that it can't easily coexist with other code running.
I put this stand-alone Sketch together to quickly test a better concept that would be compatible with the
The design of that sketch is such that it can't easily coexist with other code running.
I put this stand-alone Sketch together to quickly test a better concept that would be compatible with the
|
By
Howard Dutton
·
#329
·
|
|
Re: Simple wind sensor
I don't want the LED and the temperature compensation. Only the KPH value.
I don't want the LED and the temperature compensation. Only the KPH value.
|
By
Zoltán Pásztor
·
#328
·
|
|
Re: Simple wind sensor
This code is working for me. What is the method, to put this code to the weather.ino?
#include <Wire.h>
// An anemometer for the Arduino
int LogInterval;
int SampInterval=2; //Number of seconds in
This code is working for me. What is the method, to put this code to the weather.ino?
#include <Wire.h>
// An anemometer for the Arduino
int LogInterval;
int SampInterval=2; //Number of seconds in
|
By
Zoltán Pásztor
·
#327
·
|
|
Simple wind sensor
Hi All!
Is there any reason to implement this simple wind sensor to the OCS?
https://www.thingiverse.com/thing:2523343
Is the hall sensors digital read fast enough?
What is the code for the
Hi All!
Is there any reason to implement this simple wind sensor to the OCS?
https://www.thingiverse.com/thing:2523343
Is the hall sensors digital read fast enough?
What is the code for the
|
By
Zoltán Pásztor
·
#326
·
|
|
Re: OCS crashing after adding IR component
Great to hear you are back in business!
Great to hear you are back in business!
|
By
Howard Dutton
·
#325
·
|
|
Re: OCS crashing after adding IR component
Hi,
I changed the sensor box making a new one with RJ45 female plugs firmly connected and everything is ok now.
I would say it is a 2.0 box ! it has been running for 2 days now with temp, sqm,
Hi,
I changed the sensor box making a new one with RJ45 female plugs firmly connected and everything is ok now.
I would say it is a 2.0 box ! it has been running for 2 days now with temp, sqm,
|
By
koal01
·
#324
·
|
|
Re: OCS crashing after adding IR component
You could run an I2C scanner Sketch on the Mega2560 to see what attached devices it finds (each has an unique id number.)
You could run an I2C scanner Sketch on the Mega2560 to see what attached devices it finds (each has an unique id number.)
|
By
Howard Dutton
·
#323
·
|
|
Re: OCS crashing after adding IR component
What these return depends on the sensor library support for determining if it was detected/init'd successfully. Most libraries don't support that so success is assumed otherwise.
What these return depends on the sensor library support for determining if it was detected/init'd successfully. Most libraries don't support that so success is assumed otherwise.
|
By
Howard Dutton
·
#322
·
|
|
Re: OCS crashing after adding IR component
I'm testing OCS on a bench with debug_weather ON without any sensor connected, only a mega.
I have no error in compiling but two sensors are failing while the respective libraries seem correctly
I'm testing OCS on a bench with debug_weather ON without any sensor connected, only a mega.
I have no error in compiling but two sensors are failing while the respective libraries seem correctly
|
By
koal01
·
#321
·
|
|
Re: OCS crashing after adding IR component
Thanks for your answer Howard.
The weather.ino is exactly the same as your observatory example.
What is attached ? IR MLX, SQM 2591, BMP180, temp and humidity sensor S071...
By the way I replaced the
Thanks for your answer Howard.
The weather.ino is exactly the same as your observatory example.
What is attached ? IR MLX, SQM 2591, BMP180, temp and humidity sensor S071...
By the way I replaced the
|
By
koal01
·
#320
·
|