Skip to content

Instantly share code, notes, and snippets.

@tndog
tndog / CamDo-GoPro-GPS-Arduino.ino
Created August 30, 2017 04:15
Arduino sketch to activate the GoPro camera based on the distance travelled calculated from an attached GPS.
/*
14th August 2017
CamDo Solutions Inc.
Arduino sketch to activate the GoPro camera based on the distance travelled
calculated from an attached GPS.
Requires the CamDo Blink time lapse controller, Arduino and external GPS module.
See cam-do.com/blog for details.
Uses the TinyGPS libary - make sure to use V1.3 or later.
as versions 1.22 and earlier gave lat/long in 100,000ths of a degree. V1.3 reports in millionths of a degree.
Careful not to use the TinyGPS++ library.
@structure7
structure7 / blynkDS18B20.ico
Last active September 29, 2023 16:01
Simple sketch for using the DS18B20 temp sensor on an ESP8266 with Blynk
#include <SimpleTimer.h> // Allows us to call functions without putting them in loop()
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <BlynkSimpleEsp8266.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#define ONE_WIRE_BUS 2 // Your ESP8266 pin (ESP8266 GPIO 2 = WeMos D1 Mini pin D4)
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
@probonopd
probonopd / Send infrared commands from the Arduino to the iRobot Roomba
Created March 17, 2013 10:42
Send infrared commands from the Arduino to the iRobot Roomba. Use a transistor to drive the IR LED from pin D3 for maximal range.
#include <IRremote.h>
/*
Send infrared commands from the Arduino to the iRobot Roomba
by probono
2013-03-17 Initial release