Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
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 hours175
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 • 82 followers
Software Engineer, Design, 3D
Contact
Peter Ma
49 projects • 398 followers
Prototype Hacker, Hackathon Goer, World Traveler, Ecological balancer, integrationist, technologist, futurist.
Contact
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.
Contact
Chris Buonocore
0 projects • 1 follower
Contact

Comments

Please log in or sign up to comment.