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.

  • 6,008 views
  • 1 comment
  • 21 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

Default
Josh Makatura
  • 1 project
  • 3 followers

Published on

May 6, 2016

Members who respect this project

Default10487434 10101544397202548 602652689234148955 nDefaultDefaultDefaultEnrique.escobarDefaultJens g

and 13 others

See similar projects
you might like

Similar projects you might like

A DIY Smart Insole to Check Your Pressure Distribution

Project tutorial by Juliette van der Pas

  • 1,343 views
  • 7 comments
  • 14 respects

Arduino LIDAR

Project tutorial by abhinav

  • 12,800 views
  • 4 comments
  • 18 respects

Arduino Mega Chess

Project showcase by Sergey_Urusov

  • 3,635 views
  • 14 comments
  • 24 respects

Sprout: Modern Indoor Self Watering Planter

Project tutorial by Jonathan Pereira

  • 3,662 views
  • 3 comments
  • 22 respects

Relativ - Build Your Own VR Headset for $100

Project showcase by Relativty

  • 156 views
  • 0 comments
  • 2 respects

VU Meter on Steroids: Arduino Nano and WS2812Bs

Project in progress by WannaDuino

  • 3,402 views
  • 6 comments
  • 13 respects
Add projectSign up / Login