Connect LCD to ATmega328P+ESP8266

Hi all,
Have bought my first devices and try to get them work together almost without any luck.
Have read a lot of topic on both this forum / youtube and alot of other forum but still a bit in doubt if my project is not possible or if I'm just missing the last thing.

My components:
UNO R3 + WiFi ATmega328P + ESP8266 32Mb Memory USB-TTL CH340G Compatible For Arduino Uno NodeMCU ESP8266


2.8 ″ TFT Touch LCD Shield
http://www.lcdwiki.com/2.8inch_Arduino_Display

What my gold is to display a sensor from Home Assistant throw mqtt.
I have tried different solution but can not found the correct one to go with.

  1. If i upload demo sketch to the mega328P the display works fine, but then i cannot get any connection to my wifi and mqtt broker.

  2. If i upload different firmware to the ESP8266 i can get the wifi and mqtt to work but my display just have white bagground.

I hope someone maybe have done something similar and can point me in the correct way.
I have nice day.

Regards Morten

It sounds like a very ambitious project. The best way we can help is if you supply us a schematic, not a frizzy drawing. How all of this is interconnected and powered has a big impact. Please show all wiring including power.

Hi gilshultz,
What wiring are you talking about ?
It's a display shield that have been connected on top of the UNO R3. and the power it throw the usb connection.

And i guess the shield have been set correctly as i get the demo view when i upload the sketch to the mega328P like i wrote.

I had never seen this particular board.

It looks as if you set switches for Uno and it behaves as a Uno.
Or you set switches for ESP8266 and it behaves like an ESP8266.

The ESP8266 is a 3.3V device.
So you need to be very careful with the 5V Uno pins.

Regarding your Display. There are many libraries that support "Blue Mcufriend Uno" Shields.
Which controller is mounted ?

Regarding the Uno+Wifi board. Do you have a schematic or User manual ?

David.

Hi David,
I have tried to use adafruit ili9341 library and it works on the mega328Pbut not on ESP8266 where i get white bagground.

Here is information on the board; https://robotdyn.com/uno-wifi-r3-atmega328p-esp8266-32mb-flash-usb-ttl-ch340g-micro-usb.html

Regards Morten

This topic was automatically closed after 42 days. New replies are no longer allowed.