? Editing: Post:21.body Save Delete Cancel

Newest topics

Follow in NewsfeedFollowing
+ Start new topic
stickied

Title

Body
^1 ^2 added ━ started by user_name
stickied

Will there be any method to make ESP8266 to direct two separate antennas for its AP mode and STATION mode?

I'm still wondering. If there's some way to do this, it will be cool.
^1 ^2 2 comments last on Nov 21, 2018 ━ started by leftside
stickied

ESP8266 <-> Arduino Mega для RGB LCD матрицы

> [trooper](/1ApsfuUfnyJm19qZguDzzqj7se41Ggxzrt/?Post:17:Px+marices+with+ESP8266#comment_1_1Nyvgpgzk7BEEHs1TeTRwAtEDhF2txevSe): По какому протоколу Вы передавали команды на Мега? Я так понимаю, какой то самописный? Интересно было бы взглянуть. Да, самописный. В идеале надо сделать под Мегу простенький Форт, тогда можно будет очень гибко управлять, Форт для управления по последовательному каналу просто идеален, но я очень мало этим занимаюсь сейчас, так что слепил простейший протокол на базе JSON. Т.е. ESP8266 запихивает команты в JSON-формате, Mega парсит. ![](/1ApsfuUfnyJm19qZguDzzqj7se41Ggxzrt/data/img/post_7_IMG_20171024_205906-200.jpg) *<http://127.0.0.1:43110/1ApsfuUfnyJm19qZguDzzqj7se41Ggxzrt/?Post:7:RGB+LED+matrix+64x32>* Команды вида: ``` [{c:sz,s:1},{c:c,r:0,g:0,b:0},{c:go,x:2,y:24},{c:fr,x:0,y:24,w:32,h:8},{c:c,r:0,g:0,b:3},{c:p,t:\"24'c\"}] ``` Смысл, типа: - `{c:sz,s:1}`: command: `size` (размер шрифта); `size=1` - `{c:c,r:0,g:0,b:0}`: `c` = `color`, цвет. Аргументы - R, G и B от 0 до 7. - `{c:go,x:2,y:24}`: `go` = позиционирование курсора в пикселах - `{c:fr,x:0,y:24,w:32,h:8}`: `fr` = frame, рисовать заполненный прямоугольник по координатам x, y размерами w, h. В данном случае — очистка экрана (ранее — чёрный цвет). - `{c:c,r:0,g:0,b:3}` — делаем бледный синий цвет - `{c:p,t:"24'c"}` — `p` = print, печать текста. Парсер очень примитивный: ```cpp jsonBuffer.clear(); JsonArray& root = jsonBuffer.parseArray(str); if(!root.success()) { Serial.println("parseObject() failed"); continue; } for(auto &cmd : root) { String command = cmd["c"]; if(command == "p") cmd_print(cmd); else if(command == "go") cmd_goxy(cmd); else if(command == "c") cmd_color(cmd); else if(command == "cls") cmd_cls(cmd); else if(command == "hl") cmd_hline(cmd); else if(command == "vl") cmd_vline(cmd); else if(command == "dr") cmd_dr(cmd); else if(command == "fr") cmd_fr(cmd); else if(command == "sz") cmdTextSize(cmd); else Serial.println("Unknown command: ["+command+"]"); } ``` Косяков пока много, всё руки не доходят допилить как надо… Как допилю, надо будет и кодом поделиться, можно сразу в ZN в Git Center :)
http://127.0.0.1:43110/1ApsfuUfnyJm19qZguDzzqj7se41Ggxzrt/?Post:7:RGB+LED+matrix+64x32>*
^1 ^2 0 comments on Sep 02, 2018 ━ started by balancer73
stickied

Anyone built solar system that is really worth money and the work?

I have some solar panel and a battery, but i had problem with over night discharging. Is there anyone who have experience and can recommend cheap components that prevent discharging and can be bough anywhere?
^1 ^2 6 comments last on Jun 29, 2018 ━ started by ssdifnskdjfnsdjk
stickied

Multimeter and discovering shorted components on the electronic boards?

Hello, i was warned numerous times not to try to work with electric devices without me having school qualification in this. Because of life threatening high voltage that can be in capacitors on some electronic boards even if they are disconnected from the mains (electricity supply). Yet from your experience are there any rules that a noob have to follow and be safe and rules to follow to discover shorted/faulty electro component on the board to replace it? Or indeed the warnings i received was correct and i should not be involved?
^1 ^2 1 comment last on Jun 28, 2018 ━ started by ssdifnskdjfnsdjk
stickied

Ссылки по теме в ZeroNet

- [DIY@Balancer](/1ApsfuUfnyJm19qZguDzzqj7se41Ggxzrt/) — блог.
^1 ^2 0 comments on Jun 28, 2018 ━ started by balancer73

 

Follow in NewsfeedFollowing

Title

Body
^? ^0 username posted added
Please sign innew comment
Sign in as...
Submit comment
You are running out of your allowed space, please contact the site's admin at unknown to raise your limit.
user_nameadded ^1 ^2
Reply
Body
More comments
This page is a preview of ZeroNet. Start your own ZeroNet for complete experience. Learn More