mirror of
https://github.com/NEBULAIR/arduinoponics.git
synced 2026-03-10 08:51:16 +00:00
Sync schematic and code,
Add LED to simulate relay in the schematics
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.lnk
|
||||||
@@ -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)
|
||||||
|
|||||||
@@ -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.
Reference in New Issue
Block a user