Sarah HanPeter MaBrian CottrellChris Buonocore
Created May 6, 2020 © GPL3+

MapMyLTE with other sensors

We are demonstrating how to use MapMyLTE with other sensors so we can detect and map out sensor data via map on Android

BeginnerProtip20 hours170
MapMyLTE with other sensors

Things used in this project

Story

Read more

Schematics

DFRobot CO2 sensor

DFRobot CO2 sensor

Code

Sensor data

Arduino
Sensor data transfer
int sensorIn = A1;

void setup(){
  Serial.begin(9600);
  // Set the default voltage of the reference voltage
  analogReference(DEFAULT);
}

void loop(){
  //Read voltage
  int sensorValue = analogRead(sensorIn);

  // The analog signal is converted to a voltage
  float voltage = sensorValue*(5000/1024.0);
  if(voltage == 0)
  {
    Serial.println("Fault");
  }
  else if(voltage < 400)
  {
    Serial.println("preheating");
  }
  else
  {
    int voltage_diference=voltage-400;
    float concentration=voltage_diference*50.0/16.0;
    // Print Voltage
    //Serial.print("voltage:");
    //Serial.print(voltage);
    //Serial.println("mv");
    //Print CO2 concentration
    Serial.println(concentration);
    //Serial.println("ppm");
  }
  delay(100);
}

LTE Coverage App

LTE Coverage App

Credits

Sarah Han
13 projects • 81 followers
Software Engineer, Design, 3D
Peter Ma
49 projects • 396 followers
Prototype Hacker, Hackathon Goer, World Traveler, Ecological balancer, integrationist, technologist, futurist.
Brian Cottrell
11 projects • 16 followers
I am a software developer with a background in physics and low level programming and I am currently focused on web and mobile development.
Chris Buonocore
0 projects • 1 follower

Comments