This simple project has been a learning experience for sure, and I'm starting to wonder if maybe I'm over-thinking the whole thing?
First off, standard microscope slides are made of a glass that is not 100% UV transparent. The only glass option is fused silica, and it adds about $15 to the project cost to get a small piece with a published 95% UV transparency spec.
Second thing that I learned is that a solar-powered USB battery pack cell phone charger automatically turns itself off when it thinks the phone has stopped charging. For some reason, it thinks that the NodeMCU controller has a full battery after 5 minutes, and switches it off. If I plug in a passthrough USB current/voltage meter, the power supply seems to keep running. I do not know how the extra load of the meter and its LED display will impact my power budget, not to mention that it is far from weatherproof.
I'm not going to recommend that anyone try to power small projects from one of those USB solar battery packs, because the limited size of the solar panel on the battery pack takes 96+ hours to recharge it from dead. The only reason why I am trying it is out of curiosity, since I had it sitting in my racing pit box for the winter and wanted to see how many days it could run the NodeMCU so that I can determine the power requirements for a permanent supply.
Third lesson (that I still have to research) is whether or not there is a standard sensor orientation for measuring lux and UV? Should the sensor be mounted parallel to the ground, pointed south at some pre-defined elevation angle, or incorporate a rotating platform to keep it always pointing at the sun? I could see an argument for measuring watts/meter^2 parallel to the ground, since that's the way that the soil will absorb it.
I didn't take a picture of the assembled prototype yet, but here's the breadboard layout. Note that the board is mounted vertical, and that's why the two sensor modules are hanging over the edge and turned 90 degrees:
I put it in one of these NEMA-rated gasketed boxes, with two holes knocked through the side for the sensors to see through:
We had a rare 100% sunny day yesterday with temps in the 60's...which was wasted because I was at work and didn't put the sensor outside.
I was poking around WU, and found a nearby Davis station that produced a perfect bell-shaped curve yesterday. It peaked at about 620 watts/M^2, which I'm going to use as the sanity check number for my own sensor's calibration. Today is partly cloudy, and the solar numbers are jumping all over the place. In terms of UV, 2-4 seems to be the norm at other local stations, but I'm getting 9+ in full sun. (I put the microscope slide over the fused silica glass out of curiosity, and it only dropped the readings into the 7's.) Guess I'll have to check the sensor math on that.....