# Nano Data Logger nano-data-logger

The Nano Data Logger is an easy and inexpensive way to start collecting environmental data. It relies on a shield (a PCB which plugs into another PCB) which snaps onto an Arduino Nano. The shield adds a real time clock and microSD card socket to the Arduino microcontroller. When the components are prepared properly, no soldering is required to start saving data from a sensor. Kits to build a Nano Data Logger are available at the [Public Lab Store](https://store.publiclab.org/collections/water-monitoring/products/nano-data-logger-kit?variant=12516302323821) and the [KAPtery](http://kaptery.com/product/nano-logger-kit). A Nano Data Logger is very convenient for fast prototyping trials. Sensors and other devices (e.g., small display), can be connected without soldering because all of the pins on the Nano are exposed as male headers. The integrated real time clock and microSD socket make it easy to save sensor data with accurate time stamps. To achieve the convenience of the Nano Data Logger, the ability to log data for many weeks is lost. It will not last on small batteries for more than several days without clever modification, so it is best suited for data collection for short periods, with alternative power (solar panels), or near mains power. ###Parts The two primary parts are: - **Arduino Nano**. Nano clones cost about $3.00 on eBay or [$4.00 to $10.00 at US retailers](https://www.amazon.com/s/?ie=UTF8&amp;keywords=arduino+nano&amp;tag=googhydr-20&amp;index=electronics&amp;hvadid=173554986927&amp;hvpos=1t2&amp;hvnetw=g&amp;hvrand=15080925241715253772&amp;hvpone=&amp;hvptwo=&amp;hvqmt=e&amp;hvdev=c&amp;hvdvcmdl=&amp;hvlocint=&amp;hvlocphy=9003117&amp;hvtargid=aud-345055983774:kwd-15608517219&amp;ref=pd_sl_7sxbv5mstz_e). They can be cheaper if the headers are not soldered on if you want to do this yourself. - **Logging shield for Nano**. These are mostly available on[ eBay for$5.00 to $6.00](https://www.ebay.com/sch/i.html?_from=R40&amp;_trksid=p2047675.m570.l1313.TR0.TRC0.H0.XData+logging+shield++for+Arduino+NANO.TRS5&amp;_nkw=Data+logging+shield++for+Arduino+NANO&amp;_sacat=0). Also required: - The real time clock on the logging shield needs a [**CR1220 coin cell** battery](https://www.amazon.com/s/ref=nb_sb_ss_i_1_5?url=search-alias%3Delectronics&amp;field-keywords=1220+battery&amp;sprefix=1220+%2Celectronics%2C159&amp;crid=1QZ3OBPARF67Q&amp;rh=n%3A172282%2Ck%3A1220+battery). - Data is saved on a [**microSD card** which costs about$5.00 - \$10.00](https://www.amazon.com/s/ref=nb_sb_ss_i_3_11?url=search-alias%3Delectronics&amp;field-keywords=4gb+microsd+card&amp;sprefix=4gb+microsd%2Celectronics%2C148&amp;crid=38C6D1YHWDQV1&amp;rh=n%3A172282%2Ck%3A4gb+microsd+card) - For autonomous operation a battery or case for batteries is required. Four AA or AAA alkaline batteries will supply 6 volts (6 to 12 volts are okay). The parts above do not include a sensor or USB cable to connect to a computer for programming and data transfer. For use near mains power, a mini USB cable and phone charger (5v) are convenient. [![Nanolog_20170509-8764.JPG](https://publiclab.org/system/images/photos/000/022/915/medium/Nanolog_20170509-8764.JPG)](https://publiclab.org/system/images/photos/000/022/915/original/Nanolog_20170509-8764.JPG) *Above: These parts are included in the [KAPtery kit of the Nano Data Logger](http://kaptery.com/product/nano-logger-kit).* The Nano Data Logger is available as a kit with everything required to log temperature and barometric pressure without doing any soldering. Order it from the [Public Lab Store](https://store.publiclab.org/collections/water-monitoring/products/nano-data-logger-kit?variant=12516302323821) or the [KAPtery](http://kaptery.com/product/nano-logger-kit). ###Assembly The Nano data logging shield snaps onto the Arduino nano. A battery or battery pack can be connected with screw down terminal blocks. Power can also be supplied via mini USB cable from a computer or DC converter (phone charger). Sensors can be connected with DuPont wires with female connectors. If all of these components are prepared properly, no soldering is required to assemble the logger. However, preparing some of the components (Nano, sensors) might require soldering. ###Software A sketch which logs data from a BMP280 sensor for pressure and temperature is available at the [KAPtery Guides page](http://kaptery.com/guides/). See below for several examples of data logging with the Nano Logger. Examples include using different sensors to log data for temperature, humidity, pressure, light, and tilt angle. ### Activities [activities:nano-data-logger] ### Questions [questions:nano-data-logger] ...

Author Comment Last activity Moderation
liz "Here's what the interface looks like: " | Read more » almost 5 years ago
liz "^^ interesting! A whole new angle on this problem. I think I would actually do this first to see the results coming out of the sensor, whether or n..." | Read more » almost 5 years ago
liz "ok thanks @cfastie and @kinasmith, i think i get it now! " | Read more » almost 5 years ago
yamanoorsai "In fact, if the analog output is linear, I would not need the meter " | Read more » almost 5 years ago
yamanoorsai "Hello, I would be glad to help as long as I get to share my work under an open license with everyone. How does one gain access to the HCHO meter li..." | Read more » almost 5 years ago
kinasmith "so, how long will the sensor need to collect data for? If there is reliable power, and it's inside of a house, and it isn't running for weeks on en..." | Read more » almost 5 years ago
kinasmith "I've read through the datasheet/manual for this sensor. Their use of audio connectors for signal and power connections is pretty questionable, but ..." | Read more » almost 5 years ago
cfastie "Liz, I don't know the specs of the 1/4" phone plug, but it needs only two contacts, the tip and one ring along the shaft. I'm not sure which types ..." | Read more » almost 5 years ago
warren "Thanks to all the software contributors who helped fix that -- @siaw23 @sagarpreet " | Read more » almost 5 years ago
warren "OK - links and uploads now working again on the site! " | Read more » almost 5 years ago
liz "wow awesome! @cfastie sorry to ask more but can you draw a picture on paper of what you expect these cables to look like? "A 1/4" stereo/phone plug..." | Read more » almost 5 years ago
zengirl2 "@cfastie @warren ah, ok that makes sense now. " | Read more » almost 5 years ago
warren "https://gist.github.com/jywarren/599b76ef9cdecdce764a7348f728ae31 " | Read more » almost 5 years ago
warren "We're still struggling with a comment formatting bug -- apologies -- over in https://github.com/publiclab/plots2/pull/2605 -- here it is for the ti..." | Read more » almost 5 years ago
cfastie "New answer below where I could attach a file. " | Read more » almost 5 years ago
cfastie "A 1/4" stereo/phone plug connects to the HCHO sensor and two wires from that cable connect to the Arduino (tip of plug to A3, ring to GND). Below (..." | Read more » almost 5 years ago
zengirl2 "@liz I can meet with @nshapiro with some Arduinos, but I think my question is where do you attach alligator clips or wires for testing this beast? " | Read more » almost 5 years ago
liz "Perhaps @Zengirl2 can go over the Nick's house and bring an Arduino? (They are both in Philly) and for good measure we can open up a video link wit..." | Read more » almost 5 years ago
cfastie "The first step might be to arrange for the co-location of the HCHO sensor, an Arduino, and somebody casually familiar with Arduino. Has the proper ..." | Read more » almost 5 years ago
liz "Hi @cfastie -- thank you so much for asking these questions. Here's what i know -- Nick has to go to Georgia with a working solution in 2 weeks...." | Read more » almost 5 years ago
cfastie "Kina, Thanks for the great information. Liz, It might help to know more about this project. What is the time frame for deployment? What has been tr..." | Read more » almost 5 years ago
liz "Please give me a call at +1 336-269-1539 " | Read more » almost 5 years ago
liz "OK awesome @kinasmith and @cfastie ! What would be helpful for me to do as a facilitator to help Nick get all the way there? Here's some ideas: 1) ..." | Read more » almost 5 years ago
kinasmith "this is actually an excellent solution to this problem without adding additional parts/complexity. The 1.1v internal reference is much more stable ..." | Read more » almost 5 years ago