Skip to content

Instantly share code, notes, and snippets.

View rogiervandenberg's full-sized avatar

Rogier van den Berg rogiervandenberg

View GitHub Profile
@rogiervandenberg
rogiervandenberg / FrontdoorSensorReedSensor.ino
Created April 21, 2015 16:41
Checks my front door status. Sends status over RF-communication.
//To make more serial ports
#include <SoftwareSerial.h>
SoftwareSerial remoteSerial(2, 3); //Use pins 2 and 3 to connect the Serial connection
const int light = 13; //output and light
const int reedPin = 5; //read info from the Reed
//vars
int output = LOW;
@rogiervandenberg
rogiervandenberg / FrontdoorSensorPushover.ino
Created April 21, 2015 16:40
Listens for incoming RF-communication about the status of my front door. The Internet Arduino sends API calls to Pushover.
#include <SPI.h>
#include <Ethernet.h>
#include <HttpClient.h>
#include <SoftwareSerial.h>
// MAC address for your Ethernet shield
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
// Pushover settings
char pushoversite[] = "api.pushover.net";
@rogiervandenberg
rogiervandenberg / SwitchLightsRFLearning.ino
Created April 21, 2015 15:42
Control lights with an Arduino remotely with 433Mhz, Source code as used in the video
#include <RemoteSwitch.h>
#include <RemoteReceiver.h>
#include <Ethernet.h>
#include <SPI.h>
#include <WebServer.h>
#include <EEPROM.h>
#include <EEPROMAnything.h>
//Connections to the Arduino board
const int ledPin = 9;
@rogiervandenberg
rogiervandenberg / SwitchLightsGetRF.ino
Last active August 29, 2015 14:19
Control lights with an Arduino remotely with 433Mhz, Simplified source using GET requests and without 7-segment LED display
#include <RemoteTransmitter.h>
#include <Ethernet.h>
#include <SPI.h>
#include <WebServer.h>
//Connections to the Arduino board
const int ledPin = 9;
const int transmitterPin = 8;
//Duration of a RF command
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../google-map/google-map-search.html">