This is a really great way to avoid buying the LIR2032 batteries. It’s very hard to find them in my little town, they’re in stock at times and I hate delaying a project because of a lack of batteries.
So I had the bright idea to use a 5v 4F capacitor instead!
Does it work? Yes. But…. only for about 2 days. But since this capcitor is only about 80 cents bought in packs of 20 I had to give it a try.
I would say that 95% of my instances of losing my clocks time due to power loss was because I didn’t set the battery in properly or it was during the testing phase/development stage and I was too lazy to put a battery into the RTC. Some where from momentary power loss from a loose or broken wire.
Most of my camera projects include solar power. If I’ve lost power because my 18650 batteries have run dry even with the solar in place… I’ve got bigger problems. This is more about keeping power to the RTC while changing out batteries from the projects.
For example, if I use AA batteries in a project and need to swap them out because they’re getting a little low it should only take about 2 minutes to swap them out. But if there’s no battery in the DS3231 I’ll lose my clocks time. With this capacitor in place it won’t lose the time.
For an even cheaper solution, check out this article: Click Here.
How to do it:
First let’s prepare our RTC
We’re going to take the split tab in the center of the photo above and bend it backwards. The little anchor pins might pop out and that’s fine!
The split metal part that we just bent outwards is the negative terminal. If you want to double check please plug in our RTC and check to make sure yours is the same as mine. In the photo above the split tongue part is the negative and the part on the left of the photo that grips the 2032 battery into place is the positive. If I plug my RTC into a breadboard for example, the pin CLOSEST to the board is the positive.
The Positive terminal on our capacitor is the one at the left of the photo above. We’re going to bend that pin out flat.
Next, bend the pin back up but do it closer to the center point. I usually go about the distance of the skinny part into the main part with my thumbnail. It used to be bent where the skinny part meets the thick part. I’ve bent it about 4-5mm farther in. You’ll be able to see where to bend it later as you put these two together.
You can see how the positive pin is bent now so that it meets the right spot on the RTC board. I’ve soldered the negative pins together already.
Time to solder the negative pins together. Try placing the capacitor where you want it so that you can see where the two points should meet. If you go too long that’s fine, you can always just push the pins down to make room.
Here’s another view just before I did the soldering. You can see how the two negative pins meet up.
Time to squish them together! The positive pin should go between the outer black plastic and the metal terminal. It will be a little tight at first but go for it. Once it snaps down into place it fits quite nicely. If you really want to, you can drop some solder in there or wrap the whole thing with a bit a tape.
That’s it my friends! Please don’t ever hesitate to ask question on here I love to help people out with their projects.
This is such an amazing little tool to have for so many reasons.
Photos of how to connect and use this device are at the bottom of the article past the sketch.
Broadcasts its own wifi signal for you to connect to.
Use a free FTP app on your smartphone or PC to send and receive photos, videos or files.
It uses the exact same IP address every time so once you’ve set it up in your FTP manager you just click a button to send files.
Powered by good old fashioned USB or a 5v source.
Let’s talk about speeds
The speed of this device is not going to win any races but the low cost of a WemosD1 makes this worth it.
Upload speed is between 100 to 200 KBPS that’s kilobytes per second. Download is faster at 200 to 300 KBPS.
When I tested the speeds I downloaded a 3.5MB photo and it took just under 10 seconds. This is the kind of device where you select all of the photos you want to move, click start and then go about another multitask.
I’m using an Iphone and an app called FTPManager that allows for one free connection at a time. The full app is $3.99
Important: You need three files, the sketch below is the first and then you need two more in the same folder as the sketch that can be downloaded here: CLICK HERE
#include <SD.h>
#include <ESP8266WiFi.h>
#include "ESP8266FtpServer.h"
const char* ssid = "SDcard1";
const char* password = "12345678";
// config static IP
IPAddress apIP(192, 168, 12,7);
IPAddress gateway(192, 168,12, 7);
IPAddress subnet(255, 255, 255, 0);
FtpServer ftpSrv;//set #define FTP_DEBUG in ESP8266FtpServer.h to see ftp verbose on serial
void setup(void){
Serial.begin(115200);
Serial.println("");
//Setting the Ip address for the WiFi connectivity
WiFi.config(apIP, gateway, subnet);
Serial.println();
Serial.print("Configuring access point...");
//Setting the esp to softaccess point mode
WiFi.mode(WIFI_AP);
WiFi.disconnect();
delay(100);
//changing softAP config and starting the Start AP
WiFi.softAPConfig(apIP, gateway, subnet);
WiFi.softAP(ssid, password);
Serial.println("Access point completed");
//2 indicates the Chip select pin
if (SD.begin(D4)) {
Serial.println("SD opened!");
ftpSrv.begin("esp8266","esp8266"); //username, password for ftp. set ports in ESP8266FtpServer.h (default 21, 50009 for PASV)
}
else
{
Serial.println("SD not opened");
}
}
void loop(void){
ftpSrv.handleFTP(); //make sure in loop you call handleFTP()!!
}
Using the wireless sd card with my Iphone:
Open up your wifi connections and select SDcard1. If you want a different wifi signal look for these lines in the sketch above: const char* ssid = “SDcard1”; const char* password = “12345678”;
Change SDcard1 to what ever you like, the password is 12345678
Now open up your favorite ftp app, I’m using FTPManager Pro.
In the photo above you can see the PLUS sign at the top right, click that.
Then select FTP
Display Name can be what ever you want to show in the app, it doesn’t have to be the same as the wifi signal but I did keep it the same.
Type in the IP address of 192.168.12.7
Leave everything else alone except username and password which are both esp8266 and this can also be changed in the sketch
This is a DIY altimeter for aircraft project guide that uses inches of mercury. You can adjust it for pressure changes just like the real thing. You can order a ready to go package from us, coming soon!
The power supply can be either the battery that I’ve installed 4.2v lipo or equivalent. You can also plug it into any usb power bank and skip the battery.
Very Important to Know
For aircraft use, this altimeter uses the internal cabin pressure to get its readings. The inside of an aircraft has a slightly lower pressure and therefore will cause your handheld altimeter to read a higher altitude than your aircraft’s main altimeter. Thankfully with some programming and mental aptitude we can adjust the handheld altimeter once we’re in flight and at speed.
The general rule of thumb so far is that you’ll see about 100 feet higher altitude on the handheld project than you will see on the aircraft’s main altimeter. The only absolute fix for this is to create a pitot static port for the DIY altimeter. Or when you’re on the ground you can simply start the DIY altimeter at 100 feet lower than airport altitude depending on the speed you travel on average but lots more to come on testing and calibrating.
If you’re not using this handheld altimeter project in an airplane, the accuracy works just fine. Open cockpit aircraft will not have to worry about this either. Hang gliding, parachuting, hiking and anything else of that sort will be accurate as well.
For Use as a Backup Altimeter:
Set your aircrafts altimeter as normal. Then once you’re at speed and out of the circuit, adjust your backup altimeter to match your aircraft’s altimeter. It will remain accurate at that point but any change in the cabin pressure will change the altimeter reading such as opening a window.
Each aircraft is different in regards to cabin pressure differentials so keep that in mind.
Let’s go over the numbers on the screen first and teach you how this works.
The Numbers on the Screen
Temp:19.74 *C P:30.30 | 30.33 Humid: 45.9% Alt:28.7 ft
The first line is pretty straight forward, it’s 19.74 degrees in my office. P:30.30 – This number shows your pressure. 30.33 – This number is the altimeter’s pressure setting. Humid: 45.9% is the humidity reading and yes it will have true altitude as a feature one day. Alt: 28.7 ft – This is your altitude.
What are the two buttons for?
The button circled with red will lower your pressure setting. The button circled in green will raise your pressure setting.
You can use this to set the altimeter just like the main altimeter on your airplane. When you power up the altimeter it will read what you had your pressure set to last time, but today there’s a new pressure setting. It’s currently set to say, 30.05 but when you’re getting your airport pressure numbers the pressure setting is supposed to be 29.99 so we simply adjust with our buttons until the second pressure number reads 29.99.
You’ll also see your altitude reading move at the same time. So if like me your airport always stays at 252 feet elevation (haha of course it stays at that elevation) you can simply power up the altimeter and adjust to the airport altitude, exactly as you do with your pre flight checklist when you get to altimeter setting.
A really fun test I did with this project. I drove to the beach and put the altimeter right on the ground where the ocean meets the beach and set the altitude to zero. I then walked to my car (with the altimeter in hand) and drove to my airport.
What a great moment it was when I looked at the altimeter and saw that it was 4 feet off from the airport elevation showing 256 feet. I got a little mad that it wasn’t exactly bang on… until I realized I was holding the altimeter in my hand at stomach height. I gave my head a shake and then put the altimeter on the ground at which point it read almost exactly 252 feet.
Ok enough story time.
With this altimeter you will need to know either your starting elevation or your pressure setting. As an example, you’re going hiking with it and you drive to the start of the trail to head up a mountain. You turn on the altimeter and it gives you a reading. This will NOT be your actual altitude. The altimeter MUST be set to you starting altitude. If you want to know how many feet you’ve climbed from the start of the trail that’s easy. Just move the current altitude to zero with your up and down buttons and start hiking.
Parts List:
Wemos D1 mini or pro BME280 LCD screen Two momentary push buttons Power supply – can be USB power like in the photos above or at 5v power supply wired into the board.
Both the BME280 and LCD screen use the same pins for SCL and SDA. SCL for both will go to D1 on the board. SDA for both will go to D2 on the board. Both BME280 and the screen will use 3.3v out from the board. All grounds go to the ground pin next to 5v on the board.
Buttons: The UP button needs a wire going from D3 to one side of the button, then the other side of the button goes to ground. When the button is pushed you’re causing a ground on pin D3 telling the board to move once. The DOWN button needs a wire going from D4 to one side of the button, then the other side of the button goes to ground.
The BME280 sensor is the red one on the image above but that’s not what they look like in real life, it was just the best representation that I could find in the list.
If you have questions please feel free to email ryan@starairvision.com
This is a DIY project guide or you can order a ready to go camera from us that’s pre-programmed.
In the photo above you can see the black box leaning against the trap. You’ll get better range by trying to keep the camera farther away from the ground but I thought for range testing this would be a good start. You can use any usb power bank.
There are smaller power banks with single cells that will fit inside the case I’ve used.
So what does it look like on my iphone 6s?
Parts you’ll need:
ESP32-CAM $15 Canadian FTDI USB Programming Connector $15 Canadian USB connection cable
Power Source: USB battery bank
Software you’ll need: Arduino IDE
What does this do? This project will create a simple live streaming camera that puts an image onto any smart phone or tablet that can connect to a wifi signal.
The camera comes with a wifi broadcast that you can name and set a password for. You connect your smartphone to the wifi signal from this camera and open your browser. Type in 192.169.4.1 and you’ll have the camera’s menu shown on your screen. It’s really that easy.
Let’s talk about the range for a minute.
The basic build in this guide, has a range of about 200-300 feet. You can get an ESP32-CAM that has a better antenna but you’ll need to be able to do some tiny, TINY soldering that requires some skill.
We do offer a service where I solder the pin pads that you need for the better antenna and there will be a guide coming soon on how to do it. Please get in touch with us. ryan@starairvision.com
Ok, back to more range options. I’m currently working on a wifi repeater that will extend the range to your smartphone to over 500 feet. With the right antenna setup the range is even better. More articles coming soon.
So what can we do with the 200 foot range?
This is simply a great way to check your trap without getting too close. Perhaps you’re out in the field for a week trapping wildlife for science and studying purposes. This is a perfect way to monitor the trap from a distance keeping your smell away from the site.
Sign up for our free newsletter for updates on cool projects
This is an add on project to our wildlife remote viewing camera. The difference here is that you won’t need a local LAN because the camera has its own access point built in.
Purpose of This Project
To find the maximum range of the wireless camera to a smartphone. To find the maximum range using a repeater system called mesh networking.
Step one in this project was to build the ESP32-cam’s streaming system without needing a router. The camera has its own access point. I will then attach repeaters and spread the system out seeing how many nodes/repeaters we can use before the system will collapse.
Line of Sight vs Forest Landscape
We have two very different environments to discuss. Without much difficulty (money) we can send this camera’s signal 20kms away and feed it to the internet for viewers around the world. Sounds amazing right? But 99 times out of 100 the areas we want to place a camera do not have direct line of sight rendering the amazingness useless. Sorry I like to use made up words sometimes, get used to it.
If you’re monitoring something with this camera on top of a mountain you’re in luck. Line of sight from mountains are great. For the rest of the world we need to figure out how to bounce the signal around our obstacles.
Goal Number One
Place the camera at the site and see how far away my Iphone 6 will pick up the video signal.
Goal Number Two
Place one repeater into the system and try to test the range to make sure the repeater is placed within its circle of range. It’ll be very tricky to make this efficient but still working. We could add in 20 repeaters every 30 feet but that’s not what we’re after here. We want to stretch out the network to its maximum capabilities and save on time and money.
Goal Number Three
To be able to view the water levels of the creek 300 meters away from the comfort of my home.
Get the Layout of the Land
The green circle in the photo above is our target location. It’s a creek flow control that makes sure the water levels don’t get too high. Its a concern for me as a home owner because the creek flows through my yard. When the water levels get to high and city worker open the flow to the main creek diverting water.
The red circle is my house.
Each yellow circle with a green dot in the center will be a repeater. The yellow circle at my house will be my cell phone.
Keep an eye on this project, once the 300 meters is complete I’ll keep moving the camera farther and farther away adding in more turns and repeaters to see what the max range really is. Stay tuned.
For email updates on this project please sign up to the free newsletter at the top of this article.
Sign up for our free newsletter for updates on cool projects
Best Webcam for Weather Underground is the One You Build
I can’t tell you how amazing it was to finally see that first image uploading to wunderground.com on Feb 3rd 2021. It’s been a long time of trying with no success for many people, if you’re camera isn’t working you’re not alone. This guide will show you how to make a webcam for weather underground that will upload at set intervals.
For some reason, at the time of writing this WU has the date set to one day too far ahead so you might get an error saying there’s no data for this date. Use the calendar to pick the correct day or to see my first test photo use this link: https://www.wunderground.com/dashboard/webcam/wu-0212083/5/2021-2-4
You can set the end of the link to the right date, hopefully the recognize this issue one day and fix it. Why not have a direct link that takes you to the camera’s most recent photo?
The camera location is in my back yard running off the wifi and a solar panel, the creek never floods or anything but I always wanted to have a camera to watch the ducks and to just keep an eye on the water level.
Another complaint that I have is that WU will only update your photo on the server every 15 minutes. So if you have your camera set to update ever 3 minutes you’ll end up wasting valuable solar power. I’ve set this project to update every 14 minutes.
Parts List:
ESP32-CAM Module FTDI Programmer 5v step up 18650 battery charge controller Solar Panel Camera Housing
Wiring up the Webcam Power Source
The esp32-cam needs 5v to operate. The 18650 battery is between 4.2v and 2.9v so we have to step it up. I’ll start at the battery holder with the obvious. Make sure you have the battery with the positive end at the top/red wire and the bottom is at the black wire end. During the soldering process keep the battery out of the holder please.
Battery Box to Charge Controller On the charge controller you’ll see pins marked B+ and B- where you will attach our battery holder. It’s the two pins on the inside, on the opposite end of the microusb port. The charge controller will cut off the connection for you if the voltage gets too low. Also VERY IMPORTANT this little unit will not work until a batter is attached and you connect the micro usb port to a power source, I’ve no idea why but it’s like an ON function or something.
Solar Cell to Charge Controller Connect the positive of the solar cell to the end of the board where the micro usb is and it’s labelled with only a + and a – symbol. This is the input end of the board. If you’re only using one solar cell you don’t need a diode to protect the solar cell. The charge controller will not allow voltage from the battery through to the cell, but the solar cell can charge the battery.
Charge Controller to Step Up 5V On the end where our battery is attached there are two pins left on the outside. The labels are OUT+ and OUT- which again, we put wires from positive to positive. The 5V step up will have IN+ and IN- which is where the charge controller connects to. On the other end of the step up there are 4 little pins and we want the outside ones. The labels are 5V and GND. Leave the D+ and D- empty.
5V Step Up to ESP32-CAM Connect the 5V on the step up to the 5V on the ESP32-cam. Connect the GND to GND.
Double check your connections and then plug a battery into the holder. You’ll need to plug that microUSB on the charge controller into a power source before this will work.
Creating Your Weather Underground Account and Camera
Sign up for wunderground.com as a free account. When you log in, look for “My Profile” at the top right corner and click that once. Then click on “My Devices”.
Click add new device. Under “outdoor webcam” select “FTP”
The next section will be for setting the location of the webcam on the map. You can enter your address if you want or click on “manual”. If you opt for the “manual” function you can grab the locator and move it where you want. Zoom into the map to where your camera will be sitting in the real world. Click the map once to make the marker go to that location. You’ll want to pick something fairly close to where your camera is but maybe not TOO close incase of snoopers.
Give your device a name. Then give your device a camera type, I just write in ESP32-CAM it doesn’t really matter. Associated PWS is if you have a weather station nearby. If not, select none.
Click accept and next/done.
On this next page that comes up you’ll have some crucial information given to you. There are two things you need, the rest has been taken care of for you in the code.
Device ID and Upload key are the two things you’ll want to write down. We need to place that into the script code that you’re going to upload to your new camera. This tells WU which camera to send these photos to.
If You’ve Never Installed Something with Arduino Before:
If you’re brand new to this I’ll walk you through the basic steps.
Download and install the arduino IDE program, it’s free but please make a donation to them if you can. They’re powered by awesome people like you.
Ok, first things first. Getting Arduino IDE ready. From here on I’ll just call it IDE.
Click on File and then preferences in IDE, then highlight everything in the Additional Boards Manager Url box at the bottom.
Delete what’s there and put these two lines in its place. https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json
The first line is the original with a comma at the end and the new one to make sure you get all of the available libraries. Click OK
Now click Tools at the top, then board, then boards manager.
Do a search for “esp32” and install the board by Espressif.
Next click tools at the top and then manage libraries.
In the search box type in “esp32 ftp”. The exact library you’re looking for is “esp32_ftpclient”.
Click install and then click close.
Now click File and then save as.
When prompted for the file name just type in ESP32-CamFtp. If it asked you to save it into another folder click ok to do so. You can name it what ever you want.
Highlight everything that looks like code on the page, there will be a few lines of code as your first file opens for you. Delete all of the code on the page, you want a perfectly clean page. Then open this txt file: Click Here (It’s the same link as above). Highlight everything in that text file. It might open on your screen and that’s fine. You can also save it to your computer.
Paste all of that txt file into your new file in IDE and click save.
The ssid is the name of the wifi signal you have available for the camera to use, your password goes below that where is says password.
The ftp server is always webcam.wunderground.com which is already in place for you. The user will be the camera “ID” that you wrote down while setting up that camera on wunderground.com and the pass will be the “key”. Here’s an example of how it should look. If you’re new to all this please and need help don’t hesitate to comment below as I’d be really glad to help you out.
We’re ready to hook up the ESP32-Cam to our computer with the FTDI programmer.
On the red ftdi make sure that the jumper near the pins is set to 5v and not 3.3v in the photo above it is set to 5v. The jumper should be on pin 1 and 2 or the left side closest to 5v.
Connect: Ground to Ground – black wire VCC (FTDI) to 5V (esp32-cam) – red wire TX (FTDI) to U0R (esp32-cam) – green wire RD (FTDI) to U0T (esp32-cam) – blue wire
Connect: GND to Io0 on the esp32-cam like this: – Brown wire
The reason for the jumper in the photo above is to tell the esp32-cam that you want it in the right mode to receive software or a download. In the photo above please ignore the microSD card as this project does not require one.
IMPORTANT: Hook up the FTDI and esp32-cam first and THEN plug the usb cable into the computer. It’s easy to make a mistake while trying to push the wires down. Another thing you need to know is that each time you upload to the esp32-cam you need to hit the reset button on the back next to the 5V pin. It will frustrate you to no end if you forget to hit reset and you try to upload because it needs that reboot after the jumper goes on.
So to restate, connect the esp32-cam and the ftdi first then add the upload jumper, then plug the usb port in. If you do it in that order you do not need to press reset but it’s a great habit to build. Before each upload I check for that jumper and then press reset it’s that simple.
Ok, now we have to tell IDE what kind of board we’re uploading to. Click Tools, then Board, then Esp32 Arduino, then scroll way to the bottom of the list and find “AI Thinker ESP32-CAM”. Click that one.
Now we have to tell IDE which port we’re on. Click Tools, then Port, and select the right port. This can be a pain finding the right port. I like to go to the list of port items and open the list of available ones. Unplug the FTDI and watch what happens in the list. Then plug it back in and you should see one appear in the list. That’s the port you want to select here.
OH BOY! We’re ready to upload!
At the top of IDE there is a check mark in a circle, to the left of that is an arrow pointing to the right. That’s the button you click to send the “script” that we’ve created to the ESP32-CAM. Click it!
In the bottom section you’ll see the process start. You might get some errors and if you do please comment below so I can correct the tutorial if needed I’ll respond right away.
If you don’t get any errors and it uploads, once it’s done you’ll see the percent hit 100 and it’ll say reset.
Take the jumper off the Esp32-cam and press the reset button on the back next to the 5V. With the other wires attached still, you can watch what happens!!
In IDE click tools and then serial monitor. A new window will pop up. You can press the reset button again if you like so you can watch the whole process. You’ll see it connecting to the wifi and sending the photo via the ftp server. You’ll also see any errors in this window if we didn’t do something correctly. It’s very common to have spelling mistakes in the SSID as well as wrong passwords for the wifi.
With any luck you should be able to go to wunderground.com now and see your photo.
Keep in mind that it will only refresh the photo every 15 minutes. It’ll drive you insane if you’re not aware of this thinking the photo isn’t working. Sometimes it skips a photo. Below your photo on the WU website you can see the last time it refreshed.
Please comment below with the location of your camera on WU I would REALLY love to see!
These little module are amazing. I’ve taken a 12v solar cell and attached it to the USB module. The positive is the square side on the module.
There’s not much too this project but it’s a good one. Another nice thing about these power banks is that they can charge and discharge at the same time.
Sign up for our free newsletter for updates on cool projects
DIY Solar Powered Weather Station
*Please Note! For this diy solar powered weather station you will need a different article on this website as a prerequisite for this project. This guide shows you how to add the solar portion. Follow this project and complete it first: Click Here
Features: Never have to change the battery again. Automatically disconnects power to protect the battery (Mine has never had to disconnect as it has enough backup power to last for weeks of dark winter days). If you have any concerns with this it’s very easy to just add more 18650 batteries in parallel to the 1 that I’m using. Automatically turns back on once the sun comes out and the batteries charge back up.
DIY Solar Powered Weather Station Parts List:
18650 charge protector 18650 Li-po battery 18650 Li-po battery holder 5v Step Up – In the photo I used a small stepup that I don’t recommend as they tend to fail, please use the one that I’ve recommended in the link “5v Step Up” as they’re now my go to unit and are awesome. 5v Solar Cell 500mah Wiring
diy solar powered weather station close up photoHere it is in action, on the back deck of the office loading up the battery even in cloudy winter conditions.Photo 3 – In this photo Voltage1 is at the top of the photo and Voltage2 is the bottom rail. You’ll need to know this for the explanations below.
In photo 3 the solar cell wiring is plugged into the bread board first in my example. I did this because it gave me the option to disconnect the solar cell and replace it easily but you don’t have to do this.
How to Connect the Wiring
The solar cell is connected to the 18650 charge controller at the end that has the micro USB. In photo 3 it goes from a red/white pair to a blue/white pair. It’s marked clearly with a + and a – where the wires connect. I only just realized that the 18650 charge controller will keep your solar cell safe if you have only one solar cell. The voltage will not flow back through to the solar cell and you do not need a blocking diode. If you have two solar panels in parallel you will need a blocking diode on each solar cell you add into the project.
18650 Charge Controller Wiring:
You’ve just connected the solar cell and now we’ll hook up the battery box. The two wires coming off the battery box go to Voltage1 (photo 3 and is the top rail). The top rail is then connected to the 18650 charge controller inside pins. You’ll see them on the board with labels of B+ and B- for battery positive and negative. Those solder pads will block electricity if the 18650 battery gets too low 2.7 volts I believe. They will reactivate when the solar cell charges them up to about 3.2 volts. Those pads will also not let the voltage from the solar take the 18650 batteries too high and will cut off the solar when the battery reaches 4.2 volts. The red light that indicates the solar cell is charging, will turn blue when the battery is full. They’re an amazing add on to any project. The outer pads are labelled out+ and out- and will be connect to Voltage2 (look at photo 3 its the bottom rail).
5v Step Up
On your 5v step up the bottom rail in photo 3 Voltage2 is connected to the “in” side of the step up. On the board it will be labelled IN+ and IN- then you connect the GND and 5V while leaving d+ and D- alone. Those inside solder pads will only give you the voltage of the IN side and we don’t use them in this project. Connect the GND and 5V on the step up’s out side to Vin and GND on your NodeMCU.
Deep Sleep wiring: You’ll notice a green wire in photo 3 going from RST (beside GND) to D0 on the NodeMCU. This makes a connection to wake the NodeMCU up and will save a lot of power. This is really important as it’ll save on the use of the battery overnight. It’s always better to use software to save power instead of just adding more expensive items like 18650 cells.
That’s it! If you have any comments or questions and what some help with your project I LOVE a good challenge. I’ll help you develop what ever you need without charge. But I’ll most likely end up creating a tutorial for my efforts.
Sign up for our free newsletter for updates on cool projects
This is a basic Arduino Weather Station for Weather Underground using a Nodemcu and BME280 temp humidity and pressure sensor. You can set the timer for updates, currently set for every three minutes. Please ask questions on this page, I love responding to people so don’t be afraid to say hello. If this is your first ever Arduino project then get a hold of me using the comments below and I’ll help you get it setup.
In the photo above, the power bank has 4 18650 batteries that will last about 5 days. The battery bank can take a solar panel and use it at the same time to recharge when needed. Let me know if you’re interested in this by posting below and I’ll build a how to article on that subject. The purple module is the BME280 and of course a NodeMCU. I’ll make an article about using a WemosD1 soon. The BME280 is known to read high and this article addresses that issue below.
IMPORTANT: The bme280 sensors are known to read a little bit high and have a floating temperature reading error or offset. If you’re ok with it being off a few degrees or you are willing to adjust the code a bit for your sensors error amount than this is a great little project. If not, I’ve built a section on adding in a DHT22 sensor to this same project.
Parts List: NodeMCU BME280 – Double check when yours arrives if it’s 3.3v or 5v
.Zip file for the code Click Here or scroll down and both files are printed on the page.
Very Important: Your WU weatherstation will not work on the newer ESP8266 board library. You’ll need to go to your board manager, find your install for esp8266 and then select 2.4.2 I’ve no idea why it doesn’t work on any other version, but I was pulling my hair out with this project and then randomly read that someone had to downgrade to make it work. Once you have it uploaded to your board you can go back to the newest update for your future projects.
ALSO VERY IMPORTANT: The picture below does not show a wire between D0 and RST. This is for the deep sleep function to help save power usage. It’s what wakes up the board to send the data. When you’re uploading to the nodemcu remove one end of this jumper from D0 to RST or you could get errors while trying to send the script to the Nodemcu.
A close up of the BME280 sensor and the NodeMCU. SDA to D2, SCL to D1, VIN to 3.3v and GND to GND. Do not power the BME from the 5v.
Normally the BME280 sensor reads high from 2 to 4 degrees Celsius. This project includes a way to correct your sensor. You’ll have to decide on how to correct it. If you want it accurate in winter and summer you’ll have to update your code during the season changes.
The alternative is to set it to about 3 degrees offset and have it average out. Currently it’s winter here and I’ve got it set bang on to see how it changes at it warms up around here in spring.
To fix the over temp issue on a BME280 find this line:
float sensor_temperature = bme.readTemperature() * 9/5+32; // Read temperature as Fahrenheit
Change that line where it says 9/5+32 to 9/5+30 like this:
float sensor_temperature = bme.readTemperature() * 9/5+30; // Read temperature as Fahrenheit
If you find that your reading is constantly over temp by say 5 degrees. Then you reduce the number to 27 instead of the original 32.
In the photo above, you can see how my weather station is now reading the same as the nearby stations. It used to drive me NUTS that mine was always 2-3 degrees higher than everyone else. Not that I normally like to follow the crowd, but my home weather station that I purchased was always on par with the people around me so I know that it’s the BME280 that’s off (or used to be).
Please feel free to post questions about the Arduino weather station for weather underground project below or email me at ryanrr@gmail.com
Sign up for our free newsletter for updates on cool projects
ESP32-cam Camera Trap
In this project we’ll be building an esp32-cam motion camera trap that saves photos to an SD card with the date and time in the file name.
This camera can last a very long time by using 18650 batteries. I’m using two 18650 batteries and haven’t done any testing yet on how long it will last but of course it depends on how many triggers are happening.
The code for this camera trap includes the ability to transfer the images over to a server. I’m still working on getting the server setup on a wifi lan and waiting for parts. I’ll update this when its ready.
The file name of each photo will have the date and then the time stamped like this:
08012021_11_41_30.jpg
The order is Day Month Year. Then after the first _ the time starts so 11:41 am and the last part is the seconds.
Why I wanted this included is because for a lot of the wildlife tracking I do, knowing what animals are in the area is no enough. Know what day and time it happened is obviously crucial.
The wiring above shows how I’m building these now. I’m no longer using a voltage step up as you see in the photos below. I’m running two 18650 batteries in parallel providing 4.1 volts total at full charge.
The wiring diagram above shows 4 AAA batteries in series and that will work too but I couldn’t find a diagram image for the 18650 batteries so I used that instead. The camera will stop working when the batteries reach 3 volts. The battery charge controller will cut off at 2.65 volts. I’m constantly using a 5v solar panel attached to the charge controller so the voltage always stays pretty high.Closeup of the esp32-cam motion camera trap.
Code You’ll Need For This Project:
Code: Although the code is listed below, you’ll need two other files as well. RTClib.cpp and RTClib.h Here are all of the files in a zip. Click Here