Skip to content

Instantly share code, notes, and snippets.

@Thiemann96
Thiemann96 / SwitchInterrupt.ino
Created August 8, 2019 13:59
Simple Arduino Sketch that Interrupts blinking on a button click
/*
digitalRead(0)
1 - Nix
0 - Button ist gedrückt
*/
bool interrupted = false;
void setup(){
@Thiemann96
Thiemann96 / LoRaLowPower.ino
Last active September 12, 2019 12:06
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 !
/*
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 October 10, 2019 12:09
Sketch that uses the Grove Sensor in combination with the senseBoxMCU
/*
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 October 10, 2019 12:23
Payload function corresponding to the GROVE_CO2.ino Sketch
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 10:08
Basic OTA Sketch
// 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()
{
}
@Thiemann96
Thiemann96 / OSeMOTA.ino
Created May 20, 2020 10:16
OSeM OTA Sketch
/*
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 January 5, 2021 11:01
Arduino Display per Zeit steuern
#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 January 5, 2021 12:20
Arduino display per Knopfdruck steuern
#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 February 2, 2021 14:54
Saves on SD card every 60 seconds
#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 February 22, 2021 11:44
Arduino Sketch for the futurium project
#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>