New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use HELTEC WiFi Kit 32 #112
Comments
First, try to run the radio software without anything attached (or configured) to the Heltec board. If it does not crash, add the VS1063 and finally the OLED. Remember to first run radio-init, so you can check the WIFi. |
Dear @Edzelf , I run first: Esp32_radio_init.ino but it did not helps. See: D: Starting ESP32-radio running on CPU 1 at 240 MHz. Version Wed, 25 Apr 2018 14:45:00 GMT. Free memory 171084 Backtrace: 0x4008c90d:0x3ffd6b30 0x4008dd90:0x3ffd6b50 0x4008dd46:0x4008bc90 Rebooting... rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT) D: Starting ESP32-radio running on CPU 1 at 240 MHz. Version Wed, 25 Apr 2018 14:45:00 GMT. Free memory 171084 Backtrace: 0x4008c90d:0x3ffd6b30 0x4008dd90:0x3ffd6b50 0x4008dd46:0x4008bc90 Rebooting... |
For radio_init see the documentation: "An extra sketch "Esp32_radio_init" is supplied as an alternative to initialize the preferences (in Non-Voltile Storage of the ESP32). Just change lines 39 and 40 (the specs for WiFi networks) to match your network(s). |
I also have a Heltec board. I tried it now and it keeps rebooting. I will see what's wronfg with this board. |
Dear @Edzelf , |
The program crashed when no IR was configured. I have made a correction in the new version. |
Thanks a lot dear @Edzelf for your fast responce and the bug fixing! |
Dear @Edzelf ,
|
I could not reproduce that. I made a small correction. The display will work now without VS1063. |
Sorry something wrong in my browser cache, ignore it |
Yeah, wrong directory |
Dear @Edzelf ,
The only small glitch remained and that is: the OLED does not show correctly the last (?) line, I see only some pixels, but this is trivial. Thanks a lot Mr. @Edzelf for your help and your fantastic work in ESP32-Radio !!! |
Last line on OLED: must be a long text line in the lower section. Try to change the volume, this will paint the last pixel line of the display. |
Dear @Edzelf Pin 16 must be High in order to get OLED up and running. if you don't initialize then OLED is off. |
Yes, I understand. But 16 will be pulled to high by the software. I think it is not necessary to pulse it low for reset. |
I agree with you. The temporary low is just for reset as you already told. The only question left: Do you have any provision to pull up GPIO 16 High? Because, before I put it in setup section, the OLED was not started. |
Dear @Edzelf I am not sure how to connect VS1053 to HELTEC Dev board. Can you suggesting me the pin to pin connections? |
As I said: Gpio 16 is pulled up by the software. All unused pins are pulled HIGH. You will see it in the debug logging: "D:GPIO16 is HIGH". |
Yes you are right, I can confirm @Edzelf that the lines I put at void setup to set GPIO 16 not needed. Thanks |
To connect the VS1053 to the Heltec board, you may us someting like:
|
Dear @Edzelf VS1053 Module following your proposed pinout I have two questions,
Thanks a lot |
1 - RST on your Heltec board is the same as EN. |
Dear @Edzelf Many thanks. It is working fine now! |
i have same HELTEC WiFi Kit 32 |
I had to insert a manual OLED reset to make the display work: SSD1306.h, first lines of constructor:
|
Hi, I have an Heltec ESP32 WiFi Lora Board https://www.fambach.net/esp32-wifi-lora-433/. Therefore the pin layout is different. I have a working PCM5102A and a rotary encoder connected to it. The OLED display is not working yet. Before configuring the GPIO I have the error: After adding the OLED GPIO (SCL: 15 and SDA: 4) I get the following error (audio and encoder still works), but not OLED display:
Any suggestion where the problem comes from? (tested the display and gpios with Adafruit GFX library) |
The cause is a problem with the Wire.cpp and ESP32 and Platformio. My PlatformIO setup apparently cannot use the Wire.cpp with the ESP32. Simple GFXSketch shows the error: Bus is in Slave Mode. Same GFX script in Arduino IDE causes no problems and OLED works. Any suggestions which setting/library mismatch causes the error and therefore non-working OLED on Platformio? |
Maybe not the cause, but your 3 rotary encoder pins should be high at start-up. |
Try to disconnect the display. It may consume too much power for your power supply. |
I am testing with a simple code snippet with only i2c scanner + OLED, compiles on both (Arduino IDE and PlatformIO), but only works on the Heltec Dev Board, when compiled on Arduino IDE. Therefore I assume, that the cause has to come from my settings/libraries in PlatformIO. main.cpp (OLED+i2c works, when compiled with Arduino IDE)
platformio.ini
build output:
|
I am using Version 2 of your script and I could narrow my problem down to the following code line, which is not executed correctly: oled.cpp in the OLED constructor Unfortunately my coding knowledge stops there. I also don't see any CLK or DATA on the i2c-lines with my oscilloscope. Which makes sense, since the i2c is not started correctly, in my opinion. The display works with other libraries with PlatformIO. Therefore:
Any further tips? |
The I2C address of the OLED is 0x3C. Is that equal to the adress of you OLED? |
|
There is a chance that there is output to the display before proper initialization. I will check that. |
I have changed the OLED library. It will now use the Wire library. You also have to replace the main program. |
Thank you very much for your effort. |
There may be a reset pin for the display. Try to pull this high. |
SOLVED!
oled.h (line 64) also int instead of uint8_t
|
Good! But strange..... |
I probably found the real cause of the problem: There was a new item added to the i2c config struct. I had to add the line:
to the constructor. Then the i2c works with your library. Thanks again. |
Can You tell me where exactly you add "i2c_config.clk_flags = 0 ;" |
Hi all, First of all: I´m running into the same problem, display was working before, lost my old source. D: gpio_00 will execute uppreset = 1 I changed the code as timo619 described in his post from May 5th but this did not resolve the problem. Thanks for your help. |
A crash like that is usually caused by a weqak power supply. |
Thanks for your answer. Meanwhile I also tried the code on a WEMOS 32, without anything connected and it runs into the same problem. |
Could you please try the version 2 of the radio? |
Great ! Thanks a lot for your support. |
Dear Sirs,
I tried but unsuccessfully to work the HELTEC WiFi Kit 32 dev board with the ESP32-Radio.
For your info, the attached pdf shows all the pins of this dev board, also the occupied pins regarding the I2C OLED ( that now supported in the ESP32-Radio thanks to Mr. @Edzelf with his recent inclusion ).
If someone of you have this dev board working, or can suggest me what to do please send me a note.
All of my tries has always continious reset to ESP32...
Thanks and Best Regards,
Mike Kranidis
HELTEC WIFI_Kit_32-Diagram.pdf
The text was updated successfully, but these errors were encountered: