WXforum.net

Weather Station Hardware => Davis Instruments Weather Stations => Topic started by: seaman55 on February 10, 2019, 12:11:14 AM

Title: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on February 10, 2019, 12:11:14 AM
I've done lots of searching and reading through this site, I hope I have not missed a post that already covers this. I apologize in advance if this is a repeat.

I'd like to get my UV and Solar sensors running from my roof mounted wind solar powered wireless sensor transmitter, instead of my ground mounted VP2 ISS, without it reporting out all of the unused sensors of the wireless sensor transmitter, or my unused wind sensor on the IIS.

My setup;
ID1 ISS daytime fan aspirated wireless VP2 sitting on grass at ~5' in the back yard (north side of the house, sun is from the south)
ID2 solar powered wireless sensor transmitter for the anemometer sitting at ~13' above the peak of the roof
standard WeatherBridge via USB weatherlink for reporting out WUnderground, PWSweather, Ambientweather, and CWOP.

I've tried setting up an Envoy8x to pull more than just wind sensor data from the rooftop transmitter (ID2), but the result was wind data being reported as 0 to the weather sites, since I had it looking at both the rooftop and ground setups as ISS's in order to see the extra sensors of the rooftop transmitter.

Will the WeatherBridgePro allow me to pick and choose which sensors from which transmitters to use for reporting out to the weather sites?
If not, is there another recommended solution?
I'd rather not run cables back to my ISS for my solar/UV sensors, when I have a perfectly good wireless transmitter on the roof already.

Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: Mattk on February 10, 2019, 02:09:17 AM
There can only be one ISS and that is where your UV & Solar has to connect. You could indeed connect UV & Solar to the current roof top anemometer transmitter but then that would have to then be your ISS so you would miss rainfall and temp/humidity etc unless also connected the roof top transmitter.   
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on February 10, 2019, 02:54:28 AM
So I guess the only real way to do it is to use something like an Envoy8x or WeatherBridge + Meteostick (since the WeatherBridge Pro doesn't appear to be available in the US), and call both ISS's, and then use some kind of software manipulate the data that is sent to each of the sites so that they see it as coming from 1 ISS sensor set, or run extension cables from my roof to my ISS on the ground? Or am I missing something entirely, and there is a way to get the solar and UV sensor data from the wind wireless transmitter in through the Envoy8x, or Weatherbridge without calling it an ISS?
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: johnd on February 10, 2019, 03:44:12 AM
Mark Crossley has a solution to this though it does involve running an extra device - hopefully Mark will see this and explain a little more.

Otherwise, using extension cables is undoubtedly the simplest option. But beyond this I think you need to be clear about what you're trying to do, which could be one of two things:

1. Collect solar & UV data for your own purposes (and maybe upload this data to weatherlink.com);

2. Also upload the data to other online networks like WU or CWOP

[1] can be achieved now by the 8X or a Pro Red, or you can wait for the new Davis Weatherlink Live unit, which should be along in 2-3 months' time.

It's [2] that presents the major problem and it's this that potentially needs extra code writing.The 8X can't do this (at least not out of the box). And I'm not aware that the Pro Red can do this either by default (ie without needing extra code) BICBW.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: mcrossley on February 10, 2019, 06:20:10 AM
John is referring to my "relay device". This is a Moteino board (an Arduino and a Hope RFM transceiver on the same board - I used the USB version (https://lowpowerlab.com/shop/product/100) for convenience).

For the software I use a lightly modified version (https://github.com/mcrossley/VPTools) of the VPTools library (https://github.com/kobuki/VPTools) which is maintained by kobuki on this forum.

Basically, you configure the relay to listen to your Davis transmitters, and tell it which sensor is on which transmitter. The relay then forwards all the sensor data via another transmitter ID as if it was coming from a single ISS. You then configure your VP2 console to listen to this new 'psuedo' ISS and drop the actual transmitters.

So my setup is...
Id #1 = Wind + (Solar + UV)  - up on my roof
Id #2 = ISS (Temp, Hum, Rain) - in the garden
Id #3 = Relay (Wind, Solar, UV, Temp, Hum, Rain)

Really I should swap 2 & 3 around one day to get the highest wind data refresh rate possible.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on February 10, 2019, 12:42:44 PM
But beyond this I think you need to be clear about what you're trying to do, which could be one of two things:

1. Collect solar & UV data for your own purposes (and maybe upload this data to weatherlink.com);
2. Also upload the data to other online networks like WU or CWOP
I trimmed the quote a bit.
#2 is a higher priority for now. I'm trying to get the most accurate data possible out to the sites and community, that's the main reason for splitting out the sensors this way too. If I could also get my PurpleAir air quality sensor data into this somehow, bonus points.
#1 later, eventually I want to setup my own server and site, but thought it would be best to have a stable/reliable hardware setup that can send to it first, rather than passing through it to the community sites. This way, if the server goes down for some reason, it doesn't affect the community data.

John is referring to my "relay device". This is a Moteino board (an Arduino and a Hope RFM transceiver on the same board - I used the USB version (https://lowpowerlab.com/shop/product/100) for convenience).
This sounds interesting, and right up my alley, a new Arduino project for me.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on February 10, 2019, 01:07:39 PM
This is a Moteino board (an Arduino and a Hope RFM transceiver on the same board - I used the USB version (https://lowpowerlab.com/shop/product/100) for convenience).
Which transceiver is the right/best one, they list 6 options?
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: mcrossley on February 10, 2019, 02:03:20 PM
This is a Moteino board (an Arduino and a Hope RFM transceiver on the same board - I used the USB version (https://lowpowerlab.com/shop/product/100) for convenience).
Which transceiver is the right/best one, they list 6 options?
I just use the 69CW, I don't need the higher power version as the board and console are well within the range of the standard RFM unit. The HCW also needs a minor code change. I have no idea about the LoRa versions.

If you add the flash memory, my code will store any "tweaks" to the settings (timing/frequency adjustments, and output option) in the flash to survive power cycles.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on February 10, 2019, 02:24:18 PM
Thank you. Looks like the US Davis frequency range is 902 - 928 MHz, will the ones listed work, they are listed as 868/915 MHz, or should I hunt for one that specifically covers the whole 902 - 928 MHz band? Just want to be fairly confident before I purchase. I suspect you're using the 868 MHz band.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: mcrossley on February 10, 2019, 02:30:44 PM
The 868/915 units work fine with Davis, they are the bands the unit works with rather than the range covered.

I have a 915 MHz VP2
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on February 10, 2019, 02:42:32 PM
Thank you, I also just answered my own question too, or rather you did  \:D/ I've found a previous post where you helped someone else through a similar setup.
https://cumulus.hosiene.co.uk/viewtopic.php?f=16&t=15915&sid=7e77cc6b9119a3d9bf9bfab93a9bf82b&start=15

Ordering now.   :grin:
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on February 11, 2019, 12:06:13 AM
@mcrossley
Funny, since I was already looking at Cumulus before posting this topic. I've never used it before, but was thinking I may as well begin with MX on my server when I set it up, I just wanted to make sure my data and hardware setup was solid first. I find this interesting since it also seems like you've been solving the same problems that I am trying to.
I err um suspect you'd recommend Cumulus MX?  ;)
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: mcrossley on February 11, 2019, 01:44:28 PM
MX does almost* everything I want, at the right price, and without the complication of some of the software.

* - We'll see if we can fix that ;)
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on February 18, 2019, 02:47:26 AM
My Moteino just arrived, snow delayed it a bit, its the HCW with added flash memory. I'll solder the antenna in the morning, and begin getting it loaded.
While I was waiting, I did a thing with a Raspberry Pi V3;
http://seamanville.com/pws/
Seems to work OK.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on February 18, 2019, 03:52:56 PM
I'm looking at your lightly modified library pulled from Github. Am I correct in thinking I just need to combine AnemometerTX, ISSRx, and RelayRxTx, in to one sketch, add the #define IS_RFM69HW_HCW radio.setHighPower(); to the RelayRxTx definitions section, upload it and it should work?

I've tested each individual sketch from those sections and they do show data in the serial monitor, so my setup is functional to this point.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: mcrossley on February 18, 2019, 03:56:42 PM
You shouldn't need to combine anything. Just configure the RelayRxTx sketch with your transmitter Ids, and which sensor is on which transmitter.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on February 18, 2019, 04:07:16 PM
Ok, way easier. =D>
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on February 18, 2019, 05:12:48 PM
Looks like I'm transmitting, but not receiving yet. Right now, my physical ISS is set to 1 and my physical wind is set to 2. So the defaults in the sketch, which are set to 0 and 1, should show something for R's, but only seeing T's so far.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: mcrossley on February 18, 2019, 05:43:39 PM
Have you set the associations? I have wind as #1, ISS as #2, so the defaults (mine :) ) will not be right for you...
Code: [Select]
// station id associated with each payload
// Zero relative = Davis ID -1
static PayloadStation payloadStations = {
  0, 0, 1, 0, 1, 1   // wind, uv, rain, solar, temp, hum
};
The initial sync to the transmitters can take a little while, but should be complete within 5 minutes.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on February 18, 2019, 06:08:57 PM
Since I haven't changed my station ID's yet (ISS-1, WIND-2), I've modified the Sketch to look like this;
Code: [Select]
// 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
};

// Stations to receive from
// id, type, active
static Station stations[NUM_RX_STATIONS] = {
  {0, STYPE_ISS, true},   // The 'real' ISS
  {1, STYPE_ISS, true}    // Anemometer txmr in my case
};
I also added the HighPower entry at the end of the Sketch definitions, I hope this is the right place.
Code: [Select]
#define CONFIG_VERSION "rt2" // ID of the settings block
#define CONFIG_START 32      // Where to store the config data in EEPROM
#define IS_RFM69HW_HCW radio.setHighPower();
Now I've started playing with the q-350, 400, 450 options in the serial console, and am now seeing entries come in that look right so far. Looks like I'm headed in the right direction.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on February 18, 2019, 06:10:09 PM
And I've learned how to enter code snippets in the forum. 8-)
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on February 18, 2019, 06:30:59 PM
Quote
The console radio screen has a field which shows the frequency correction applied to lock on to the transmitter - adjust the correction to get that bouncing around zero. (mine is normally between +/- 1) Without the frequency adjustment it was up in the 20's.

Um, which field is that?
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: Herbaldew on February 18, 2019, 07:03:03 PM
Quote from: seaman55
Um, which field is that?

Go back to the thread you referenced earlier ... particularly this post:  https://cumulus.hosiene.co.uk/viewtopic.php?f=16&t=15915&start=15#p126195 (https://cumulus.hosiene.co.uk/viewtopic.php?f=16&t=15915&start=15#p126195)
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on February 18, 2019, 09:39:48 PM
Found it and have been testing. BTW, is "#define IS_RFM69HW_HCW radio.setHighPower();" supposed to go in the sketch, or into DavisRFM69.h?
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on February 18, 2019, 09:56:38 PM
I think I found my answer.
https://lowpowerlab.com/forum/moteino/radio-frequency/
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 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.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on February 19, 2019, 10:21:40 AM
Signal strength shows 57-59, 0, or ----
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: mcrossley 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.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 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?
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: mcrossley 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.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: safuser 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".
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 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
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 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.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: mcrossley 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:
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: kobuki 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.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 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.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 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.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 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.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: safuser 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.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: mcrossley 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.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: safuser 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?
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: mcrossley 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
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 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.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 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.
(http://[attachment id=1 msg=371831][/attachment])
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.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 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.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: mcrossley 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.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 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.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 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]
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: twcmaster 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!



Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 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.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: twcmaster on April 13, 2019, 02:05:55 PM
Thank you very much for the response! I haven't been more excited about getting something up and running related to Davis in quite some time. 

I did everything in your message except the 2nd high power entry  (the void statement one). I decided to start from scratch, so I unzipped a brand new set of files and made all the changes per your message. I am still getting the same thing happening. To better explain it, all the numbers are zero when I boot up the console and go to the diagnostic screen. When data starts being received, it starts at 100% and then immediately to 50, and then 33, and it just drops down to there and ends up at 5 or 6%

I think I have it set up correctly for the most part. I let it run all last night and an outside temperature showed on the console but it wasn't updating, but a good packet or 2 must have made there way in there at some point overnight. When I look at the serial info, it looks like everything is working as it is supposed to.

Any other thoughts on anything I could be missing or should check?

Thanks Again!!!


1578423100   T   85-00-00-2E-CD-00-6A-EE-FF-FF   6   ----------/---------/----------/----   38   -   -   2937452   ok   -   -   temp   74.8 (23.8)
1578443584   R   52-00-00-FF-71-00-C3-1B-FF-FF   3   151715440/3926025226/2466393097/187.2   16   -82   6   2689892   ok   -   -   r_secs   -
1581133492   R   A2-00-00-16-3D-00-E8-62-FF-FF   3   168492656/3926025225/2466393097/187.2   17   -76   6   2689908   ok   -   -   hum   79.0
1581298188   T   E5-00-00-35-05-00-19-99-FF-FF   6   ---------/----------/----------/----   39   -   -   2875088   ok   -   -   rain   53
1583111596   R   97-00-00-00-05-00-F9-10-FF-FF   8   2018642277/158880815/1601659250/9.0   6   -40   1   1978104   ok   -   -   gust   -
1583823352   R   82-00-00-2A-1D-00-6B-48-FF-FF   3   151715440/3926025226/2466393097/187.2   18   -75   6   2689860   ok   -   -   temp   67.3 (19.6)
1584173264   T   55-00-00-FF-75-00-0B-5A-FF-FF   6   ---------/----------/----------/----   40   -   -   2920644   ok   -   -   r_secs   -
1586114008   R   87-00-00-2E-C9-00-E1-AE-FF-FF   8   2018642277/158880815/1601659250/9.0   7   -39   2   3002412   ok   -   -   temp   74.8 (23.8)
1586513216   R   E2-00-00-35-01-00-D1-D8-FF-FF   3   151715440/3926025226/2466393097/187.2   19   -75   6   2689864   ok   -   -   rain   53
1587048264   T   65-00-00-38-05-00-8F-E8-FF-FF   6   ---------/----------/----------/----   41   -   -   2911864   ok   -   -   solar   394
1589116668   R   E7-00-00-80-05-00-87-D6-FF-FF   8   2018642277/158880815/1601659250/9.0   8   -40   2   3002660   ok   -   -   rain   -
1589923260   T   85-00-00-2E-CD-00-6A-EE-FF-FF   6   ----------/---------/----------/----   42   -   -   2903412   ok   -   -   temp   74.8 (23.8)
1591892988   R   A2-00-00-16-3D-00-E8-62-FF-FF   3   151715440/3926025226/2466393097/187.2   21   -76   6   5379772   ok   -   -   hum   79.0
1592119372   R   57-00-00-FF-75-00-80-1A-FF-FF   8   2018642277/158880815/1601659250/9.0   9   -37   2   3002704   ok   -   -   r_secs   -
1592798336   T   E5-00-00-35-05-00-19-99-FF-FF   6   ----------/---------/----------/----   43   -   -   2894788   ok   -   -   rain   53
1594582888   R   82-00-00-2A-1D-00-6B-48-FF-FF   3   151715440/3926025226/2466393097/187.2   22   -84   6   2689900   ok   -   -   temp   67.3 (19.6)
1595122016   R   A7-00-00-BD-19-00-E0-E8-FF-FF   8   2018642277/158880815/1601659250/9.0   10   -42   2   3002644   ok   -   -   hum   44.5
1595673308   T   55-00-00-FF-75-00-0B-5A-FF-FF   6   ----------/---------/----------/----   44   -   -   2886236   ok   -   -   r_secs   -
1598548364   T   A5-00-00-BD-1D-00-6B-A8-FF-FF   6   ----------/---------/----------/----   45   -   -   2875056   ok   -   -   hum   44.5
1599962640   R   52-00-00-FF-71-00-C3-1B-FF-FF   3   151715440/3926025226/2466393097/187.2   24   -77   10   5379752   ok   -   -   r_secs   -
1601127316   R   E7-00-00-80-05-00-87-D6-FF-FF   8   2018642277/158880815/1601659250/9.0   12   -37   1   6005300   ok   -   -   rain   -
1601423384   T   85-00-00-2E-CD-00-6A-EE-FF-FF   6   ----------/---------/----------/----   46   -   -   2934668   ok   -   -   temp   74.8 (23.8)
1602652524   R   62-00-00-7C-41-00-8B-08-FF-FF   3   151715440/3926025226/2466393097/187.2   25   -75   5   2689884   ok   -   -   solar   874
1604129980   R   57-00-00-FF-75-00-80-1A-FF-FF   8   2018642277/158880815/1601659250/9.0   13   -40   2   3002664   ok   -   -   r_secs   -
1604298372   T   E5-00-00-35-05-00-19-99-FF-FF   6   ----------/---------/----------/----   47   -   -   2926188   ok   -   -   rain   53
1607132668   R   A7-00-00-BD-19-00-E0-E8-FF-FF   8   2018642277/158880815/1601659250/9.0   14   -37   2   3002688   ok   -   -   hum   44.5
1607173436   T   55-00-00-FF-75-00-0B-5A-FF-FF   6   ----------/---------/----------/----   48   -   -   2917560   ok   -   -   r_secs   -
1608032320   R   E2-00-00-35-01-00-D1-D8-FF-FF   3   151715440/3926025226/2466393097/187.2   27   -83   5   5379796   ok   -   -   rain   53
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on April 13, 2019, 03:56:07 PM
Can you list each of your transmitter and console ID's, and what they are? It almost sounds like you have a conflict, or another device nearby using the same frequency that may be jamming your moteino.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: twcmaster on April 13, 2019, 05:59:08 PM
Originally, I was trying to connect to ID 6 on the console (5 in the sketch). My ISS for wind/rain/uv/solar was 3 (2 in the sketch) and my temp/hum was 7 (6 in the sketch).

After reading your post, I switched everything around and it is doing the same thing. I set the temp/hum to ID 1 so it wasn't "in the way" and then used 7 for the console (6 in the sketch) and used 3 for my ISS for everything but wind (2 in the sketch) and 2 for wind (1 in the sketch) which is my anemometer transmitter.  I have two consoles running right now with the exact same results (5% good packets).

I am dying to get this working and feel like I am so close, but now out of ideas.


Could it be an antenna issue? If I take the antenna off completely, shouldn't the board still work if it is only a few feet from the ISS and console?

Does firmware version matter? I have the latest 4.30.

Also, is the "packet_counts" column supposed to be all hyphens/dashes for the transmit columns and populated for the receives. Is this normal behavior?

Code: [Select]
time Rx/Tx raw_packet_data              id packet_counts chan rssi fei delta_t batt wind dir sensor value

99925944 R 52-00-00-FF-71-00-C3-1B-FF-FF 3 16907888/3926025217/2466393097/187.2 1 -84 5 0 ok - - r_secs -
102615748 R 62-00-00-07-41-00-A3-F1-FF-FF 3 168492656/3926025224/2466393097/187.2 2 -88 5 2689804 ok - - solar 51
102807404 T 56-00-00-FF-71-00-09-7E-FF-FF 7 ---------/----------/----------/---- 34 - - 2937012 ok - - r_secs -
105744436 T A6-00-00-00-01-00-5F-F8-FF-FF 7 ---------/----------/----------/---- 35 - - 2937032 ok - - hum -
107995380 R E2-00-00-35-01-00-D1-D8-FF-FF 3 168492656/3926025225/2466393097/187.2 4 -86 4 5379632 ok - - rain 53
108681540 T 86-00-00-FF-C1-00-B3-C7-FF-FF 7 ---------/----------/----------/---- 36 - - 2937104 ok - - temp -
110685192 R 52-00-00-FF-71-00-C3-1B-FF-FF 3 168492656/3926025225/2466393097/187.2 5 -86 5 2689812 ok - - r_secs -
111618520 T E6-00-00-35-01-00-1B-BD-FF-FF 7 ---------/----------/----------/---- 37 - - 2936980 ok - - rain 53
113375020 R 42-00-00-00-01-00-1E-A5-FF-FF 3 168492656/3926025225/2466393097/187.2 6 -88 5 2689828 ok - - uv 0.0
114555540 T 56-00-00-FF-71-00-09-7E-FF-FF 7 ---------/----------/----------/---- 38 - - 2937020 ok - - r_secs -
116064820 R 82-00-00-26-C9-00-0B-0E-FF-FF 3 168492656/3926025225/2466393097/187.2 7 -85 5 2689800 ok - - temp 62.0 (16.7)
117492632 T 66-00-00-07-41-00-69-94-FF-FF 7 ---------/----------/----------/---- 39 - - 2937092 ok - - solar 51
120429708 T 86-00-00-26-C9-00-C1-6B-FF-FF 7 ---------/----------/----------/---- 40 - - 2937076 ok - - temp 62.0 (16.7)
123366708 T E6-00-00-35-01-00-1B-BD-FF-FF 7 ---------/----------/----------/---- 41 - - 2937000 ok - - rain 53
124134272 R 92-00-00-00-05-00-BA-11-FF-FF 3 168492656/3926025225/2466393097/187.2 2 -86 5 8069452 ok - - gust -
126303688 T 56-00-00-FF-71-00-09-7E-FF-FF 7 ---------/----------/----------/---- 42 - - 2936980 ok - - r_secs -
129240708 T 46-00-00-00-01-00-D4-C0-FF-FF 7 ---------/----------/----------/---- 43 - - 2937020 ok - - uv 0.0
132177692 T 86-00-00-26-C9-00-C1-6B-FF-FF 7 ---------/----------/----------/---- 44 - - 2936984 ok - - temp 62.0 (16.7)
135114716 T E6-00-00-35-01-00-1B-BD-FF-FF 7 ---------/----------/----------/---- 45 - - 2937024 ok - - rain 53
138051744 T 56-00-00-FF-71-00-09-7E-FF-FF 7 ---------/----------/----------/---- 46 - - 2937028 ok - - r_secs -
140988724 T 96-00-00-00-01-00-70-74-FF-FF 7 ---------/----------/----------/---- 47 - - 2936980 ok - - gust -
143925720 T 86-00-00-26-C9-00-C1-6B-FF-FF 7 ---------/----------/----------/---- 48 - - 2936996 ok - - temp 62.0 (16.7)
146862748 T E6-00-00-35-01-00-1B-BD-FF-FF 7 ---------/----------/----------/---- 49 - - 2937028 ok - - rain 53
149799748 T 56-00-00-FF-71-00-09-7E-FF-FF 7 ---------/----------/----------/---- 50 - - 2937000 ok - - r_secs -
152736776 T 66-00-00-07-41-00-69-94-FF-FF 7 ---------/----------/----------/---- 0 - - 2937028 ok - - solar 51
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on April 14, 2019, 12:49:33 AM
Looks like you are pretty close. Always have an antenna connected to a transceiver when it is live, it is possible to cause damage if not.
Notice the R and T in the Rx/Tx column, and the id number in the id column, that is telling you which ID's it receiving from and transmitting to (the Davis ID's). notice toward the end you were only transmitting, looks like you lost signal from your ISS and other stations. Which antenna are you using? rssi you'll want to try to get below 75, 40s and 50s are pretty good, but not always possible.
In the console, you've set (q) somewhere around 400 the get these results? If so, probably a good time to start adjusting your (t) values. In the beginning I'd go with bigger jumps and give no less than 1 minute and no more than 5 minutes for it to pick up, until you get into the ballpark, then start fine tuning. Remember you can always use "?" to see what your current values are set at in case you forget where you left off.

The best I was able to get was 99% good packets, but can't really complain there.  :grin:
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on April 14, 2019, 12:51:25 AM
For the technical side of t values, see this quote;

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.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: twcmaster on April 14, 2019, 01:08:22 AM
Thank you for the replies, I definitely appreciate it! I am really itching to get this working properly.

Are you saying it is normal that I am at 5% good packets and then once I tweak my q or t values it will get much, much better? I got the impression everyone had 50's/60's/70's as far as % good packets right away and then they tweaked from there. I just want to make sure I don't have a bigger issue before I start tweaking.

Thanks again!
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on April 14, 2019, 04:41:21 AM
Correct, mine was actually very bad at first. I don't think I had a successful packet until I set q to 450, but then it wasn't very good. I think I posted it, but if I recall correctly, my percentages were like 20% or 30%, then I adjust t some more, then a bit of q, dialed it in to 99%. Don't be afraid to adjust those 2 settings.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: kobuki on April 14, 2019, 05:15:45 AM
Just to note, you get RSSI values below -80 which is not much higher than the default of the sketch IIRC, which is -90. I think you might want to try lowering the RSSI threshold to catch more packets.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on April 14, 2019, 05:27:53 AM
Just to note, you get RSSI values below -80 which is not much higher than the default of the sketch IIRC, which is -90. I think you might want to try lowering the RSSI threshold to catch more packets.
Now that may have been a setting I missed. Is there a block in the sketch that covers that?
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: kobuki on April 14, 2019, 05:30:44 AM
It should be:
Code: [Select]
DavisRFM69::setRssiThreshold()
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: seaman55 on April 14, 2019, 04:20:10 PM
It should be:
Code: [Select]
DavisRFM69::setRssiThreshold()
Doesn't look like that was included in the sketch by default.

Am I correct in assuming I should put it in this section?;
Code: [Select]
// DavisRFM69 radio base class;
DavisRFM69 radio;
DavisRFM69::setRssiThreshold();
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: twcmaster on April 14, 2019, 04:21:08 PM
It should be:
Code: [Select]
DavisRFM69::setRssiThreshold()
Doesn't look like that was included in the sketch by default.

Am I correct in assuming I should put it in this section?;
Code: [Select]
// DavisRFM69 radio base class;
DavisRFM69 radio;
DavisRFM69::setRssiThreshold();

It is in the DavisRFM69.h file
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: kobuki on April 14, 2019, 04:47:37 PM
Quote
It is in the DavisRFM69.h file

The declaration is, the definition (func body) is in the cpp.

@seaman55: use it after radio.initialize() somewhere in Arduino setup(). radio.initialize() sets all the defaults.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: twcmaster on April 14, 2019, 08:21:52 PM
I've been laser focused on trying to get my % of good packets received to stay at anything above 5-6% with absolutely zero luck. I have left t at 1, but adjusted q in increments of 5 from -300 to -475. Every time I adjust q, I reboot the console. Within a minute or two, it captures 1 packet at 100%, then goes to 50%, 33%, 25%, 20%, 16%, 14%, 12%, 10%, 8%, 6%, 5%. Once the maximum number of bad packets without sync hits 20, it stops and that is it. Nothing on the screen changes. When I leave the diagnostic screen, there is a temperature that was recently updated on the screen (I know because it has been steadily dropping all day and it is always within a couple tenths of a degree of where my production console shows (and different from the last reading). There is also a wind on the console, but it is static and doesn't update speed or direction.

Any ideas on where to go from here? Should I keep trying beyond -300 or -475 for q, or start messing with T? Could my board be defective or am I just not being patient enough?
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: kobuki on April 14, 2019, 08:25:40 PM
IIRC timing is the more prominent problem with this sketch, so I suggest trying to adjust that now as your frequency adjustments are not helping.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: twcmaster on April 14, 2019, 08:34:38 PM
Ok, thanks! What increment would you suggest changing each time?
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: kobuki on April 15, 2019, 02:40:12 AM
I think mcrossley will be able to answer that, this timing method is his own.
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: twcmaster on April 15, 2019, 02:44:58 AM
Ok, thanks again!
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: twcmaster on April 16, 2019, 02:55:01 AM
I have been borderline obsessed with figuring this out. I got no sleep this weekend and now I am sick with a cold  #-o, but I am finally happy to report I have some traction.

 I started changing T values in .0001 increments and I finally got it to stop throwing up so many errors. It was so thrilling to watch the reception % actually go up for once!

I am currently at q-450 and t1.0010 and I am getting 99-100% reception and -9/-10 frequency correction  (have to still work on this).

I still have a lot of tweaking to do as I am traveling and not at my house with my "production" environment (yes, I took a console, and transmitter with me ](*,)). Anyway, at least I know it is possible and that it is possible and my board is not broken.

Thanks to everyone who contributed to this project and jumped in on this forum to help me!



Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: kobuki on April 16, 2019, 04:42:48 AM
That's some serious dedication here :shock: Anyway, congrats to you with your new toy!
Title: Re: UV and Solar sensors on Wireless Sensor Transmitter
Post by: mcrossley on April 16, 2019, 07:37:44 AM
I *think* (it was some time ago!) that I captured some output logs, imported them into Excel and averaged the time between packets that the Ardunio saw (which depends on its clock speed and the transmitter accuracy). Then used the difference between that and the theoretical value to set the initial "t" value, I tweaked from there.