This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ********************************************** | |
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ********************************************** | |
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> |