tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Showcase builds, discuss cases, embedding MiSTer into existing computer cases.
User avatar
Mellified
Posts: 145
Joined: Sat Aug 22, 2020 8:38 pm
Been thanked: 51 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Mellified »

venice wrote: Thu May 27, 2021 5:13 pm [/list]
  • Removed Stuff related to ESP32 Devkitc v4 (doesn't work correctly).
Does that mean the Devkitc v4 is no longer supported?
User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

Mellified wrote: Thu May 27, 2021 10:57 pm Does that mean the Devkitc v4 is no longer supported?
I had problems to get an Devkitc V4 from AZDelivery working.
Serial was working alone, Display was working alone
but together i can‘t get it working.

Do you have a working one?
If yes, drop some pictures here if possible and let me know which Pins you use for the Display and which board you chose in the Arduino IDE.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

User avatar
RealLarry
Top Contributor
Posts: 770
Joined: Mon May 25, 2020 4:04 am
Location: San Junipero/DE/Earth
Has thanked: 89 times
Been thanked: 333 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by RealLarry »

Mellified wrote: Thu May 27, 2021 10:57 pm
venice wrote: Thu May 27, 2021 5:13 pm [/list]
  • Removed Stuff related to ESP32 Devkitc v4 (doesn't work correctly).
Does that mean the Devkitc v4 is no longer supported?
As Venice already stated, it doesn't work at the moment. I initiated the combo of a Devkitc v4 (AZDelivery) and display and it has worked. After designing and receiving a suitable PCB it turns out that the Devkitc doesn't want to play anymore. Venice bought another one for himself, tested and totally rewired the device, but nothing. Not comprehensible so far.

You can use a Wemos Lolin32 instead. Wiring diagram is on it's way:
https://github.com/venice1200/MiSTer_tt ... _board.png
Contributor of tty2oled, author of tty2tft, tty2rpi and update_tty2xxx
Jukk@M
Posts: 48
Joined: Wed Aug 26, 2020 2:20 pm
Location: Finland / Tampere
Has thanked: 14 times
Been thanked: 19 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Jukk@M »

Here are 7 Arcade .xbm images.
(Arcade: F-1 Dream, Final Fight, War of the Bugs, Warriors of Fate, Willow, Wonder Boy, Woodpecker).
tty2oled-xbm_9.rar
You do not have the required permissions to view the files attached to this post.
User avatar
WiteWulf
Posts: 42
Joined: Tue Feb 09, 2021 3:09 pm
Has thanked: 13 times
Been thanked: 10 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by WiteWulf »

I just wanted to say thank you for a really amazing project. I got all my parts in the post this morning, soldered it up and got it running in less than an hour. Really impressive stuff. I particularly like the transitions between graphics, it adds a little bit of shine to it.

E2eaTwTX0AYn7Gh.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
RealLarry
Top Contributor
Posts: 770
Joined: Mon May 25, 2020 4:04 am
Location: San Junipero/DE/Earth
Has thanked: 89 times
Been thanked: 333 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by RealLarry »

WiteWulf wrote: Fri May 28, 2021 12:53 pm I just wanted to say thank you for a really amazing project. I got all my parts in the post this morning, soldered it up and got it running in less than an hour. Really impressive stuff. I particularly like the transitions between graphics, it adds a little bit of shine to it.
Congrats, nice setup! May I ask what ESP you're using?
Contributor of tty2oled, author of tty2tft, tty2rpi and update_tty2xxx
User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

WiteWulf wrote: Fri May 28, 2021 12:53 pm I just wanted to say thank you for a really amazing project. I got all my parts in the post this morning, soldered it up and got it running in less than an hour…
Great, another quick build :D
Can use the picture for the gallery?
RealLarry wrote: Fri May 28, 2021 1:22 pm …May I ask what ESP you're using?
I bet for an TTGO :P

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

User avatar
Mellified
Posts: 145
Joined: Sat Aug 22, 2020 8:38 pm
Been thanked: 51 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Mellified »

RealLarry wrote: Fri May 28, 2021 5:04 am As Venice already stated, it doesn't work at the moment. I initiated the combo of a Devkitc v4 (AZDelivery) and display and it has worked. After designing and receiving a suitable PCB it turns out that the Devkitc doesn't want to play anymore. Venice bought another one for himself, tested and totally rewired the device, but nothing. Not comprehensible so far.

You can use a Wemos Lolin32 instead. Wiring diagram is on it's way:
https://github.com/venice1200/MiSTer_tt ... _board.png
As I posted upthread I was trying to build a solution without requiring soldering. That failed because of the screens I purchased originally, which are not 4SPI out of the box. I found where I can order the screens pre-configured for 4SPI thankfully. Now I'm waiting on them to arrive from China.

For the Arduino, I have two TTGO boards, which I can use with Dupont wires and a breadboard. The Devkitc is available with pins already on it and has a terminal breakout board available though, which enables more permanent wiring. I just bought two of those and the breakouts.

I'm a little frustrated to see the Devkitc isn't working after all.
User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

Mellified wrote: Fri May 28, 2021 3:47 pm
I'm a little frustrated to see the Devkitc isn't working after all.
I understand.
We can try your Devkitc Board when your Display arrive.
If it‘s not working we can use your TTGO‘s as well.

Where are you located?
Maybe there is someone around you who can help.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

Reg
Posts: 118
Joined: Mon Mar 22, 2021 11:38 am
Has thanked: 60 times
Been thanked: 31 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Reg »

Hi Venice,

Here is a couple of pictures for you.

Again, thank you for all your help. :)

Reg.
Front.JPG
Front Angle.JPG
You do not have the required permissions to view the files attached to this post.
User avatar
WiteWulf
Posts: 42
Joined: Tue Feb 09, 2021 3:09 pm
Has thanked: 13 times
Been thanked: 10 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by WiteWulf »

RealLarry wrote: Fri May 28, 2021 1:22 pm Congrats, nice setup! May I ask what ESP you're using?
It's a TTGO ESP32, way over-powered for this job (I'm sure it could be done with an ESP8266, but it's a nice form factor and it was a decent price on Ali).
User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

Reg wrote: Sat May 29, 2021 3:43 pm
Here is a couple of pictures for you.
Again, thank you for all your help. :)
Looks great, nice build :P
I will add a picture to the gallery if it‘s ok for you.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

Reg
Posts: 118
Joined: Mon Mar 22, 2021 11:38 am
Has thanked: 60 times
Been thanked: 31 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Reg »

venice wrote: Sat May 29, 2021 5:25 pm
Reg wrote: Sat May 29, 2021 3:43 pm
Here is a couple of pictures for you.
Again, thank you for all your help. :)
Looks great, nice build :P
I will add a picture to the gallery if it‘s ok for you.
Sure - no problem. :)
User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

Reg wrote: Sat May 29, 2021 3:43 pm Hi Venice,
Here is a couple of pictures…
Nice clock btw, selfmade?

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

Jukk@M wrote: Fri May 28, 2021 10:17 am Here are 7 Arcade .xbm images.
(Arcade: F-1 Dream, Final Fight, War of the Bugs, Warriors of Fate, Willow, Wonder Boy, Woodpecker).
tty2oled-xbm_9.rar
The Pictures are uploaded to Github and ready for the Updater 8-)
Many Thanks.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

Reg
Posts: 118
Joined: Mon Mar 22, 2021 11:38 am
Has thanked: 60 times
Been thanked: 31 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Reg »

venice wrote: Sun May 30, 2021 6:04 am
Reg wrote: Sat May 29, 2021 3:43 pm Hi Venice,
Here is a couple of pictures…
Nice clock btw, selfmade?
Nah sadly not - it came from here https://lametric.com/en-US but I got it much cheaper on Amazon on a sale.

Was my Xmas present to myself ! :)
User avatar
WiteWulf
Posts: 42
Joined: Tue Feb 09, 2021 3:09 pm
Has thanked: 13 times
Been thanked: 10 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by WiteWulf »

venice wrote: Fri May 28, 2021 3:09 pm

Great, another quick build :D
Can use the picture for the gallery?
Thanks and sorry for missing this earlier, of course, feel free to.
hitm4n
Posts: 106
Joined: Sat Jan 30, 2021 9:20 am
Has thanked: 2 times
Been thanked: 17 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by hitm4n »

Mellified wrote: Fri May 28, 2021 3:47 pm As I posted upthread I was trying to build a solution without requiring soldering. That failed because of the screens I purchased originally, which are not 4SPI out of the box. I found where I can order the screens pre-configured for 4SPI thankfully. Now I'm waiting on them to arrive from China.
AliExpress ? Have you got a link to the one you bought please ?

I am hoping to place an order today for esp, screen, some other port extensions and a case today, probably all from Ali. I'm in the UK.
Cheers.
User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

Mellified wrote: Fri May 28, 2021 3:47 pm As I posted upthread I was trying to build a solution without requiring soldering. ...
I am sorry to slow you down a bit but this ESP Breakout is for the "Devkitc V4" ESP32 which I can't get to work with the tty2oled Arduino Program and my Controller. We must wait until "Mellified" get all his parts and we can start to test or I get new hardware for testing.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

User avatar
Mellified
Posts: 145
Joined: Sat Aug 22, 2020 8:38 pm
Been thanked: 51 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Mellified »

hitm4n wrote: Mon May 31, 2021 10:12 am
Mellified wrote: Fri May 28, 2021 3:47 pm As I posted upthread I was trying to build a solution without requiring soldering. That failed because of the screens I purchased originally, which are not 4SPI out of the box. I found where I can order the screens pre-configured for 4SPI thankfully. Now I'm waiting on them to arrive from China.
AliExpress ? Have you got a link to the one you bought please ?

I am hoping to place an order today for esp, screen, some other port extensions and a case today, probably all from Ali. I'm in the UK.
Cheers.
Here're links to what I ordered. I'm still waiting on the screens so I haven't done anything other than mount the boards onto the terminal breakout.

viewtopic.php?p=26016#p26016
User avatar
gojira54
Posts: 29
Joined: Sun May 24, 2020 7:02 pm
Has thanked: 16 times
Been thanked: 8 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by gojira54 »

RX-78 core =]

UNzR3M4.png
You do not have the required permissions to view the files attached to this post.
User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

gojira54 wrote: Fri Jun 04, 2021 6:22 pm RX-78 core =]
Added to the Repo and ready for „the Updater".
Many Thanks :)

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

Mellified wrote: Thu May 27, 2021 10:57 pm Does that mean the Devkitc v4 is no longer supported?
Good News for the Devkitc V4 "Users" :D .
RealLarry has successfully tested an new Devkitc V4 Board (from AZ Delivery).
He send it to me for testing and I can confirm that it works.
It looks like we had tested some Devkitc V4 Kit's (also from AZ Delivery) which doesn't work as they should do :o

Devkitc_V4_small.jpg

If you choose "WEMOS LOLIN32" as Board within the Arduino IDE it should work.
See here https://github.com/venice1200/MiSTer_tt ... os-lolin32 for the Arduino settings
and here https://github.com/venice1200/MiSTer_tt ... nd-ssd1322 for the Eletrical Part.

The only (small) disadvantage of the Devkitc V4 board is that you have to press the boot button to load the Arduino Program (on Windows).
You do not have the required permissions to view the files attached to this post.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

User avatar
RealLarry
Top Contributor
Posts: 770
Joined: Mon May 25, 2020 4:04 am
Location: San Junipero/DE/Earth
Has thanked: 89 times
Been thanked: 333 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by RealLarry »

venice wrote: Sat Jun 05, 2021 3:35 pmThe only (small) disadvantage of the Devkitc V4 board is that you have to press the boot button to load the Arduino Program (on Windows).
Same on Linux side. At least sometimes. Weired behaviour.
Contributor of tty2oled, author of tty2tft, tty2rpi and update_tty2xxx
User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

Update (USB-Version)
The USB-Version of the Arduino Program got an new functionality to show text without using the tty2oled scripts.
Means, if the serial interface on the host is correctly configured (Baudrate etc.), you can send text from command line or other programs/tools
to the ESP/Display.

The Format is "xxx,yy,s,[Text]"

Code: Select all

xxx = 3 Digits X-Position 000..255
yy  = 2 Digits Y-Position 00..63 
s   = Text Size (0= 8 Pixel Font (u8g2_font_luBS08_tf), 1=10 , 2=14, 3=18, 4=24)
Example with the needed command order using /dev/ttyUSB0:

Code: Select all

1: echo "att" > /dev/ttyUSB0                # Is needed
2: echo "TEXTOUTXY" > /dev/ttyUSB0          # Enable TEXTOUTXY Mode
3: echo "010,10,1,Text Out" > /dev/ttyUSB0  # Show "Text Out" in Size 1 at Position 10,10.
Tip: Use the command "cls" to clear the screen => echo "cls" > /dev/ttyUSB0

If you don't need this functionality you don't need to update your ESP.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

User avatar
Mellified
Posts: 145
Joined: Sat Aug 22, 2020 8:38 pm
Been thanked: 51 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Mellified »

I received my screens today. Got the DevkitC v4, breakout, and screen wired up using the wiki wiring diagram.

When I programmed it as a Wemos Lolin32 it showed up in the MiSTer on ttyUSB0. Nothing at all showed on the screen, even running "/usr/bin/tty2oled /dev/ttyUSB0 USB 921600".

I programmed the DevkitC v4 with as an ESP32 board and see it connected to the MiSTer as well. I get random noise displayed on the screen, even when testing from the MiSTer commandline.
MiSTer-tty.jpg
Clearly I have power to the screen. I assume the issue is my wiring of the datalines? Or is this something with the DevkitC programming?
You do not have the required permissions to view the files attached to this post.
User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

Mellified wrote: Mon Jun 14, 2021 7:11 pm
Clearly I have power to the screen. I assume the issue is my wiring of the datalines? Or is this something with the DevkitC programming?
Please make some more pictures that we can the connections of ESP and Display more detailed.
And a picture of the back side of the display to see the settings.

Wiring as Devkitc should be Ok.
And choose Wemos Lolin32 as Device in the Arduino IDE.

I have this combination running here.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

User avatar
Mellified
Posts: 145
Joined: Sat Aug 22, 2020 8:38 pm
Been thanked: 51 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Mellified »

venice wrote: Mon Jun 14, 2021 9:14 pm Please make some more pictures that we can the connections of ESP and Display more detailed.
And a picture of the back side of the display to see the settings.
I used the colors in the wiring diagram, except the light blue / cyan is white and dark grey is black (ground).
Mister-tty1.jpg
Mister-tty2.jpg
Mister-tty3.jpg
Mister-tty4.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

How old is the Arduino Programm you have downloaded?
If it's relatively new it should contain the Lines

Code: Select all

// WEMOS LOLIN32 Display Constructor HW-SPI & Adafruit SD_MMC Adapter 180° Rotation => U8G2_R2
...
#ifdef ARDUINO_LOLIN32
U8G2_SSD1322_NHD_256X64_F_4W_HW_SPI u8g2(U8G2_R2, /* cs=*/ 5, /* dc=*/ 16, /* reset=*/ 17);  // Better because original SPI SS = 5
#endif
If that's the case change the cables at the terminals 5 + 17 (Blue +White) or the two cables at the Display side. The others are looking good.

Code: Select all

Terminal 5  = Display Pin 16
Terminal 17 = Display Pin 15
Set the Arduino IDE to "Wemos Lolin32" and upload the program.

If the Program and the ESP are OK you should see at least "MiSTer FPGA by Sorgelig" after Power on.

//Edit
I think we have to change the electrical's for Devkitc and Lolin32.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

User avatar
RealLarry
Top Contributor
Posts: 770
Joined: Mon May 25, 2020 4:04 am
Location: San Junipero/DE/Earth
Has thanked: 89 times
Been thanked: 333 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by RealLarry »

venice wrote: Tue Jun 15, 2021 7:32 am I think we have to change the electrical's for Devkitc and Lolin32.
That was my mistake by accident (wrong/outdated template). Mea culpa. Need more coffe over the day and more drinks at night :ugeek:
Fix is on it's way...
Contributor of tty2oled, author of tty2tft, tty2rpi and update_tty2xxx
Post Reply