In the post I made a couple days ago – and didn’t publicize in the Yahoo group (sorry about that), I mentioned that I ordered two 4 digit, 7 segment LEDs from Adafruit. These came in (along with the ‘backpacks’) on Friday. And today I took some time to put the two displays together.
The soldering of the backpack onto the LED display was easy. The most difficult part was in setting the address for one of the displays. Both use I2C, so i had to solder a jumper pad to change the address. The first attempt didn’t work too well, and some solder dripped over onto another pad. When i tried removing it, it ripped off the pad. UGH. Luckily, it didn’t damage the second pad and I was able to solder across that jumper.
I tested the two displays and was easily able to drive them both.
I then took the temperature circuit I had created a week ago and incorporate it into the display file. The code used a function to write the temperatures to the serial port, so i had to bring it back to the main loop to get it to the displays. I simply changed the void function() to a float function() and returned the temperature. Two floats were defined in the setup for the inside and outside temperatures, and then I printed those to the displays. You can see the weather proof sensor to the left of the board. The standard sensor is on the red solderless breadboard. To get the differential in temperatures, I held the waterproof sensor for a minute or so. Temperatures are in °C
I do wonder how to limit the precision to 1 decimal point. Any thoughts?