An Arduino Nano weather station: air pressure, ambient temperature and relative humidity
Data Logger Tracker Kit Arduino Nano SD Card Kit
credit – I learned and hacked this from awesome maker cfastie https://publiclab.org/notes/cfastie/04-30-2017/data-logger-shield-for-nano
I’ve used this kit in my first TMJ prevention clench tracking device. It can be quickly assembled into any kind of data logger that is enabled for temperature and barometric pressure data, and it saves to a microSD card. It comes complete with everything needed to start logging data (AA batteries not included). The parts snap together so no soldering is required. A program is loaded on the Arduino Nano and will begin running and be saving data as soon as the logger is turned on.
The Arduino sketch can be downloaded here.
The kit includes an Arduino Nano and an SD shield which plugs underneath the Nano. The shield includes a slot for a microSD card and a real time clock (DS1307) so all data saved has an accurate time stamp. A coin cell battery for the clock is included.
A battery case for four AA batteries is included. It has an on/off switch and wires to connect to the screw terminals on the logging shield. Data can be logged continually for about two days on four AA batteries (not included). The logger can also be powered with the included mini USB cable from a computer or the included DC adapter (phone charger, supplies 5v from wall power).
A BMP280 sensor (3.3 volt operation only) is included for measuring the barometric pressure and temperature.
Other sensors can be ordered below from Adafruit.
Many sensors can be connected to one data logger. Most of the sensors available there are I2C sensors and each requires four wires to connect to the logger. Each I2C sensor comes with its own four-wire cable.
To connect more than one sensor at a time, a splitter or hub is required. You can solder the Hubs together yourself.
This logger is open source and like all Arduino based devices can be easily modified by adding additional sensors, LCD displays, indicator lights, relays, etc. The program loaded on the Arduino Nano can be easily modified and expanded using the free Arduino IDE. The easy solder-free connections make it possible to quickly try different configurations of sensors, indicators, and sketches while collecting real data with a reasonably sturdy device.
A video of how to and use of the Nano Logger can be viewed here.
You can order these separately from Adafruit or Support my Cause by buying this as a Kit
- Logging shield for Arduino Nano
- Arduino Nano compatible microcontroller
- BMP280 sensor for barometric pressure and temperature (3.3v only)
- Switched case for four AA or AAA batteries
- AC-DC converter supplies 5 volts from wall power
- USB type A to mini USB power cable (not for data transfer)
- 20 cm four-wire cable with single female DuPont connectors on both ends
- CR1220 coin cell battery for real-time clock
This data logger will save temperature and barometric pressure data to a microSD card.
It comes complete with everything needed to start logging data. A program is loaded on the Arduino Nano and will begin running and be saving data as soon as the logger is turned on. The clock on the logging shield has been set and the clock battery is installed.
- • Arduino Nano compatible microcontroller
- • Logging shield for Arduino Nano
- • BMP280 sensor for barometric pressure and temperature (3.3v only)
- • MicroSD card (1 GB or 4 GB) and adapter • Switched case for four AA or four AAA alkaline batteries
- • Phone charger (AC-DC converter), supplies 5 volts from wall power
- • USB type A to mini USB cable for power only (not for data)
- • 20 cm four-wire cable with single female DuPont connectors on both ends
- • CR1220 coin cell battery for real-time clock
1. Attach the Arduino Nano to the logging shield.
The USB port on the Nano must be near the green screw-terminal on the shield.
b. Line up the 30 pins on the Nano and press them into the headers on the shield.
2. Insert the microSD card in the slot on the shield.
3. Connect BMP280 (or other I2C) sensor. The supplied BMP280 requires 3.3 volts only.
a. Use the 4-wire cable to connect pins (Sensor – Shield):
- Nano – BMP280
- VCC – VCC
- A4 – SDA
- A5 – SCL
- GND – GND
- SDA (SDO-Serial Data Out) – A4 on Arduino Nano
- SCL (SCK) – A5 on Arduino Nano
- GND — GND on Arduino Nano
- VCC – 3V3 (or 5v depending on board)
4. Some other sensors require 5 volts, so VCC connects to the 5V pin.
Note:There’s a few many types of BMP280.
Using the Nano Logger
1. Start the Nano Logger and display data on your computer monitor.
a. Start the Arduino IDE or web editor (https://www.arduino.cc/en/Main/Software)
b. Use a USB data cable (not included) to connect the port on the Nano to your computer (the cable in the kit is for power only, not data).
c. Red LEDs on the Nano and logging shield will be lit.
d. The specifics below are for the Arduino IDE, but the web steps are similar.
e. Under Tools/Board select “Arduino Nano.”
f. Under Tools/Port select the COM port that appears when you connect the logger.
g. Start the serial monitor (Tools/Serial Monitor).
h. In the serial monitor ensure that 9600 baud is selected.
i. Data should be displayed.
j. Data will also be saved to the microSD card.
These Add-n accessories can only be added to orders for the SkyPod Kit, Nano Logger Kit, or Mini Pearl Logger Kit (no shipping costs are included here). If you have ordered those kits, add as many of these to your order as you wish (add them to your cart one at a time).
Most of the sensors below are I2C sensors and each includes a 10 cm four wire cable with DuPont connectors for easy attachment to the Nano Logger. Male headers are already soldered to each sensor. The DS18B20 is a one wire sensor.
BMP280: $3.50 I2C sensor for barometric pressure and temperature (no humidity). One of these is included with the SkyPod Kit and Nano Logger Kit. 3.3 volt operation only (power from the 3V3 pin on the Nano Data Logger). Tutorial for similar module.
BME280 3.3v: $6.50 I2C sensor for barometric pressure, temperature and humidity. 3.3 volt operation only (power from the 3V3 pin on the Nano Data Logger). The board does not include a voltage regulator, and this version might use less power.
BME280 5v: $6.50 I2C sensor for barometric pressure, temperature and humidity. Either 3.3 volt or 5 volt operation. The board includes a voltage regulator, and this version might use more power. Tutorial for similar module.
TSL2561: $3.00 I2C Luminosity sensor with two diodes: records full spectrum light (400-1000 nm) and also near infrared (700-1000 nm). 3.3 volts only (power from the 3V3 pin on the Nano Data Logger). Tutorial for similar module.
MMA8451: $4.00 I2C three axis accelerometer. Detects motion or tilt and records direction of movement. Either 3.3 volt or 5 volt operation. Tutorial for similar module.
GY-90615: $8.00 I2C thermal infrared sensor. Measures the infrared (heat) radiation of nearby objects. Records temperatures between -40 and +115°C. Either 3.3 volt or 5 volt operation. Tutorial for similar sensor. Research notes.
DS18B20 1m: $2.50 1-wire temperature sensor. Cable is 1m (39″) long. Waterproof and ready for outdoor use. Includes a resistor which must be included in the circuit. Either 3.3 volt or 5 volt operation. Getting started info.
DS18B20 2m: $3.50 1-wire temperature sensor. Cable is 2m (78″) long. Waterproof and ready for outdoor use. Includes a resistor which must be included in the circuit. Either 3.3 volt or 5 volt operation. Getting started info.
USB to TTL Converter: $3.50 FTDI FT232RL USB to TTL Serial Converter Adapter. The Arduino Pro Mini does not have a USB port, so a device like this is needed to load programs onto the Pro Mini. Set jumper to 3.3V for use with the Pro Mini. A 6-wire Dupont cable is included to connect the pins on the Pro Mini with the FTDI adapter pins.