Home > Projects > Arduino Android > Arduino Datalogger

Arduino Datalogger

Summary of Arduino Datalogger


This tutorial guides building a simple Arduino data recorder that reads light and temperature sensors and displays values on the Serial Monitor in Tinkercad Circuits. It covers creating a new circuit, breadboard basics, placing sensors, and wiring a photosensitive sensor to 5V, A0, and ground with a resistor for protection. The project demonstrates foundational principles for collecting and viewing sensor data via Arduino.

Parts used in the Data Recorder:

  • Arduino board
  • Breadboard
  • Photosensitive sensor (photoresistor or light sensor)
  • Temperature sensor
  • Resistor
  • Jumper wires (5V connection, analog A0 connection, ground connection)

This tutorial will show you how to build a simple data recorder using Arduino. The aim is to understand the basic principles of using Arduino to collect data and show it on the terminal. This basic structure can be used for a variety of purposes.

To get started:

You will need a Tinkercad (www.tinkercad.com) account. Head over and sign up with your email or social media account.

Logging in takes you to the Tinkercad Dashboard. Click “Circuits” to the left and select “Create new Circuit”. Let’s get started!

You can find the complete file on TInkercad Circuits – Thanks for checking it out!

Step 1: Add Some Components

You’ll need some basic components. These include:

  • Arduino board
  • Breadboard

Add those by searching for them and click-dragging them to the middle area.

Place the breadboard over the Arduino. It makes it easier to view the connections later.

Step 2: A Note About Breadboards

A breadboard is a super helpful device for rapid prototyping. We use it to connect components. Some things to note.

  1. The dots are connected vertically, but the line in the middle separates this connection from the top and bottom columns.
  2. Columns are not connected left to right, as in across the row. This means that all components should be connected across the columns rather than down them vertically.
  3. If you need to use buttons or switches, connect them across the break in the middle. We’ll visit this in a later tutorial.

Step 3: Add Two Sensors

We are employing a Photosensitive sensor and a Temperature sensor.

These sensors evaluate the amount of light and temperature. We use Arduino to read the value and display it on the Serial monitor of the Arduino.

Locate and place the set of sensors. Make sure they are placed in a horizontal alignment across the rows of the breadboard. Create enough space between them to improve visibility.

Step 4: Photosensitive Sensor

  1. For the photosensitive sensor, add a wire from the 5V pin on the Arduino to the same column as the right leg on the part in the breadboard. Change the wire colour to red.
  2. Connect the left leg via the pin in the same column to the A0 (A-zero) pin on the Arduino. This is the analog pin, which we will use to read the value from the sensor. Colour this wire yellow or something other than red or black.
  3. Place a resistor (search and click-drag) on the board. This completes the circuit and protects the sensor and pin.
    • Turn it around so it goes across the columns.
    • Connect one leg to the right leg column on the breadboard
    • Place a wire from the other end of the resistor to the ground
      • Change the wire colour to black.
  4. Double check all connections. If something isn’t in the right place, this won’t function correctly.

Source: Arduino Datalogger

Quick Solutions to Questions related to Data Recorder:

  • What is the aim of this Arduino data recorder project?
    The aim is to understand the basic principles of using Arduino to collect data and show it on the terminal.
  • What online tool is used to build and simulate the circuit?
    Tinkercad Circuits is used to build and simulate the circuit.
  • Which Arduino pin is used to read the photosensitive sensor?
    The analog pin A0 is used to read the photosensitive sensor.
  • How should the photosensitive sensor be powered?
    Power the photosensitive sensor from the Arduino 5V pin and connect its other leg to the analog A0 pin with a resistor to ground.
  • Why is a resistor added with the photosensitive sensor?
    The resistor completes the circuit and protects the sensor and Arduino pin.
  • How are breadboard columns and rows connected?
    Dots are connected vertically within columns, and the middle break separates top and bottom columns; columns are not connected left to right across rows.
  • Where should buttons or switches be connected on the breadboard?
    Buttons or switches should be connected across the break in the middle of the breadboard.
  • What should you do if the circuit does not function correctly?
    Double check all connections to ensure components and wires are placed in the correct columns and pins.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top