Sync schematic and code,

Add LED to simulate relay in the schematics
This commit is contained in:
Axel C
2015-11-29 12:41:54 +01:00
parent f57db0f1b2
commit 560f8556f6
4 changed files with 11 additions and 6 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.lnk

View File

@@ -13,12 +13,15 @@
#include <avr/interrupt.h> #include <avr/interrupt.h>
// Pin definitions // Pin definitions
#define LAMP 8 // Pin of the lamp relay
#define LED 13 // For Leonardo built in led #define LED 13 // For Leonardo built in led
#define PUMP_IN 9 // Pin of the pump 1 // -Relays
#define PUMP_OUT 10 // Pin of the pump 2 #define PUMP_IN 2 // Pin of the pump 1
#define WATER_UP 4 // Pin of the water sensor 1 #define PUMP_OUT 3 // Pin of the pump 2
#define WATER_DOWN 5 // Pin of the water sensor 2 #define LAMP 4 // Pin of the lamp relay
#define FOG 5 // Pin of the lamp relay
// -Sensors
#define WATER_UP 9 // Pin of the water sensor 1
#define WATER_DOWN 8 // Pin of the water sensor 2
// Time definition // Time definition
#define DAY_TIME 14 // Number of hours the day lasts (LAMP ON) #define DAY_TIME 14 // Number of hours the day lasts (LAMP ON)

View File

@@ -3,4 +3,5 @@
Librairies: Librairies:
TimerOne TimerOne
https://github.com/PaulStoffregen/TimerOne https://github.com/PaulStoffregen/TimerOne
Copy after unzip inside Arduino/hardware/libraries/ Copy after unzip inside
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries

Binary file not shown.