Santiago Salazar Pulido
Published © MPL-2.0

BLE Thermometer

Unfinished BLE thermometer that I need help finishing the code to connect with IShield interface on iOS.

IntermediateWork in progress4 hours1,171
BLE Thermometer

Things used in this project

Story

Read more

Code

Redbear BLE simple interface for reading temperature using one wire

Arduino
This s the basic code we were able to accomplish but we are looking to link it with ishield using OneWire https://create.arduino.cc/projecthub/khanhhs/arduino-web-based-thermometer-a38752?ref=tag&ref_id=temperature&offset=2
#include <OneWire.h>                 
#include <DallasTemperature.h>

#define Pin 2                        
 
OneWire ourWire(Pin);                
 
DallasTemperature sensors(&ourWire); 


void setup() {
delay(1000);
Serial.begin(9600);
sensors.begin();                     
}
 
void loop() {
sensors.requestTemperatures();       
 
Serial.print(sensors.getTempCByIndex(0)); 
Serial.println(" Grados Centigrados");


 
delay(2000);                         
 
}

Credits

Santiago Salazar Pulido

Santiago Salazar Pulido

0 projects • 0 followers
Fellow 16 year old Mexican student wth basic skills of programming.

Comments