Author Topic: Using ESP8266's WiFi feature next to a timing-critical routine  (Read 1563 times)

0 Members and 1 Guest are viewing this topic.

Offline BlvckBytesTopic starter

  • Newbie
  • Posts: 6
  • Country: at
Hey there!

Since I saw that VF-Display on the EEVBlog channel, I had to get my own. Now I've written a DIY driver for it, and it works pretty good so far. This is my code: https://github.com/BlvckBytes/VFDisplay/tree/master/firmware/vf_display

I use assembly NOPs for timings, to ensure a flicker-free display. As soon as I'm trying to load up the ESP8266WiFi header file to connect to WiFi, I run into WDT-resets all the time. When I disable the NOPs, WiFi works, but the screen doesn't (obviously).

Is it even possible to run both things on the same device? I thought about using a weaker external microcontroller to handle just the screen, which takes in commands over serial from the ESP. This would be a waste of processing power tho, just because I'm not able to get the software running properly.

Multitasking is hard, :(.

Any ideas? Thanks!
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2332
  • Country: 00
Re: Using ESP8266's WiFi feature next to a timing-critical routine
« Reply #1 on: August 31, 2021, 05:05:28 am »
Change to esp32, and all your problems will finish
 

Offline BlvckBytesTopic starter

  • Newbie
  • Posts: 6
  • Country: at
Re: Using ESP8266's WiFi feature next to a timing-critical routine
« Reply #2 on: September 05, 2021, 12:16:35 am »
Since the ATtinys are quite cheap, I'm going to get one with 4K flash, since my code takes around 2.2K, with everything in my power already optimized, and totally barebones.

https://github.com/BlvckBytes/VFDisplayMultiplexer

This gets serial commands, which my ESP sends out using a software-serial, using just the TX pin, and common ground. I think this is the cheapest solution, since an ESP32 would be a total overkill, as with most ESP-projects tho.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->