Arduino Project Hub
Project showcase

Star Wars Lunch Box Data Aquisition

I used a Raspberry Pi 2 to make a mini data acquisition system that fits inside of a lunchbox.

  • 5,173 views
  • 1 comment
  • 20 respects

Components and supplies

About this project

The intent for this project was to make a data acquisition system that is easy to use, and can be portable.  The system is self contained and can connect to internet via Wi-Fi.  There is a built in battery that makes the system able to be transported to virtually anywhere.

There were three sensors used from the Esplora board: a temperature sensor, an accelerometer and a light sensor.  The Raspberry Pi 2B has the ability to take data from each of the sensors simultaneously.  The data can then be emailed to any email address via Wi-Fi, or simply stored in the 32GB Micro-SD card.


Schematics

Lunch Box Computer Wiring
Imag0340

Code

Esplora CodeJava
This is the code required for the Raspberry Pi 2B to be able to read each sensor on the Esplora.
#include <Esplora.h>

void setup()
{
  Serial.begin(9600);
  Serial.println("STARTING!");
  Serial.println("-----------------------------------------------");
}

void loop()
{
  int sensorValue = Esplora.readLightSensor();
  
  float voltage = sensorValue * (5.0/ 1023.0);
  
  Serial.println("LIGHT_SENSOR: ");
  
  Serial.print(voltage);
  Serial.println("");
  
  int f = Esplora.readTemperature(DEGREES_F);
  Serial.println("TEMPERATURE: ");
 Serial.print(f);
 Serial.println("");
 
 
 int x = Esplora.readAccelerometer(X_AXIS);
 int y = Esplora.readAccelerometer(Y_AXIS);
 int z = Esplora.readAccelerometer(Z_AXIS);
 Serial.println("ACCELEROMETER");
 Serial.println("X: ");
 Serial.print(x);
 Serial.println("");
 
 Serial.println("Y: ");
 Serial.print(y);
 Serial.println("");
 
 Serial.println("Z: ");
 Serial.print(z);
 Serial.println("");
 Serial.println("-----------------------------------------------");
  delay(5000);
}

Comments

Author

Josh Makatura
  • 1 project
  • 2 followers

Published on

May 6, 2016

Members who respect this project

Avatar?size=thumbAvatar?size=thumbAvatar?size=thumbAvatar?size=thumbAvatar?size=thumbAvatar?size=thumbAvatar?size=thumbAvatar?size=thumb

and 12 others

See similar projects
you might like

Similar projects you might like

Arduino 101 BLE App

Project in progress by Alexis Santiago Allende

  • 1,826 views
  • 12 comments
  • 23 respects

FM radio

Project tutorial by Patrick Müller

  • 8,174 views
  • 2 comments
  • 37 respects

SMART CUBE: A New Way to Control Your Home

Project tutorial by Alberto Sartori

  • 619 views
  • 0 comments
  • 5 respects

Arduino Digital Clock Version 2

Project showcase by John Wafik William

  • 594 views
  • 0 comments
  • 8 respects

Aquariumatic

Project in progress by Craig Hissett

  • 7,818 views
  • 2 comments
  • 17 respects

Avoid Injuries with Smart Backpack

Project tutorial by Chathuranga Liyanage

  • 974 views
  • 2 comments
  • 12 respects
Add projectSign up / Login