Skip to content

Instantly share code, notes, and snippets.

Avatar

Eric Thieme-Garmann Thiemann96

View GitHub Profile
@Thiemann96
Thiemann96 / SwitchInterrupt.ino
Created Aug 8, 2019
Simple Arduino Sketch that Interrupts blinking on a button click
View SwitchInterrupt.ino
/*
digitalRead(0)
1 - Nix
0 - Button ist gedrückt
*/
bool interrupted = false;
void setup(){
@Thiemann96
Thiemann96 / LoRaLowPower.ino
Last active Sep 12, 2019
Sketch for the senseBox which transmits sensor data via LoRa. Shuts off MCU in between measuring intervalls. Sends every 5 minutes. You need to provide your TTN credentials in the code !
View LoRaLowPower.ino
/*
senseBox:home - Citizen Sensingplatform
Version: lorav2.0.0
Date: 2018-09-11
Homepage: https://www.sensebox.de https://www.opensensemap.org
Author: Reedu GmbH & Co. KG
Note: Sketch for senseBox:home LoRa MCU Edition
Model: homeV2lora
Email: support@sensebox.de
Code is in the public domain.
@Thiemann96
Thiemann96 / Grove_CO2.ino
Created Oct 10, 2019
Sketch that uses the Grove Sensor in combination with the senseBoxMCU
View Grove_CO2.ino
/*
senseBox:home - Citizen Sensingplatform
Version: lorav2.0.0
Date: 2018-09-11
Homepage: https://www.sensebox.de https://www.opensensemap.org
Author: Reedu GmbH & Co. KG
Note: Sketch for senseBox:home LoRa MCU Edition
Model: homeV2lora
Email: support@sensebox.de
Code is in the public domain.
@Thiemann96
Thiemann96 / decoder.js
Created Oct 10, 2019
Payload function corresponding to the GROVE_CO2.ino Sketch
View decoder.js
function Decoder(bytes, port) {
// bytes is of type Buffer.
'use strict';
var TEMPSENSOR_ID,
HUMISENSOR_ID,
PRESSURESENSOR_ID,
LUXSENSOR_ID,
UVSENSOR_ID,
PM10_ID,
PM25_ID,
@Thiemann96
Thiemann96 / BasicOTA.ino
Last active May 20, 2020
Basic OTA Sketch
View BasicOTA.ino
// Basic Over-The-Air Sketch
// Library from: https://github.com/sensebox/OTALibrary needs to be installed
// Press Red button while holding down the grey button
// Afterwards the OTA mode should be enabled
#include <SenseBoxOTA.h>
void setup()
{
}
View OSeMOTA.ino
/*
Testing OTA OSeM Sketch
senseBox:home - Citizen Sensingplatform
Version: wifiv2_0.3
Date: 2019-12-06
Homepage: https://www.sensebox.de https://www.opensensemap.org
Author: Reedu GmbH & Co. KG
Note: Sketch for senseBox:home WiFi MCU Edition
Model: homeV2Wifi
@Thiemann96
Thiemann96 / displayTime.ino
Created Jan 5, 2021
Arduino Display per Zeit steuern
View displayTime.ino
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define OLED_RESET 4
#include "SenseBoxMCU.h"
Adafruit_SSD1306 display(OLED_RESET);
Button switchButton(0);
int page = 0;
@Thiemann96
Thiemann96 / displayButton.ino
Last active Jan 5, 2021
Arduino display per Knopfdruck steuern
View displayButton.ino
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define OLED_RESET 4
#include "SenseBoxMCU.h"
Adafruit_SSD1306 display(OLED_RESET);
Button switchButton(0);
int page = 0;
void setup()
@Thiemann96
Thiemann96 / saveOnSD.ino
Last active Feb 2, 2021
Saves on SD card every 60 seconds
View saveOnSD.ino
#include <SPI.h>
#include <SD.h>
#include "SenseBoxMCU.h"
#include <RV8523.h>
File myFile;
HDC1080 hdc;
RV8523 rtc;
// Sensor ID's mit eigenen austauschen
@Thiemann96
Thiemann96 / futurium.ino
Last active Feb 22, 2021
Arduino Sketch for the futurium project
View futurium.ino
#include <BMX055.h>
#include <senseBoxIO.h>
#include <SPI.h>
#include <Wire.h>
#include <WiFi101.h>
#include "SparkFun_Ublox_Arduino_Library.h"
#include <NewPing.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <Adafruit_BMP280.h>