🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    ATOM Lite Display not display in smallHd 503

    Atom
    4
    9
    8.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cepics
      last edited by

      Hi all,

      somebody knows ATOM Display Lite settings for display on SmallHD 503 monitor?

      best regards

      1 Reply Last reply Reply Quote 1
      • M
        macsbug
        last edited by macsbug

        Hello @cepics

        SmallHD 503 : 1920 x 1080

        :--------------------------------------------------
        Arduino IDE

        #include <M5AtomDisplay.h>

        You can set the resolution (width, height) with the argument.
        If omitted, 1280, 720
        // M5AtomDisplay display(); // 1280 x 720

        M5AtomDisplay display(1920,1080,24); // 1920 x 1080 , 24bit

        // TOSHIBA REGZA 32BC3 32inch 1366x768
        // M5AtomDisplay display(1366,768); // 1366 x 768

        // M5AtomDisplay display(1920/2,1080/2,24);

        example
        // ( 480, 1920);(1920, 480);(1280, 720);(1024, 768);
        // ( 960, 540);( 800, 600);( 640, 480);( 640, 400);
        // ( 640, 360);( 512, 212);( 256, 192);( 320, 240);
        // ( 240, 320);( 200, 200);( 240, 135);( 135, 240);
        // ( 160, 160);( 160, 80);( 80, 160);( 80, 80);

        It may not be displayed correctly depending on the supported resolution of the display.
        It may be possible to display by setting the resolution (width, height) to be output to the display with arguments 3 and 4.
        You can also set the width and height magnification with arguments 5 and 6.
        If the enlarged resolution is less than the output resolution, there will be a gap around the screen.

        // M5AtomDisplay display ( 512, 384, 1280, 800, 2, 2 );
        // M5AtomDisplay display ( 683, 384, 1366, 768, 2, 2 );

        • The width magnification must be a number that is divisible by the width of the output resolution

        // ex: M5AtomDisplay display ( 400, 250, 1280, 800, 3, 3 );
        In this example, 1280 is not divisible by 3, so the horizontal magnification is changed to 2.

        :--------------------------------------------------
        Reference :
        M5GFX/docs/ATOMDisplay.md
        M5GFX/examples/
        https://github.com/m5stack/M5GFX

        Overview of internal processing of ATOM Display(ATOM Displayの内部処理概要)
        https://qiita.com/ciniml/items/30759f0083df5e07865f

        Panel_M5HDMI.hpp
        https://github.com/m5stack/M5GFX/blob/master/src/lgfx/v1/panel/Panel_M5HDMI.hpp#L117

        :--------------------------------------------------
        Exsample :

        #include <M5AtomDisplay.h>
        M5AtomDisplay display(1920,1080,24);

        void setup(void){
        display.init();
        display.setRotation(0); //0=normal/1=90deg/2=180deg/3=270deg/4~7=upside down
        display.setColorDepth(24); // 24bit per pixel color setting // Set the color depth
        display.startWrite();
        for (int y = 0; y < display.height(); ++y){
        for (int x = 0; x < display.width(); ++x){
        display.writePixel(x, y, display.color888(x, x+y, y));
        }
        }
        display.endWrite();

        display.startWrite();
        for (int i = 0; i < 16; ++i){
        int x = rand() % display.width();
        int y = rand() % display.height();
        display.drawCircle(x, y, 16, rand());
        }
        display.endWrite();
        }

        void loop(void){
        display.startWrite();
        static constexpr const char hello_str[] = "Hello ATOM Display !";
        display.setFont(&fonts::Orbitron_Light_32);
        for (int i = -display.textWidth(hello_str); i < display.width(); ++i){
        display.drawString(hello_str,i,(display.height()-display.fontHeight())>>1);
        }
        display.endWrite();
        }
        :--------------------------------------------------

        1 Reply Last reply Reply Quote 1
        • C
          cepics
          last edited by

          @macsbug said in ATOM Lite Display not display in smallHd 503:

          1920/2,1080/2,24

          No way to display something on the 503.... I tried all configuration:

          // M5AtomDisplay display(); // 1280 x 720
          M5AtomDisplay display(1920,1080,24); // 1920 x 1080 , 24bit
          // M5AtomDisplay display(1366,768); // 1366 x 768
          // M5AtomDisplay display(1920/2,1080/2,24);
          // ( 480, 1920);(1920, 480);(1280, 720);(1024, 768);
          // ( 960, 540);( 800, 600);( 640, 480);( 640, 400);
          // ( 640, 360);( 512, 212);( 256, 192);( 320, 240);
          // ( 240, 320);( 200, 200);( 240, 135);( 135, 240);
          // ( 160, 160);( 160, 80);( 80, 160);( 80, 80);

          when I connect hdmi cable to the 503, the monitor "feel" something (green led on and image settings in the "in settings page" of 503) but no image displayed.....

          the same cable works in other setup....

          1 Reply Last reply Reply Quote 1
          • C
            cepics
            last edited by

            from SmallHD503 datasheet:

            HDMI Input Types

            YCC 4:2:2 @ 8 bits, 8/10/12 bit color in RGB & YCC 4:4:4: 1080p60, 1080p59.94, 1080p50, 1080p30, 1080p29.97 1080p25, 1080p24, 1080p23.98,1080i60, 1080i59.94, 1080i50, 1080i30, 1080i29.97, 1080i25, 720p120, 720p119.88, 720p100, 720p60, 720p59.94 , 720p50, 720p30, 720p29.97, 720p25, 720p24, 720p23.98, 480p120, 480p119.88, 480p60, 480p59.94, 576p100, 576p50, 480i240, 480i239.76, 480i120, 480i119.88, 480i60, 480i59.94, 480i30, 480i29.97, 480i24, 480i23.98, 576i200, 576i100, 576i50, 576i25

            H 1 Reply Last reply Reply Quote 1
            • H
              HappyUser @cepics
              last edited by

              @cepics said in ATOM Lite Display not display in smallHd 503:

              SmallHD503 datasheet

              I read that you are also struggling with this (5 inch?) display. I am facing the same issues with Waveshare 5inch display. Although I have the very strong feeling that the software on the M5AtomDisplay as shipped is different from the GitHub factory test. Have you been able to get things working?

              1 Reply Last reply Reply Quote 1
              • C
                cepics
                last edited by

                no, still don't work!!
                yes 5 inches.......

                1 Reply Last reply Reply Quote 0
                • ajb2k3A
                  ajb2k3
                  last edited by

                  Waveshare displays can be hit and miss. I have a 7.1" that will work sometimes with the display but not always and sometime wont work with other HDMI devices.

                  UIFlow, so easy an adult can learn it!
                  If I don't know it, be patient!
                  I've ether not learned it or am too drunk to remember it!
                  Author of the WIP UIFlow Handbook!
                  M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

                  1 Reply Last reply Reply Quote 0
                  • C
                    cepics
                    last edited by cepics

                    Hi all,
                    two days ago, I wanted to try the Atom lite display and smallhd 503U again and, after loading the test sketch (https://docs.m5stack.com/en/atom/atom_display),

                    #include <Arduino.h>
                    #include <vector>
                    
                    #include <M5AtomDisplay.h>
                    M5AtomDisplay display;
                    
                    void setup(void)
                    {
                      display.begin();
                    }
                    
                    void loop(void)
                    {
                      display.fillScreen(RED);
                      delay(1000);
                      display.fillScreen(GREEN);
                      delay(1000);
                      display.fillScreen(BLUE);
                      delay(1000);
                    }
                    

                    the SmallHD 503U monitor began to color.

                    I then created my code and worked on it for two days, visualizing the data coming from another atom through the ESPNOW protocol without problems..

                    while I was working on the TX code (ATOM LITE), suddenly the smallhd 503U stopped displaying the HDMI output of the ATOM lite Display RX

                    then the ritual tests began:

                    atom and cables, on a TV, work perfectly

                    503U and cables connected to the PC work perfectly

                    I switched from battery to an AC adapter for the monitor (20v 11,5 A)

                    I updated the 503U firmware to the latest available, 5.5.6. ( was 4.7.2 than 4.8.7)

                    I tried all 5 cables present at home and they all work between AtomDisplay and TV and between PC and 503U and they don't work between AtomDisplay and 503U

                    I tried various settings of M5AtomDisplay display() and display.setColorDepth()

                    M5AtomDisplay display(1920,1080,24);
                    M5AtomDisplay display(1080,720,24);
                    M5AtomDisplay display(1080,720,50);
                    M5AtomDisplay display(1080,720,60);
                    M5AtomDisplay display ( 640, 360, 60, 1980, 1080, 2, 2, 74250000 );
                    
                    display.setColorDepth(8);
                    display.setColorDepth(24);
                    display.setColorDepth(10);
                    

                    I couldn't figure out if the 503U is capable of"adaptive resolution scaling" and the green led on the monitor for input sensing it went back off like at the beginning of this long story

                    I can't figure out what's happening and I ordered some new hdmi cables..

                    ideas?

                    best regards

                    Mauro

                    1 Reply Last reply Reply Quote 0
                    • C
                      cepics
                      last edited by

                      Unfortunately, even with new cables, the problem persists ..
                      I tested my SmallHD 503U monitor with a RPI3 and it works
                      @macsbug what do you think?

                      best regards

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post