- Saved searches
- Use saved searches to filter your results more quickly
- Heltec-Aaron-Lee/WiFi_Kit_series
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- Забавная китайская железка WiFi_Kit_8 как первый опыт знакомства с esp8266
- kab
- ussuri
- Heltec Wifi kit 8
- Configuration
- Uploading
- Debugging
- Frameworks
- ESP8266 Built-in OLED – Heltec WiFi Kit 8
- Setting Up the Arduino IDE for the ESP8266 Range
- Testing the WiFi is Functioning
- Displaying data on the WiFi Kit 8 OLED
- Displaying a Scrolling Message on the OLED
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Arduino source codes and toolchain for WiFi_Kit_series made by HelTecAutomation.
Heltec-Aaron-Lee/WiFi_Kit_series
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Heltec ESP32 & ESP8266 Series Arduino Develop Environment
This environment is fully cloned from espressif ESP32 and ESP8266 projects, on that basis, we fixed «variants» folder and «boards.txt», for convenience of «Arduino + ESP» beginners and Heltec ESP series Dev boards users.
This environment does not include onboard OLED LoRa etc. drivers and examples anymore, they had been moved to another library:
The following table lists products based on ESP32 and ESP8266:
MCU | Relative boards |
---|---|
ESP32s3 | WIFI Kit 32(v3), WIFI LoRa 32(v3), Wireless Stick(v3), Wireless Stick Lite(v3), Wireless Paper, Wireless Tracker, Wireless Shell(v3) |
ESP32c3 | Esp32 c3 Dev-Board, Ct62 |
ESP32-PICO | Wireless Shell(v3), Wireless Stick Lite |
ESP32 D0 | WIFI LoRa 32 (V2), Wireless Stick |
ESP8266 | WiFi Kit 8 |
- Using Arduino IDE Boards Manager (preferred)
- Install ESP32 form Boards Manager
- Install ESP8266 form Boards Manager
- Instructions for Windows
- Instructions for Mac
- Instructions for Debian/Ubuntu Linux
- Instructions for Fedora
- Instructions for openSUSE
- Read reference install guide document:Installation Instructions
You can use EspExceptionDecoder to get meaningful call trace.
Before reporting an issue, make sure you’ve searched for similar one that was already created. Also make sure to go through all the issues labelled as for reference.
Also you can talk in our forum: http://community.heltec.cn/
- Website:https://heltec.org
- Document Page: https://docs.heltec.cn
- Forum: http://community.heltec.cn/
- Twitter: https://twitter.com/HeltecOrg
- Face Book: https://www.facebook.com/heltec.automation.5
Забавная китайская железка WiFi_Kit_8 как первый опыт знакомства с esp8266
Увидел на али такую интересную железяку http://www.heltec.cn/download/WIFI_Kit_8_Diagram(new).pdf
Подумал, что пора приобщиться к миру контроллеров, программирования и остального
Решил, что с нее знакомство с увлекательными миганиями светодиодами и щелкания релюшками, будет начинать самый раз. Заказал на али. Приехала.
При подключении питания экранчик радостно начал писать «hello world». Хотя на страничках продавцов с али были другие картинки .
Поставил Ардуино ИДЕ (с сайта, последняя версия) и стал копать гугль. В результате многочаовых поисков удалось найти два варианта прикручивания железа к Ардуино ИДЕ. Использовал оба. Первый с распаковкой файла с сайта железки, а когда ничего не получилось, что на WiFi_Kit_series/windows.md at master · Heltec-Aaron-Lee/WiFi_Kit_series · GitHub
Железка в Ардуино ИДЕ прекрасно установилась. Куча Exsamples успешно заливались в железку. По компорту прекрасно получал информацию из скетчей. Но везде одно и то-же. Никак не хотела подключаться к точке доступа Wi-Fi и никак не поднимала свою. Рыл интернет. Находил команды. Но все без результата.
Ни как не желала подключатся к точке доступа. Никак не удавалось увидеть, если загружал скетч работы в режиме точки доступа. При этом сканирование сетей проходило нормально. (Ну и скетч экранчика писал как положено).
Сегодня с горя попробовал
NodeMCU 0.9.6 build 20150704 powered by Lua 5.1.4
И чудо! Завелось сразу. Взятый отсюда ESP8266 Web Server Tutorial (Code and Schematics) сервер запустился и работает (только светодиоды в другие ноги воткнул).Вопрос. Куда копать? Почему через ардуино ИДЕ ничего не получается? Руки кривые?
Вопрос2. Как включить экранчик (устал, быстро ссылки нагуглить не удалось)kab
New member
ussuri
New member
@kab
Попробую снести всё и попробовать по Вашей ссылке. Врядли поможет, но хоть какая-то движуха.
С режимами работы вайфая возился в скетчах. Попробую еще раз.P.S. Совсем странно. Сегодня откопал ESP12-F. Напаял резисторы и кнопки, Прикрутил к Ардуино Уно, чтоб прошивать, прошил стандартные скетчи — работает. И светодиодом моргает и к точке доступа цепляется.
Heltec Wifi kit 8
Platform Espressif 8266 : ESP8266 is a cost-effective and highly integrated Wi-Fi MCU with built-in TCP/IP networking software for IoT applications. ESP8266 integrates an enhanced version of Tensilica’s L106 Diamond series 32-bit processor and on-chip SRAM.
Microcontroller
Configuration
[env:heltec_wifi_kit_8] platform = espressif8266 board = heltec_wifi_kit_8
You can override default Heltec Wifi kit 8 settings per build environment using board_*** option, where *** is a JSON object path from board manifest heltec_wifi_kit_8.json. For example, board_build.mcu , board_build.f_cpu , etc.
[env:heltec_wifi_kit_8] platform = espressif8266 board = heltec_wifi_kit_8 ; change microcontroller board_build.mcu = esp8266 ; change MCU frequency board_build.f_cpu = 80000000L
Uploading
Heltec Wifi kit 8 supports the following uploading protocols:
Default protocol is esptool
You can change upload protocol using upload_protocol option:
[env:heltec_wifi_kit_8] platform = espressif8266 board = heltec_wifi_kit_8 upload_protocol = esptool
Debugging
Debugging currently does not support Heltec Wifi kit 8 board.
Frameworks
Arduino Wiring-based Framework allows writing cross-platform software to control devices attached to a wide range of Arduino boards to create all kinds of creative coding, interactive objects, spaces or physical experiences.
Espressif ESP8266 Non-OS SDK
Espressif ESP8266 SDK based on FreeRTOS
© Copyright 2014-present, PlatformIO.
ESP8266 Built-in OLED – Heltec WiFi Kit 8
Follow the easy steps below to get up and running with this board using standard Arduino libraries.
This board is based on the ESP8266 chip and has onboard WiFi, a 0.96inch 128*32 OLED display, lithium battery connector charging and a CP2014 USB to serial interface. It also works with the Arduino IDE! I bought mine from here: https://aliexpress.com/item/ESP8266-WIFI-Chip-0-91-inch-OLED-CP2014-32Mb-Flash-ESP-8266-Module-Internet-of-things/32822165059.html but it’s also available on eBay and Amazon.
Setting Up the Arduino IDE for the ESP8266 Range
The ESP8266 boards are much easier to set up in the Arduino IDE than the ESP32 range. If you don’t already have it installed, download and install the IDE from here: https://www.arduino.cc/en/main/software (don’t use the Web version).
In the IDE, open the File Menu and choose Preferences and enter http://arduino.esp8266.com/stable/package_esp8266com_index.json into the Additional Board Manager URLs field.
Open the Boards Manager from Tools > Board:xxxxx menu
Find esp8266 by ESP8266 Community in the list and click Install
The ESP8266 Hardware Libraries are now installed and you can test your new board with a simple Sketch.
Testing the WiFi is Functioning
In the Arduino IDE, in the Tools > Board menu choose NodeMCU 1.0 (ESP-12E Module)
Select the port (It might not be COM4)
You can now upload Sketches to the board. A good test is use the example WiFiScan sketch.
Open File> Examples > ESP8266WiFi > WifiScan and upload the sketch.
If you open the Serial Monitor (Tools > Serial Monitor) you will be able to see any WiFi access points in range. Check the baud rate is the same as in the sketch – probably 115200.
Displaying data on the WiFi Kit 8 OLED
You should be able to use any SSD1306 library for the OLED. I prefer the U8g2 (https://github.com/olikraus/u8g2) library. It can be installed using the Arduino IDE library manager. Open Sketch > Include Library > Manage Libraries and search for and then install U8g2.
U8g2 has three different display methods. To test the board we are using the Full Buffer method. Open the example Sketch: File> Examples > U8g2 > full_buffer > GraphicsTest
In the code for this Sketch, paste:
U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ 16, /* clock=*/ 5, /* data=*/ 4);
or the slower software driver version: U8G2_SSD1306_128X32_UNIVISION_F_SW_I2C u8g2(U8G2_R0, /* clock=*/ 5, /* data=*/ 4, /* reset=*/ 16);
Above this line: // Please UNCOMMENT one of the contructor lines below
Upload the sketch. You should see some different graphics appearing on the screen. Don’t worry that they are cut off, this example sketch is designed for different size screens.If this doesn’t work you might have a different version of the board. Try pasting the following:
U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ 4, /* clock=*/ 14, /* data=*/ 2);
or the slower software driver version: U8G2_SSD1306_128X32_UNIVISION_F_SW_I2C u8g2(U8G2_R0, /* clock=*/ 14, /* data=*/ 2, /* reset=*/ 4);Displaying a Scrolling Message on the OLED
Displaying a scrolling message can be a little tricky due to hardware and font limitations. The following sketch (based on the U8g2 ScrollingText example) will horizontally scroll a short piece of text.
#include U8g2lib.h> //U8g2 Contructor U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ 16, /* clock=*/ 5, /* data=*/ 4); // Alternative board version. Uncomment if above doesn't work. // U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ 4, /* clock=*/ 14, /* data=*/ 2); u8g2_uint_t offset; // current offset for the scrolling text u8g2_uint_t width; // pixel width of the scrolling text (must be lesser than 128 unless U8G2_16BIT is defined const char *text = "ROB01 "; // scroll this text from right to left void setup(void) u8g2.begin(); u8g2.setFont(u8g2_font_logisoso32_tf); // set the target font to calculate the pixel width width = u8g2.getUTF8Width(text); // calculate the pixel width of the text u8g2.setFontMode(0); // enable transparent mode, which is faster > void loop(void) u8g2_uint_t x; u8g2.firstPage(); do // draw the scrolling text at current offset x = offset; u8g2.setFont(u8g2_font_logisoso32_tf); // set the target font do // repeated drawing of the scrolling text. u8g2.drawUTF8(x, 32, text); // draw the scolling text x += width; // add the pixel width of the scrolling text > while ( x u8g2.getDisplayWidth() ); // draw again until the complete display is filled u8g2.setFont(u8g2_font_logisoso32_tf); // draw the current pixel width u8g2.setCursor(0, 64); u8g2.print(width); // this value must be lesser than 128 unless U8G2_16BIT is set > while ( u8g2.nextPage() ); offset -= 1; // scroll by one pixel if ( (u8g2_uint_t)offset (u8g2_uint_t) - width ) offset = 0; // start over again >
If you want to scroll a longer piece of text you have to edit one of the display library files to allow 16bit mode.
Open the file /libraries/U8g2_Arduino/src/clib/u8g2.h and uncomment this line:
// #define U8G2_16BITSave the file and you can now use longer text by replacing this line:
const char *text = “ROB01 “; // scroll this text from right to left
with (for example):
const char *text = “ROBOTZERO.ONE “; // scroll this text from right to leftYou’ll then see something like the animation below:
Bonus tip! You can make the animation smoother by boosting the CPU speed to 160Mhz for the uploaded Sketch: