Skip to content

Instantly share code, notes, and snippets.

View tmhrtwg's full-sized avatar

Tom Hartwig tmhrtwg

  • The Netherlands
View GitHub Profile
/* **********************************************
Project 1b: relay switch
The idea is to see if I can control the
relay switch I bought.
********************************************** */
int relay1 = 11;
int relay2 = 10;
int relay3 = 9;
int relay4 = 8;
/* **********************************************
Project 1a: parking sensor!
tomhartwig.nl/blog/arduino-project-1a-parking-sensor
The idea is to beep when you come close.
...and beep faster when you come closer.
...and to go berserk when almost touching.
********************************************** */
#include <NewPing.h>