Skip to content
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

More informations #1

Open
smaffer opened this issue May 14, 2018 · 12 comments
Open

More informations #1

smaffer opened this issue May 14, 2018 · 12 comments

Comments

@smaffer
Copy link

smaffer commented May 14, 2018

Hello,
i am interested in your project. I am trying to write a similar project for ESP8266.
Is this project working?
Can you share more informations about pin wiring? Which resistor need to be used?

Thank you,
Sandro

@hchunhui
Copy link
Owner

Hi,

The project is working. It can output ascii and chinese charcters recieved over wifi.
The VGA driver provides a 512x480 framebuffer, so it is possible to output monochrome images too.

Build:
Put the project in the esp sdk directory, and type "./gen_misc.sh".

Wiring:
GPIO13 <--(330ohm)--> R, G, B
GPIO4 <------------> HSYNC
GPIO5 <------------> VSYNC

Usage:
The esp8266 sets up a wifi network called "esp". Connect to the network and redirect text to 192.168.4.1:88.

Chunhui

@smaffer
Copy link
Author

smaffer commented Aug 17, 2018

Hello!
i have build a library for Arduino reusing your awesome work! https://github.com/smaffer/espvgax

Using Arduino ESP8266 i have found some problems when Wifi is turned ON.. Many screen flickering and the Wifi signal sometimes can't work properly. Your VGA signal is always stable?
Thank you!

@hchunhui
Copy link
Owner

espvgax is awesome!

I have the same problem when using Wifi (the screen flickers).
I think it is because the interval of the VGA timer (32us) is smaller than
the minimal interval of the esp sdk guide (50us).

I found the problem is mitigated when using 160Mhz running speed.

@gwstaten
Copy link

I have been trying to use a nodemcu to make a vga signal, I am using espvgax2 right now, and I am taking input through serial from another device, but that causes a lot of flickering, any ideas?

@hchunhui
Copy link
Owner

@grantwstaten Hi, I am not familiar with espvgax2. It looks like that espvgax2 uses a different approach to generate VGA signals, so the following may not be suitable for your situation.

I think the key to avoid flickering is to generate stable sync signals. For my project, I use a timer interrupt to generate HSYNC and VSYNC. The interrupt should be triggered every 32us. If the interrupt is delayed (for example Wifi interrupt has higher priority), the screen will flicker.

@gwstaten
Copy link

@hchunhui maybe I'll have more luck using your library, do you have any example code for using the library?

@hchunhui
Copy link
Owner

@grantwstaten Thank you! Currently there is no simpler example code. I think you can try espvgax. The library uses the same approach, has good documentation, and should be easier to use. If the screen still flickers, I have no better idea.

@gwstaten
Copy link

gwstaten commented May 22, 2020 via email

@hchunhui
Copy link
Owner

I remember esp8266 has two serial ports: GPIO1/3 and GPIO13/15, maybe you use the latter. The project use SPI port (GPIO13) to send VGA data, so the there is a conflict.

@gwstaten
Copy link

gwstaten commented May 22, 2020 via email

@gwstaten
Copy link

gwstaten commented May 22, 2020 via email

@gwstaten
Copy link

gwstaten commented May 22, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants