ESP, IoT [BigClock] Большие часы на WS2812, ESP8266, Народный мониторинг

Какой вариант датчика используется у вас? Интересно, использует ли кто BME280, как у меня?)

  • BMP280

    Голосов: 22 28.2%
  • BME280

    Голосов: 56 71.8%

  • Всего проголосовало
    78
  • Опрос закрыт .
[BigClock] Большие часы на WS2812, ESP8266, Народный мониторинг
Создаю отдельную тему по разработке прошивки на базе NodeMCU.

Мой проект сделан на ДВП, на нее наклеил ленту, объем цифрам сделал из сэндвич панели, поверх белый лист бумаги.
Корпус из дерева, покрашен акриловой краской, смесь белой и коричневой.

Данная прошивка проверяет время по NTP, часы RTC теоретически не нужны.
Барометр на базе BME280.
Имеется датчик освещенности и датчик DS18B20
Clock_схема.pngсхема пайки.jpgClock_схема3.jpg
Плата: NodeMCU 1.0 (ESP 12-E Module)
Если в качестве микроконтроллера вы используете Wemos D1 - в менеджере плат для компиляции все равно выбирайте "NodeMCU v1.0 (ESP-12E)", в противном случае, если выберете плату Wemos D1 (xxxx), - будет работать нестабильно.
Выбирайте ядро ESP версии 2.7.4.

ESP8266 (SDK v2.7+)

Необходимые библиотеки находим в репозитории программы IDE.
Настраиваем прошивку под себя, если нужно, меняем пароли для точки и OTA, WiFi можно не задавать.

Если не задавали настройки WiFi, то стартует точка, адрес стандартный 192.168.4.1 пароль по умолчанию administrator, задавать не менее 8 символов, иначе название точки не отобразится, а будет ее внутреннее имя, типа ESP12345.
Адрес портала http://clock.local/ или по IP адресу, выданному роутером.
Данные для OTA: имя: admin пароль: pass

Для подключения к сервису "Народный мониторинг" MAC адрес отображается на соответствующей странице, вводите этот адрес при регистрации устройства.

Есть новая версия на гитхаб, последние изменения и публикация свежих версий будет там)

Новая версия от 16.04.2023 CLOCK_ESP_2.0:
  • оптимизация под новый портал
  • переделано давление с инт на флоат для мониторинга
  • переделан интерфейс на UI
  • добавлена ручная синхронизация времени
  • заменена библиотека rtc на microDS3231
  • багфиксы)
  • добавлена в код точка, для десятичного знака уличной температуры
  • добавлена строка с версией прошивки
  • исправление даты
  • добавление DFPlayer, спасибо: @Maxx1200 и @Romshteks
  • добавлен режим с датой (номер 5)
  • обновлена библиотека EEManager (сбросятся настройки!!!)
  • добавлен режим с показом первого нуля в часах
  • добавлена возможность устанавливать цветовое оформление в настройках прошивки, визуальные правки
  • fix GMT
  • заменены библиотеки датчиков
  • визуальные правки
  • может что-то еще))
Проект на гитхаб со всеми библиотеками и mp3
  • Дофига изменений))
  • Появилась web страничка с настройками на базе GyverPortal.
  • Изменены библиотеки.
  • Переписан код, распределил по вкладкам.
исправлено:
  • баг со сменой цвета на последней цифре
добавлен
  • символ давления, включать в настройках
исправлено:
  • переделан вывод сегментов
  • переделана функция показа точек
добавлено:
  • выбор режима мигания секунд 1 и 2 раза в сек
  • можно вручную задать порядок отображения датчиков и время показа каждого датчика
  • откл. WiFi без мониторинга
  • корректировка показания датчиков
внедрение датчика BME280, добавлен режим влажности с возможностью включить символ проценты
[*]багфиксы
багфиксы
незначительные изменения кода (настройки под себя и комментарии)
  • все настройки вынесены в Constants, вроде:)
  • добавлен web сервер, для обновления через браузер, изначально прошить через кабель, потом можете вносить изменения под себя и обновляться через бинарный файл
  • добавлены библиотеки
  • изменение в коде, из-за выноса настроек:)
  • добавлен НГ режим :)
  • возможно исправлена анимация, про которую писали, с точками и цифрами :)
  • теперь при запуске часов идет проверка с датчика времени, и если все ОК, то запускаются часы без синхронизации
  • исправлена функция освещенности заменой switch на if/else
  • подправлен код с switch в других местах
Увидел в коде небольшую ошибку с НГ режимом, не важно, включен он или нет, все равно будет) только разными методами)
leds[cursor] = (digit & mask) ? CHSV(random(0, 255), random(0, 255), random(0, 255)) : CRGB (0, 0, 0);
leds[cursor] = (digit & mask) ? ledColor : CRGB (0, 0, 0);
  • исправлен НГ режим
  • отключена точка доступа за ненадобностью
  • оптимизирован код
  • выбор в настройках кол-во разделительных точек
  • можно запускать с RTC модулем и без него
  • изменена библиотека NTP
  • поправлен код :)
Внимание: у кого мигает первый светодиод, необходимо изменить ядро ESP на 2.7.4 (инструменты/Плата/Менеджер плат).
Новые версии нестабильные на октябрь 2021г.
 

Вложения

Изменено:

Комментарии

maksland

★★★✩✩✩✩
13 Янв 2019
442
103
Omsk
я наоборот поставил 5 и 6 а то ругалось на D5 и D6
In file included from c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:67,
from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/fastspi.h:145:23: note: '#pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output'
145 | # pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:4:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\Constants.h:8:29: error: 'D5' was not declared in this scope
8 | #define ONE_WIRE_BUS_2 D5 // PIN датчика ds18b20
| ^~
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:29:21: note: in expansion of macro 'ONE_WIRE_BUS_2'
29 | OneWire oneWire_out(ONE_WIRE_BUS_2);
| ^~~~~~~~~~~~~~
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino: In function 'void setup()':
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\Constants.h:13:29: error: 'D6' was not declared in this scope
13 | #define LED_PIN D6 // PIN дата от ленты, подключать через резистор 470Ом
| ^~
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:28: note: in expansion of macro 'LED_PIN'
70 | FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
| ^~~~~~~
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: no matching function for call to 'CFastLED::addLeds<WS2812B, <expression error>, GRB>(CRGB [58], int)'
70 | FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
| ^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:225:130: note: candidate: 'template<ESPIChipsets CHIPSET, unsigned char DATA_PIN, unsigned char CLOCK_PIN, EOrder RGB_ORDER, unsigned int SPI_DATA_RATE> CLEDController& CFastLED::addLeds(CRGB*, int, int)'
225 | template<ESPIChipsets CHIPSET, uint8_t DATA_PIN, uint8_t CLOCK_PIN, EOrder RGB_ORDER, uint32_t SPI_DATA_RATE > CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
| ^~~~~~~
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:225:130: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: template argument 2 is invalid
70 | FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
| ^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:239:95: note: candidate: 'template<ESPIChipsets CHIPSET, unsigned char DATA_PIN, unsigned char CLOCK_PIN> static CLEDController& CFastLED::addLeds(CRGB*, int, int)'
239 | template<ESPIChipsets CHIPSET, uint8_t DATA_PIN, uint8_t CLOCK_PIN > static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
| ^~~~~~~
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:239:95: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: template argument 2 is invalid
70 | FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
| ^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:253:113: note: candidate: 'template<ESPIChipsets CHIPSET, unsigned char DATA_PIN, unsigned char CLOCK_PIN, EOrder RGB_ORDER> static CLEDController& CFastLED::addLeds(CRGB*, int, int)'
253 | template<ESPIChipsets CHIPSET, uint8_t DATA_PIN, uint8_t CLOCK_PIN, EOrder RGB_ORDER > static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
| ^~~~~~~
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:253:113: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: template argument 2 is invalid
70 | FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
| ^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:303:25: note: candidate: 'template<template<unsigned char DATA_PIN, EOrder RGB_ORDER> class CHIPSET, unsigned char DATA_PIN, EOrder RGB_ORDER> static CLEDController& CFastLED::addLeds(CRGB*, int, int)'
303 | static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
| ^~~~~~~
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:303:25: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: template argument 2 is invalid
70 | FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
| ^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:309:25: note: candidate: 'template<template<unsigned char DATA_PIN, EOrder RGB_ORDER> class CHIPSET, unsigned char DATA_PIN> static CLEDController& CFastLED::addLeds(CRGB*, int, int)'
309 | static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
| ^~~~~~~
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:309:25: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: wrong number of template arguments (3, should be 2)
70 | FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
| ^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:315:25: note: candidate: 'template<template<unsigned char DATA_PIN> class CHIPSET, unsigned char DATA_PIN> static CLEDController& CFastLED::addLeds(CRGB*, int, int)'
315 | static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
| ^~~~~~~
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:315:25: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: wrong number of template arguments (3, should be 2)
70 | FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
| ^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:359:25: note: candidate: 'template<template<EOrder RGB_ORDER> class CHIPSET, EOrder RGB_ORDER> static CLEDController& CFastLED::addLeds(CRGB*, int, int)'
359 | static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
| ^~~~~~~
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:359:25: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: wrong number of template arguments (3, should be 2)
70 | FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
| ^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:365:25: note: candidate: 'template<template<EOrder RGB_ORDER> class CHIPSET> static CLEDController& CFastLED::addLeds(CRGB*, int, int)'
365 | static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
| ^~~~~~~
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:365:25: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: wrong number of template arguments (3, should be 1)
70 | FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
| ^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:433:25: note: candidate: 'template<EBlockChipsets CHIPSET, int NUM_LANES, EOrder RGB_ORDER> static CLEDController& CFastLED::addLeds(CRGB*, int, int)'
433 | static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
| ^~~~~~~
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:433:25: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: template argument 2 is invalid
70 | FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
| ^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:474:25: note: candidate: 'template<EBlockChipsets CHIPSET, int NUM_LANES> static CLEDController& CFastLED::addLeds(CRGB*, int, int)'
474 | static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
| ^~~~~~~
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:474:25: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: wrong number of template arguments (3, should be 2)
70 | FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
| ^

exit status 1

Compilation error: 'D5' was not declared in this scope
 

ASM

★★★★✩✩✩
26 Окт 2018
1,485
292
@kym13, ядро в шапке 2.7.4 указано, да 2 версии Иде больше 2.7.4 не разрешает ставить)
 
  • Лойс +1
Реакции: kym13

kym13

★★✩✩✩✩✩
14 Ноя 2020
424
64
@ASM, Да IDE 2хх мне не понравилась, интерфейс не удобный, сама начинает платы и библиотеки обновлять, а многие проекты заточены под определенные библиотеки. Снес, поставил проверенную 1.8.19
 

kym13

★★✩✩✩✩✩
14 Ноя 2020
424
64
Кстати информация для всех, датчики BME280 на алике подешевели, я себе заказал, цена 210 рублей за штуку.
 
  • Лойс +1
Реакции: maksland

maksland

★★★✩✩✩✩
13 Янв 2019
442
103
Omsk
In file included from c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:67:0,
from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/fastspi.h:145:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output
# pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"
^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:4:0:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\Constants.h:8:29: error: 'D5' was not declared in this scope
#define ONE_WIRE_BUS_2 D5 // PIN датчика ds18b20
^
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:29:21: note: in expansion of macro 'ONE_WIRE_BUS_2'
OneWire oneWire_out(ONE_WIRE_BUS_2);
^
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino: In function 'void setup()':
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\Constants.h:13:29: error: 'D6' was not declared in this scope
#define LED_PIN D6 // PIN дата от ленты, подключать через резистор 470Ом
^
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:28: note: in expansion of macro 'LED_PIN'
FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
^
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: no matching function for call to 'CFastLED::addLeds(CRGB [58], int)'
FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
^
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: note: candidates are:
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:0:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:225:130: note: template<ESPIChipsets CHIPSET, unsigned char DATA_PIN, unsigned char CLOCK_PIN, EOrder RGB_ORDER, unsigned int SPI_DATA_RATE> CLEDController& CFastLED::addLeds(CRGB*, int, int)
template<ESPIChipsets CHIPSET, uint8_t DATA_PIN, uint8_t CLOCK_PIN, EOrder RGB_ORDER, uint32_t SPI_DATA_RATE > CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:225:130: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: template argument 2 is invalid
FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:0:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:239:95: note: template<ESPIChipsets CHIPSET, unsigned char DATA_PIN, unsigned char CLOCK_PIN> static CLEDController& CFastLED::addLeds(CRGB*, int, int)
template<ESPIChipsets CHIPSET, uint8_t DATA_PIN, uint8_t CLOCK_PIN > static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:239:95: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: template argument 2 is invalid
FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:0:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:253:113: note: template<ESPIChipsets CHIPSET, unsigned char DATA_PIN, unsigned char CLOCK_PIN, EOrder RGB_ORDER> static CLEDController& CFastLED::addLeds(CRGB*, int, int)
template<ESPIChipsets CHIPSET, uint8_t DATA_PIN, uint8_t CLOCK_PIN, EOrder RGB_ORDER > static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:253:113: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: template argument 2 is invalid
FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:0:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:303:25: note: template<template<unsigned char DATA_PIN, EOrder RGB_ORDER> class CHIPSET, unsigned char DATA_PIN, EOrder RGB_ORDER> static CLEDController& CFastLED::addLeds(CRGB*, int, int)
static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:303:25: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: template argument 2 is invalid
FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:0:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:309:25: note: template<template<unsigned char DATA_PIN, EOrder RGB_ORDER> class CHIPSET, unsigned char DATA_PIN> static CLEDController& CFastLED::addLeds(CRGB*, int, int)
static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:309:25: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: wrong number of template arguments (3, should be 2)
FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:0:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:315:25: note: template<template<unsigned char DATA_PIN> class CHIPSET, unsigned char DATA_PIN> static CLEDController& CFastLED::addLeds(CRGB*, int, int)
static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:315:25: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: wrong number of template arguments (3, should be 2)
FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:0:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:359:25: note: template<template<EOrder RGB_ORDER> class CHIPSET, EOrder RGB_ORDER> static CLEDController& CFastLED::addLeds(CRGB*, int, int)
static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:359:25: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: wrong number of template arguments (3, should be 2)
FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:0:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:365:25: note: template<template<EOrder RGB_ORDER> class CHIPSET> static CLEDController& CFastLED::addLeds(CRGB*, int, int)
static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:365:25: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: wrong number of template arguments (3, should be 1)
FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:0:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:433:25: note: template<EBlockChipsets CHIPSET, int NUM_LANES, EOrder RGB_ORDER> static CLEDController& CFastLED::addLeds(CRGB*, int, int)
static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:433:25: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: template argument 2 is invalid
FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
^
In file included from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:0:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:474:25: note: template<EBlockChipsets CHIPSET, int NUM_LANES> static CLEDController& CFastLED::addLeds(CRGB*, int, int)
static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:474:25: note: template argument deduction/substitution failed:
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: error: wrong number of template arguments (3, should be 2)
FastLED.addLeds<WS2812B, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS); // подключение ленты
^

exit status 1

Compilation error: 'D5' was not declared in this scope
 

maksland

★★★✩✩✩✩
13 Янв 2019
442
103
Omsk
это в половине ошибок
сейчас поменять так D5 = 5 и D6 = 6 ?
сделал
теперь так
In file included from c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:67:0,
from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/fastspi.h:145:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output
# pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"
^
In file included from c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:50:0,
from C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:22:
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/fastpin.h: In instantiation of 'class FastPin<6u>':
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/platforms/esp/8266/clockless_esp8266.h:21:49: required from 'class ClocklessController<6, 20, 50, 30, (EOrder)66u, 0, false, 85>'
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/chipsets.h:578:7: required from 'class WS2812Controller800Khz<6u, (EOrder)66u>'
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:107:52: required from 'class WS2812B<6u, (EOrder)66u>'
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/FastLED.h:304:39: required from 'static CLEDController& CFastLED::addLeds(CRGB*, int, int) [with CHIPSET = WS2812B; unsigned char DATA_PIN = 6u; EOrder RGB_ORDER = (EOrder)66u]'
C:\Users\maksland\Documents\NEW_CLOCK_ESP_1\NEW_CLOCK_ESP_1.ino:70:64: required from here
c:\Users\maksland\Documents\Arduino\libraries\FastLED\src/fastpin.h:210:2: error: static assertion failed: Invalid pin specified
static_assert(validpin(), "Invalid pin specified");
^

exit status 1

Compilation error: exit status 1
 

maksland

★★★✩✩✩✩
13 Янв 2019
442
103
Omsk
wemos D1 R1 выбрал и нормально скомпилировалось !
генерик esp8266 модуль стоял по умолчанию
а места то еще осталось !
можно бинарник делать и по uart заливать ? :)
наверное и на новом ядре скомпилируется... надеюсь по выводам все совпадать будет
 

maksland

★★★✩✩✩✩
13 Янв 2019
442
103
Omsk
мне больше охота на портал посмотреть
и как с телефона всем этим манипулировать :)
ASM, надо теперь попробовать интернет радио на esp32 замутить
а то такой винегрет что не знаешь что и собирать :(
 
Изменено:

Maxx1200

★✩✩✩✩✩✩
11 Фев 2022
69
16
на ядре 3.0.2 скетч wemos компилируется но при входе в вебморду получаем вот это
IMG_20221122_115217.jpg
 

ASM

★★★★✩✩✩
26 Окт 2018
1,485
292
Если в качестве микроконтроллера вы используете Wemos D1 - в менеджере плат для компиляции все равно выбирайте "NodeMCU v1.0 (ESP-12E)", в противном случае, если выберете плату Wemos D1 (xxxx), - будет работать нестабильно.
 

ASM

★★★★✩✩✩
26 Окт 2018
1,485
292
@maksland,попробуй сначала для node, там уже будет видно)
 

maksland

★★★✩✩✩✩
13 Янв 2019
442
103
Omsk
если кому будет интересно, платы пока в пути (ошибки вылезут после приезда и монтажа :) )
 

Вложения

  • Лойс +1
Реакции: Divin

Leon111_09

★★★✩✩✩✩
6 Июн 2021
642
148
55
Таганрог
forum.wisecomp.ru
@ASM, Я тут случайно нарвался на похожий проект часов (на такой же матрице). Думаю, в плане информации он будет вам полезен: там функционал поболее,веб-интерфейс и управление через приложение реализовано.Да, в общем, там много еще плюшек. Этот проект ТУТ .
 

kym13

★★✩✩✩✩✩
14 Ноя 2020
424
64
@ASM, ...не для этого проекта .... Это понятно, но наработки там действительно хорошие. И главное всё работает. Автор выкладывает прошивки вместе с полным комплектом библиотек, настройками платы и звуковыми файлами, поэтому при компиляции нет танцев с бубнами.
 
  • Лойс +1
Реакции: Leon111_09

Leon111_09

★★★✩✩✩✩
6 Июн 2021
642
148
55
Таганрог
forum.wisecomp.ru
@ASM, Я вам его для примера скинул: зачем изобретать велосипед (или по другому изобретать уже изобретенное :). Может быть,куски той прошивки в ваш проект подойдут (те,которые ошибки сыпят).
 
  • Лойс +1
Реакции: kym13