Author Topic: UV and Solar sensors on Wireless Sensor Transmitter  (Read 3450 times)

0 Members and 1 Guest are viewing this topic.

Offline seaman55

  • Senior Member
  • **
  • Posts: 68
    • Seamanville Weather
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #25 on: February 19, 2019, 10:09:15 AM »
It looks like around Q-430 gets me pretty close to 0 frequency correction, and 0 frequency error of last packet. But it won't hold for more than a few minutes. It will do great for a couple hundred packets, then get a bunch of bad packets, then drop the console and stations for a while. After running all night in diag mode, it showing 61% good packets, but I'm pretty sure it has no way of measuring when the connection is dropped.
« Last Edit: February 19, 2019, 10:22:17 AM by seaman55 »
http://seamanville.com/pws
Davis Vantage Pro 2 Plus Daytime-FARS/Meteobridge Pro/ weather34 template on Raspi v3 B+/PurpleAir AQI sensor
Wireless ISS sitting ground/Wireless Wind, Solar, UV sitting roof
Monroe, Washington USA
WU:     KWAMONRO94
CWOP: FW4493
PWS:   FRYELANDS01

Offline seaman55

  • Senior Member
  • **
  • Posts: 68
    • Seamanville Weather
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #26 on: February 19, 2019, 10:21:40 AM »
Signal strength shows 57-59, 0, or ----
http://seamanville.com/pws
Davis Vantage Pro 2 Plus Daytime-FARS/Meteobridge Pro/ weather34 template on Raspi v3 B+/PurpleAir AQI sensor
Wireless ISS sitting ground/Wireless Wind, Solar, UV sitting roof
Monroe, Washington USA
WU:     KWAMONRO94
CWOP: FW4493
PWS:   FRYELANDS01

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 1132
    • Wilmslow Astro
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #27 on: February 19, 2019, 12:10:18 PM »
Hmm, not as good as I'm getting. Normally the console/relay is 99.7%+ and zero resync's, and good packet runs 1000+ (and I live with 3G phone interference on one channel).
The transmitter/relay connectivity is a little less reliable, but still in the 90's%. They are subject to the same interference but are obviously further way.

The other thing to check is the timing. Are the inter packet intervals as shown on the output what you would expect? You will need to average over a largish number of packets - I import the data into Excel to process it. If not then the timing may need a slight tweak. One of my Moteinos appears to be pretty much spot on, the other is more reliable with a few % added.
Mark

Offline seaman55

  • Senior Member
  • **
  • Posts: 68
    • Seamanville Weather
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #28 on: February 20, 2019, 12:56:06 PM »
That's an interesting one, roughly what should I expect? Also which file and section is the right one to adjust for timing?
http://seamanville.com/pws
Davis Vantage Pro 2 Plus Daytime-FARS/Meteobridge Pro/ weather34 template on Raspi v3 B+/PurpleAir AQI sensor
Wireless ISS sitting ground/Wireless Wind, Solar, UV sitting roof
Monroe, Washington USA
WU:     KWAMONRO94
CWOP: FW4493
PWS:   FRYELANDS01

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 1132
    • Wilmslow Astro
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #29 on: February 20, 2019, 02:59:17 PM »
The "standard" interval according to Davis is...
(41 + TX_ID) * 1000.0  / 16.0)

Where TX_ID is the zero relative transmitter Id.

You can set the timer correction the same as the frequency adjustment, via the serial port...
t0.99987   - Would set the timer adjustment to 0.9987
q-430        -Would set your frequency adjustment.

The advantage of using the serial interface is you can tweak things on the fly and see the effect. All settings are stored in the non-volatile RAM so they survive power cycles, and even re-flashing, so long as you don't update the version number.
Mark

Offline safuser

  • Member
  • *
  • Posts: 49
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #30 on: February 20, 2019, 04:32:30 PM »
So how does the "q" frequency adjustment setting correspond to what I am seeing on the diagnostic screen on the VP2 Console?

i.e. The frequency correction factor (#5) on the console is showing "44".

Offline seaman55

  • Senior Member
  • **
  • Posts: 68
    • Seamanville Weather
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #31 on: February 20, 2019, 09:55:39 PM »
So how does the "q" frequency adjustment setting correspond to what I am seeing on the diagnostic screen on the VP2 Console?

i.e. The frequency correction factor (#5) on the console is showing "44".
I can answer that one now. The goal is to get the Correction Factor as close to 0 as possible. For mine setting q-430 is pretty close, and will bounce between 1, 0, and -1. q-400 looks to be a pretty good starting point to work from, for the ones from LowPowerLab at least.
And here is the code snippet that helps explain the actual effect on the frequency;
Code: [Select]
#define FREQ_CORR 0         // Frequency correction factor for RFM69 = (Required correction Hz) / 61
                            // E.g. 20kHz = 20000/61 = 328, should use RF_FSTEP, but 61 is close enough
                            // My Moteino's #1 = -450, #2 = -340
« Last Edit: February 21, 2019, 12:21:26 AM by seaman55 »
http://seamanville.com/pws
Davis Vantage Pro 2 Plus Daytime-FARS/Meteobridge Pro/ weather34 template on Raspi v3 B+/PurpleAir AQI sensor
Wireless ISS sitting ground/Wireless Wind, Solar, UV sitting roof
Monroe, Washington USA
WU:     KWAMONRO94
CWOP: FW4493
PWS:   FRYELANDS01

Offline seaman55

  • Senior Member
  • **
  • Posts: 68
    • Seamanville Weather
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #32 on: February 21, 2019, 01:35:43 AM »
Definitely getting closer now. Setting to t1.0080 maintains lock now, now I'm trying to find the magic number that will get me over 150 successes, from there, I want to clear 1000.
http://seamanville.com/pws
Davis Vantage Pro 2 Plus Daytime-FARS/Meteobridge Pro/ weather34 template on Raspi v3 B+/PurpleAir AQI sensor
Wireless ISS sitting ground/Wireless Wind, Solar, UV sitting roof
Monroe, Washington USA
WU:     KWAMONRO94
CWOP: FW4493
PWS:   FRYELANDS01

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 1132
    • Wilmslow Astro
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #33 on: February 21, 2019, 10:30:49 AM »
Sounds promising, I found the received signal strength quite sensitive to the antenna length. I ended up with mine being 78 mm above the cct board when I gave up tweaking - the cat has chewed it few times since though!  :roll:
Mark

Offline kobuki

  • Forecaster
  • *****
  • Posts: 838
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #34 on: February 21, 2019, 04:32:44 PM »
Welcome to the club, seaman55. In this time and age it's baffling one needs hacks to achieve this simple thing, isn't it. I hope you'll be successful in tuning Mark's sketch. My other solution to this same problem is WeeWx with a simple record event handler that takes the wind, UV and solar values from a Moteino on the serial interface and merges them into the other data from the console and the VP driver in WeeWx. But now I'm only using my Moteino-based receiver hooked to WeeWx, without using my Davis Envoy at all. BTW, the Meteostick and possibly the MB Pro is also capable of receiving arbitrary combinations of transmitters.

Offline seaman55

  • Senior Member
  • **
  • Posts: 68
    • Seamanville Weather
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #35 on: February 22, 2019, 12:35:46 AM »
Thank you, I was curious if the MB pro, or meteostick could actually did that. I've been waiting for the MB Pro to become available in the US again, and figured I go down this path until they are. I may do some testing with a meteostick too then, since those are available. Between my MBNanoSD and a Meteostick, I'd pretty much have a MB Pro Red.
I'm having enough fun with Mark's sketch, that I've ordered a second Moteino, and 2x antenna kits. Need two for good testing.
I've also had a bit of success setting up my site on a RaspberryPi V3 http://seamanville.com/pws/ with a really cool template you are bound to recognize :grin: . BTW, it is using the newer Nano direct features, and running MySQL.
This whole community rocks, so helpful, and so much info. Just think, I bought my first real weather station, a Vantage Vue in December (I think), returned it (wouldn't support what I thought it would), and started setting up my VP2 probably in Jan which has since been upgraded to a Plus with DT fan aspiration, and almost all of the info needed came from this and the Cumulus forum. I may have been reading a lot lately  ;) I do try to answer my own questions if possible before I post, but there is some natural law out there that dictates I will usually only find my own answer right after I give up and post the question.
« Last Edit: February 22, 2019, 11:40:07 AM by seaman55 »
http://seamanville.com/pws
Davis Vantage Pro 2 Plus Daytime-FARS/Meteobridge Pro/ weather34 template on Raspi v3 B+/PurpleAir AQI sensor
Wireless ISS sitting ground/Wireless Wind, Solar, UV sitting roof
Monroe, Washington USA
WU:     KWAMONRO94
CWOP: FW4493
PWS:   FRYELANDS01

Offline seaman55

  • Senior Member
  • **
  • Posts: 68
    • Seamanville Weather
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #36 on: February 22, 2019, 04:01:16 AM »
Or maybe the Meteostick is not available in the US, guess it's back to the drawing board.
http://seamanville.com/pws
Davis Vantage Pro 2 Plus Daytime-FARS/Meteobridge Pro/ weather34 template on Raspi v3 B+/PurpleAir AQI sensor
Wireless ISS sitting ground/Wireless Wind, Solar, UV sitting roof
Monroe, Washington USA
WU:     KWAMONRO94
CWOP: FW4493
PWS:   FRYELANDS01

Offline seaman55

  • Senior Member
  • **
  • Posts: 68
    • Seamanville Weather
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #37 on: February 22, 2019, 11:32:27 AM »
With any luck my roof will defrost enough this weekend for me to move the solar and UV sensors up there. Pretty soon I'll try out WeeWx, and Cumulus. I went with the Weather34 dashboard to begin with because I like the look, and it definitely supports the PurpleAir sensor.
http://seamanville.com/pws
Davis Vantage Pro 2 Plus Daytime-FARS/Meteobridge Pro/ weather34 template on Raspi v3 B+/PurpleAir AQI sensor
Wireless ISS sitting ground/Wireless Wind, Solar, UV sitting roof
Monroe, Washington USA
WU:     KWAMONRO94
CWOP: FW4493
PWS:   FRYELANDS01

Offline safuser

  • Member
  • *
  • Posts: 49
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #38 on: February 22, 2019, 12:14:35 PM »
So I've got the Freq correction factor (q-315) working so it is showing "0" correction factor on console.  My ISS(VUE) is on ID1 and console is receiving on ID5.  RelayRXTX is receiving from the ISS.  The console is receiving the packets on ID5, but no data is updating(wind, temp, humidity, etc)??

Can someone please elaborate on how the payloadStations settings works?

// station id associated with each payload
// Zero relative = Davis ID -1
static PayloadStation payloadStations = {
  1, 0, 0, 0, 0, 0   // wind, uv, rain, solar, temp, hum
};

Thx.
« Last Edit: February 22, 2019, 12:18:09 PM by safuser »

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 1132
    • Wilmslow Astro
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #39 on: February 22, 2019, 12:41:10 PM »
So all your sensors are on your Vue? Davis ID = 1
Code: [Select]
static PayloadStation payloadStations = {
  0, 0, 0, 0, 0, 0   // wind, uv, rain, solar, temp, hum
};

That just tells the code which transmitter ID to use for each sensor type.
Though I don't think the Vue does UV or Solar.

I used to have the code "learn" which transmitter owned each sensor, but found it more reliable to hard code it. It means you can the same sensor type on multiple transmitters, and pick which one you want to use.
« Last Edit: February 22, 2019, 12:42:54 PM by mcrossley »
Mark

Offline safuser

  • Member
  • *
  • Posts: 49
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #40 on: February 22, 2019, 12:47:18 PM »
So that is probably why my data is not updating.

If I understand right

Since my Vue is on ID1 I should use: 1,0,1,0,1,1 ??

If I later add a Anemometer on ID3 I would change it to: 3,0,1,0,1,1 so the wind data would be updated from ID3?

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 1132
    • Wilmslow Astro
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #41 on: February 22, 2019, 12:56:13 PM »
With Vue only it should be as I posted above - all zeros.

Remember, as per the comment, these numbers are = Davis ID -1

If you added a anemom transmitter on Davis ID 3 it would be
2, 0, 0, 0, 0, 0
Mark

Offline seaman55

  • Senior Member
  • **
  • Posts: 68
    • Seamanville Weather
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #42 on: February 23, 2019, 02:40:11 PM »
Is the default value for t, t1.0? I just attached a new dipole antenna, and want to make sure I'm at the correct starting point.
http://seamanville.com/pws
Davis Vantage Pro 2 Plus Daytime-FARS/Meteobridge Pro/ weather34 template on Raspi v3 B+/PurpleAir AQI sensor
Wireless ISS sitting ground/Wireless Wind, Solar, UV sitting roof
Monroe, Washington USA
WU:     KWAMONRO94
CWOP: FW4493
PWS:   FRYELANDS01

Offline seaman55

  • Senior Member
  • **
  • Posts: 68
    • Seamanville Weather
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #43 on: February 23, 2019, 09:22:19 PM »
I went with a suggestion mentioned earlier;
Code: [Select]
static PayloadStation payloadStations = {
  0, 0, 2, 0, 2, 2   // wind, uv, rain, solar, temp, hum
};

// Stations to receive from
// id, type, active
static Station stations[NUM_RX_STATIONS] = {
  {0, STYPE_ISS, true},   // Anemometer txmr in my case
  {2, STYPE_ISS, true}    // The 'real' ISS
The output in the serial monitor look a bit different now
18:09:27.776 -> 1346998456   R   E2-00-00-4F-01-00-CE-11-FF-FF   3   1174495488/2164261120/186145793/92.1   35   -63   0   2691128   ok   -   -   rain   79
18:09:27.880 -> 1347122080   R   A0-01-5D-00-03-00-52-97-FF-FF   1   0/496/14/97.3   43   -58   -2   2565964   ok   1   131   hum   -
18:09:30.063 -> 1349308536   T   E1-01-5D-4F-03-00-4C-BB-FF-FF   2   -/---/--/----   3   -   -   2625076   ok   1   131   rain   79
18:09:30.442 -> 1349688064   R   80-01-5D-FF-C3-00-BE-A8-FF-FF   1   0/497/14/97.3   44   -52   -2   2565984   ok   1   131   temp   -
18:09:32.700 -> 1351933508   T   51-01-5D-FE-73-00-76-81-FF-FF   2   -/---/--/----   4   -   -   2624972   ok   1   131   r_secs   1022
18:09:33.012 -> 1352254040   R   E0-01-5D-80-03-00-03-DD-FF-FF   1   0/498/14/97.3   45   -86   -1   2565976   ok   1   131   rain   -
18:09:33.115 -> 1352380644   R   62-00-00-FF-C5-00-F2-9A-FF-FF   3   1174495488/2164261120/186145793/92.1   37   -59   0   126604   ok   -   -   solar   -
18:09:35.327 -> 1354558560   T   A1-01-5D-89-3B-00-3E-C0-FF-FF   2   ----------/----------/---------/----   5   -   -   2625052   ok   1   131   hum   90.5
18:09:35.566 -> 1354820032   R   50-01-5D-FF-73-00-04-11-FF-FF   1   0/499/14/97.3   46   -49   0   2565992   ok   1   131   r_secs   -
18:09:35.846 -> 1355071748   R   82-00-00-18-19-00-C0-8D-FF-FF   3   1174495488/2164261120/421003264/83.7   38   -68   0   2691104   ok   -   -   temp   38.5 (3.6)
18:09:37.937 -> 1357183564   T   81-01-5D-18-1B-00-42-27-FF-FF   2   ----------/----------/---------/----   6   -   -   2625004   ok   1   131   temp   38.5 (3.6)
18:09:38.144 -> 1357385988   R   60-02-5D-00-01-00-02-75-FF-FF   1   0/500/14/97.3   47   -67   -1   2565956   ok   2   131   solar   0
18:09:38.525 -> 1357762848   R   E2-00-00-4F-01-00-CE-11-FF-FF   3   1560436992/2164261120/454581505/82.6   39   -74   -1   2691100   ok   -   -   rain   79
18:09:40.573 -> 1359808612   T   E1-02-5D-4F-03-00-A2-69-FF-FF   2   ----------/----------/---------/----   7   -   -   2625048   ok   2   131   rain   79
18:09:40.678 -> 1359951964   R   80-02-5D-FF-C3-00-50-7A-FF-FF   1   0/501/14/97.3   48   -50   -1   2565976   ok   2   131   temp   -
18:09:41.201 -> 1360453960   R   52-00-00-FE-71-00-F4-2B-FF-FF   3   1560436992/2164261120/454581505/82.6   40   -62   -1   2691112   ok   -   -   r_secs   1022
18:09:43.178 -> 1362433620   T   51-02-5D-FE-73-00-98-53-FF-FF   2   ----------/----------/---------/----   8   -   -   2625008   ok   2   131   r_secs   1022
18:09:43.283 -> 1362517944   R   E0-02-5D-80-03-00-ED-0F-FF-FF   1   0/502/14/97.3   49   -56   -1   2565980   ok   2   131   rain   -
18:09:43.869 -> 1363145072   R   42-00-00-FF-C5-00-C7-92-FF-FF   3   1560436992/2164261120/454581505/82.6   41   -73   0   2691112   ok   -   -   uv   -
18:09:45.772 -> 1365058640   T   61-02-5D-00-03-00-47-D5-FF-FF   2   ----------/----------/---------/----   9   -   -   2625020   ok   2   131   solar   0
18:09:45.839 -> 1365083956   R   50-02-5D-FF-72-00-D9-F2-FF-FF   1   0/503/14/97.3   50   -56   -1   2566012   ok   2   131   r_secs   -
18:09:46.566 -> 1365836196   R   82-00-00-18-09-00-C3-FE-FF-FF   3   1560436992/2164261632/152567808/93.4   42   -59   0   2691124   ok   -   -   temp   38.4 (3.6)
18:09:48.375 -> 1367649908   R   40-01-5D-FF-C1-00-00-98-FF-FF   1   0/504/14/97.3   0   -52   -1   2565952   ok   1   131   uv   -
18:09:48.408 -> 1367683716   T   81-01-5D-18-0B-00-41-54-FF-FF   2   -/---/--/----   10   -   -   2625076   ok   1   131   temp   38.4 (3.6)
18:09:49.280 -> 1368527480   R   E2-00-00-4F-01-00-CE-11-FF-FF   3   1560436992/2164261632/186146049/92.1   43   -66   -1   2691284   ok   -   -   rain   79
18:09:50.946 -> 1370215880   R   80-01-5D-FF-C3-00-BE-A8-FF-FF   1   0/505/14/97.3   1   -46   0   2565972   ok   1   131   temp   -
18:09:51.049 -> 1370308768   T   E1-01-5D-4F-03-00-4C-BB-FF-FF   2   -/---/--/----   11   -   -   2625052   ok   1   131   rain   79
18:09:51.951 -> 1371218392   R   52-00-00-FE-71-00-F4-2B-FF-FF   3   1560436992/2164261632/186146049/92.1   44   -70   -1   2690912   ok   -   -   r_secs   1022
And my UV sensor is no longer reporting data, confirmed on Meteobridge Nano live data tab, shows red in signal column.

I did go back up and re-seat the connections. It's too dark now to climb back on the roof, so fiddling more with the connections up there will have to wait til morning.
« Last Edit: February 23, 2019, 09:26:53 PM by seaman55 »
http://seamanville.com/pws
Davis Vantage Pro 2 Plus Daytime-FARS/Meteobridge Pro/ weather34 template on Raspi v3 B+/PurpleAir AQI sensor
Wireless ISS sitting ground/Wireless Wind, Solar, UV sitting roof
Monroe, Washington USA
WU:     KWAMONRO94
CWOP: FW4493
PWS:   FRYELANDS01

Offline seaman55

  • Senior Member
  • **
  • Posts: 68
    • Seamanville Weather
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #44 on: February 23, 2019, 09:36:55 PM »
I suspect a connection issue, I connected my console to Station No1, and was able to confirm the same behavior for the UV sensor, while the others updated just fine.
http://seamanville.com/pws
Davis Vantage Pro 2 Plus Daytime-FARS/Meteobridge Pro/ weather34 template on Raspi v3 B+/PurpleAir AQI sensor
Wireless ISS sitting ground/Wireless Wind, Solar, UV sitting roof
Monroe, Washington USA
WU:     KWAMONRO94
CWOP: FW4493
PWS:   FRYELANDS01

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 1132
    • Wilmslow Astro
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #45 on: February 24, 2019, 04:16:50 AM »
The ISS does not test the solar and UV values very regularly when it is dark to save battery, wait for daylight.

The default value for t is 1.0, but use the "?" command as per the documentation to check the current values.
Mark

Offline seaman55

  • Senior Member
  • **
  • Posts: 68
    • Seamanville Weather
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #46 on: February 24, 2019, 01:35:48 PM »
Good call on UV, it came back by itself with the sun. The data looks pretty good now, holding at 99% good packets.
http://seamanville.com/pws
Davis Vantage Pro 2 Plus Daytime-FARS/Meteobridge Pro/ weather34 template on Raspi v3 B+/PurpleAir AQI sensor
Wireless ISS sitting ground/Wireless Wind, Solar, UV sitting roof
Monroe, Washington USA
WU:     KWAMONRO94
CWOP: FW4493
PWS:   FRYELANDS01

Offline seaman55

  • Senior Member
  • **
  • Posts: 68
    • Seamanville Weather
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #47 on: February 24, 2019, 06:35:01 PM »
Went on the roof one last time today, to put an extension on the anemometer pole to get it 13 feet above the peak of the roof. Looks like I am getting 200 to 250 good packets at a time right now. All sensors showing good data. My second Moteino should be here tomorrow, it will help me better determine if my occasional interruption in good packet flow is environmental or setup.
Things are looking pretty good now. [tup]
http://seamanville.com/pws
Davis Vantage Pro 2 Plus Daytime-FARS/Meteobridge Pro/ weather34 template on Raspi v3 B+/PurpleAir AQI sensor
Wireless ISS sitting ground/Wireless Wind, Solar, UV sitting roof
Monroe, Washington USA
WU:     KWAMONRO94
CWOP: FW4493
PWS:   FRYELANDS01

Offline twcmaster

  • Contributor
  • ***
  • Posts: 100
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #48 on: April 13, 2019, 03:50:19 AM »
Hi All, I ordered my Moteino  board a few days ago. I have been spending all that time preparing everything so I could just upload my sketch and hopefully go right into tweaking my q and or t values.

Anyway, the problem I am having is that I cannot get reception on my Vue console over 5 or 6%. The antenna is in the board ,I have my sketch to transmit on ID 5, and I have my Vue ISS set to receive a VP2 ISS on ID 6. I have the high power version and I have inserted #define IS_RFM69HW_HCW radio.setHighPower(); in multiple places, so maybe I haven't put that in the correct place, but the board and console are only a few feet apart, so I would think it wouldn't matter that much or at least be over 6%.

Any ideas on where I can go from here to troubleshoot? I see lots of data in the serial viewer, but not sure where to go next. Should I start messing with q and/or t values or maybe something else.

I've already read through this thread and the Cumulus one multiple times, but not sure what I could be doing wrong or missing. Any assistance would be very greatly appreciated!




Offline seaman55

  • Senior Member
  • **
  • Posts: 68
    • Seamanville Weather
Re: UV and Solar sensors on Wireless Sensor Transmitter
« Reply #49 on: April 13, 2019, 11:53:39 AM »
My coffee is just kicking in.
I'm using examples from my Sketch, where my ISS is Davis ID 1, and my Wind station is Davis ID 2 and my moteino is using ID 3 to transmit to my console. Adjust according to your ID values.

moteino transmitter ID is specified in the definitions;
Code: [Select]
#define TX_ID 2
For high power, you just need 2 entries;
1. The definition at the end of the definitions section;
Code: [Select]
#define IS_RFM69HW_HCW       //uncomment only for RFM69HW/HCW! Leave out if you have RFM69W/CW!
2. The entry in void setup, after the initialize statement;
Code: [Select]
void setup() {
  Serial.begin(SERIAL_BAUD);

  // Get the default values for the config
  loadConfig();

  radio.setStations(stations, NUM_RX_STATIONS);
  radio.initialize(FREQ_BAND_US);
  radio.setBandwidth(RF69_DAVIS_BW_NARROW);
  radio.setTimerCalibation(storage.timer);
  radio.setFrequencyCalibation(storage.frequency);
  #ifdef IS_RFM69HW_HCW
    radio.setHighPower(); //must include this only for RFM69HW/HCW!
  #endif
If you have both entries, then you are running high power. You should set the moteino, console, and transmitters a few feet apart for better reception.
Then its a matter of making sure you are identifying your devices correctly, the moteino sketch ID's are 1 less than Davis ID's, so 0 in sketch = 1 in Davis and so on.
You need to make sure to specify the number of stations you are receiving from;
Code: [Select]
#define NUM_RX_STATIONS 2   // Number of stations we are going to listen for
What relative station ID's the sensor's are on "Davis ID -1";
Code: [Select]
static PayloadStation payloadStations = {
  1, 1, 0, 1, 0, 0   // wind, uv, rain, solar, temp, hum
};
and update the section just after it to match your ID's;
Code: [Select]
static Station stations[NUM_RX_STATIONS] = {
  {1, STYPE_ISS, true},   // Anemometer txmr in my case
  {0, STYPE_ISS, true}    // The 'real' ISS
};
That should be everything, then if you are running q somewhere around 400, you should start seeing more useful data.
then you can start adjusting you t values. It took me a while to dial in my t values.
« Last Edit: April 13, 2019, 12:43:48 PM by seaman55 »
http://seamanville.com/pws
Davis Vantage Pro 2 Plus Daytime-FARS/Meteobridge Pro/ weather34 template on Raspi v3 B+/PurpleAir AQI sensor
Wireless ISS sitting ground/Wireless Wind, Solar, UV sitting roof
Monroe, Washington USA
WU:     KWAMONRO94
CWOP: FW4493
PWS:   FRYELANDS01

 

anything