• Уважаемые посетители сайта esp8266.ru!
    Мы отказались от размещения рекламы на страницах форума для большего комфорта пользователей.
    Вы можете оказать посильную поддержку администрации форума. Данные средства пойдут на оплату услуг облачных провайдеров для сайта esp8266.ru
  • Система автоматизации с открытым исходным кодом на базе esp8266/esp32 микроконтроллеров и приложения IoT Manager. Наша группа в Telegram

Делюсь опытом Аквариум на esp8266

mikhail09p

New member
Здравствуйте. Вопрос по распиновке: D6 // Реле светодиодов PWM - это GPIO12, например, я правильно понимаю? Не, не так... А D1 ?...
 

mikhail09p

New member
Здравствуйте опять.
Пишет компилятор, нету библиотеки ESP8266WiFi.h Как её установить? А почему в папке у Вас её нету?
 

mikhail09p

New member
Забыл включить плату ESP8266 ...
Какой у Вас компилятор? В 1.8.13 не компилится...
Сейчас выдал компилятор:
In file included from C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\esp8266_aquarium.ino:1:0:
include_define.h:18:23: error: 'D3' was not declared in this scope
#define ONE_WIRE_BUS D3 // DS18B20
^
sketch\include_define.h:46:13: note: in expansion of macro 'ONE_WIRE_BUS'
OneWire ds(ONE_WIRE_BUS);
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\esp8266_aquarium.ino: In function 'void setup()':
include_define.h:20:23: error: 'D6' was not declared in this scope
#define LEDPIN D6
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\esp8266_aquarium.ino:8:11: note: in expansion of macro 'LEDPIN'
pinMode(LEDPIN, OUTPUT);
^
include_define.h:21:23: error: 'D7' was not declared in this scope
#define FANPIN D7
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\esp8266_aquarium.ino:9:11: note: in expansion of macro 'FANPIN'
pinMode(FANPIN, OUTPUT);
^
include_define.h:19:23: error: 'D5' was not declared in this scope
#define TENPIN D5
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\esp8266_aquarium.ino:10:11: note: in expansion of macro 'TENPIN'
pinMode(TENPIN, OUTPUT);
^
include_define.h:22:23: error: 'D0' was not declared in this scope
#define RELAY1PIN D0
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\esp8266_aquarium.ino:11:11: note: in expansion of macro 'RELAY1PIN'
pinMode(RELAY1PIN, OUTPUT);
^
include_define.h:23:23: error: 'D8' was not declared in this scope
#define RELAY2PIN D8
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\esp8266_aquarium.ino:12:11: note: in expansion of macro 'RELAY2PIN'
pinMode(RELAY2PIN, OUTPUT);
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\FUNCTIONS.ino: In function 'void led_schedule()':
include_define.h:20:23: error: 'D6' was not declared in this scope
#define LEDPIN D6
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\FUNCTIONS.ino:64:19: note: in expansion of macro 'LEDPIN'
analogWrite(LEDPIN, val_rassvet);
^
include_define.h:20:23: error: 'D6' was not declared in this scope
#define LEDPIN D6
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\FUNCTIONS.ino:67:19: note: in expansion of macro 'LEDPIN'
analogWrite(LEDPIN, max_night_percent);
^
include_define.h:20:23: error: 'D6' was not declared in this scope
#define LEDPIN D6
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\FUNCTIONS.ino:75:19: note: in expansion of macro 'LEDPIN'
analogWrite(LEDPIN, val_zakat);
^
include_define.h:20:23: error: 'D6' was not declared in this scope
#define LEDPIN D6
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\FUNCTIONS.ino:78:19: note: in expansion of macro 'LEDPIN'
analogWrite(LEDPIN, max_day_percent);
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\FUNCTIONS.ino: In function 'void relay_schedule()':
include_define.h:22:23: error: 'D0' was not declared in this scope
#define RELAY1PIN D0
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\FUNCTIONS.ino:101:20: note: in expansion of macro 'RELAY1PIN'
digitalWrite(RELAY1PIN, LOW);
^
include_define.h:22:23: error: 'D0' was not declared in this scope
#define RELAY1PIN D0
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\FUNCTIONS.ino:105:20: note: in expansion of macro 'RELAY1PIN'
digitalWrite(RELAY1PIN, HIGH);
^
include_define.h:23:23: error: 'D8' was not declared in this scope
#define RELAY2PIN D8
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\FUNCTIONS.ino:109:20: note: in expansion of macro 'RELAY2PIN'
digitalWrite(RELAY2PIN, LOW);
^
include_define.h:23:23: error: 'D8' was not declared in this scope
#define RELAY2PIN D8
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\FUNCTIONS.ino:113:20: note: in expansion of macro 'RELAY2PIN'
digitalWrite(RELAY2PIN, HIGH);
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\FUNCTIONS.ino: In function 'void temp_fan_regulation()':
include_define.h:21:23: error: 'D7' was not declared in this scope
#define FANPIN D7
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\FUNCTIONS.ino:121:20: note: in expansion of macro 'FANPIN'
digitalWrite(FANPIN, HIGH);
^
include_define.h:21:23: error: 'D7' was not declared in this scope
#define FANPIN D7
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\FUNCTIONS.ino:124:20: note: in expansion of macro 'FANPIN'
digitalWrite(FANPIN, LOW);
^
include_define.h:21:23: error: 'D7' was not declared in this scope
#define FANPIN D7
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\FUNCTIONS.ino:128:18: note: in expansion of macro 'FANPIN'
digitalWrite(FANPIN, LOW);
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\FUNCTIONS.ino: In function 'void temp_ten_regulation()':
include_define.h:19:23: error: 'D5' was not declared in this scope
#define TENPIN D5
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\FUNCTIONS.ino:135:20: note: in expansion of macro 'TENPIN'
digitalWrite(TENPIN, HIGH);
^
include_define.h:19:23: error: 'D5' was not declared in this scope
#define TENPIN D5
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\FUNCTIONS.ino:138:20: note: in expansion of macro 'TENPIN'
digitalWrite(TENPIN, LOW);
^
include_define.h:19:23: error: 'D5' was not declared in this scope
#define TENPIN D5
^
C:\Users\Mixa\Documents\Arduino\esp8266_aquarium\FUNCTIONS.ino:142:18: note: in expansion of macro 'TENPIN'
digitalWrite(TENPIN, LOW);
^
exit status 1
'D3' was not declared in this scope
 

Ildarmustafin86

Active member
Sketch data upload - это для старой файловой системы. Я перешел на LittleFS. Файловую систему нужно загружать через нее. Устанавливается аналогично.
 

mikhail09p

New member
А этот проект, который Вы выложили, он со старой или новой файловой системой?
Или ещё выложите с новой?
 

mikhail09p

New member
Большое спасибо. Если бы Вы ещё ткнули, где почитать, как изменять странички веб...
 

mikhail09p

New member
Не получается зайти на веб интерфейс... В мониторе СОМ порта WAITING TO RECONNECT...
FS заливал Sketch data upload . Если заливать LittleS Data Upload , то точка просто ESP без AQUA... Что то не так делаю. Непонятно...
 

empirevv

New member
Не компилится (
Вылетает с ошибкой
C:\Users\Empirevv\Downloads\ESP8266_Async_v5.2\FUNCTIONS.ino: In function 'void readDateTime()':

FUNCTIONS:18: error: 'class DateTime' has no member named 'isValid'

nowisValid = now.isValid();

^

exit status 1
'class DateTime' has no member named 'isValid'
 
Сверху Снизу