diff --git a/03-Software-Arduino/01-Arduinoponics-Source/README.md b/03-Software-Arduino/01-Arduinoponics-Source/README.md deleted file mode 100644 index 75863f0..0000000 --- a/03-Software-Arduino/01-Arduinoponics-Source/README.md +++ /dev/null @@ -1,8 +0,0 @@ -Libraries used: -TimerOne -https://github.com/PaulStoffregen/TimerOne - -Timer on is a collection of routines for configuring the 16 bit hardware timer called Timer1 on the ATmega168/328. There are 3 hardware timers available on the chip, and they can be configured in a variety of ways to achieve different functionality. The development of this library began with the need for a way to quickly and easily set the PWM period or frequency, but has grown to include timer overflow interrupt handling and other features. - -To install, unzip and copy the folder inside -C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries \ No newline at end of file diff --git a/03-Software-Arduino/01-Arduinoponics-Source/TimerOne.zip b/03-Software-Arduino/01-Arduinoponics-Source/TimerOne.zip deleted file mode 100644 index 4af85d7..0000000 Binary files a/03-Software-Arduino/01-Arduinoponics-Source/TimerOne.zip and /dev/null differ diff --git a/03-Software-Arduino/01-Arduinoponics-Source/Aquaponics-Source.ino b/03-Software-Arduino/Arduinoponics-01-Source/Arduinoponics-01-Source.ino similarity index 96% rename from 03-Software-Arduino/01-Arduinoponics-Source/Aquaponics-Source.ino rename to 03-Software-Arduino/Arduinoponics-01-Source/Arduinoponics-01-Source.ino index 55e42d7..4e8f220 100644 --- a/03-Software-Arduino/01-Arduinoponics-Source/Aquaponics-Source.ino +++ b/03-Software-Arduino/Arduinoponics-01-Source/Arduinoponics-01-Source.ino @@ -3,6 +3,8 @@ * * TODO Switch action reset hours to 9 * TODO Safety extra sensor + * + * Need to setup TimerOne from the librairie */ #include @@ -15,7 +17,7 @@ #define PUMP_IN 2 // Pin of the pump 1 #define PUMP_OUT 3 // Pin of the pump 2 #define LAMP 4 // Pin of the lamp relay -#define FOG 5 // Pin of the lamp relay +#define FOG 5 // Pin of the fog relay // -Sensors #define WATER_UP 9 // Pin of the water sensor 1 #define WATER_DOWN 8 // Pin of the water sensor 2 @@ -34,7 +36,7 @@ volatile int secondsCounter; // 0 to 59 volatile int minutesCounter; // 0 to 59 bool ledState = 0; // led status memory -bool waterLevelState = 0; // water level status memory +char waterLevelState = 0; // water level status memory #define DOWN 0 #define FILLING 1 #define UP 3