Interface ST7920 GLCD with STM32 || Serial Mode || F103 || CubeMX || HAL

Поделиться
HTML-код
  • Опубликовано: 14 авг 2019
  • Purchase the Products shown in this video from :: controllerstech.store
    ________________________________________________________________________________________
    Delay in microseconds using timer • How to create delay in...
    To download the code, goto :- controllerstech.com/glcd-128x64-st7920-interfacing-with-stm32/
    Check out more VIDEOS on MODULES/SENSORS with STM32 • STM32 and SENSORS/MODULES
    ________________________________________________________________________________________
    ****** SUPPORT US BY DONATING*****
    paypal.me/controllertech
    ******Join the Membership******
    / @controllerstech
    Join the Discord Server / discord
    Join the Telegram Group t.me/controllerstechdiscuss
    Follow me on Instagram / controllerstech
    For more info, visit www.controllerstech.com
  • НаукаНаука

Комментарии • 55

  • @ashishkushwaha3812
    @ashishkushwaha3812 2 года назад +1

    Thanks a lot. How amazing it is that you are sharing your work for free. Nice background music BTW

  • @manofmesopotamia7602
    @manofmesopotamia7602 4 года назад

    That was so informative!!!!

  • @viktorhugo8252
    @viktorhugo8252 11 месяцев назад

    Good work but I prefer the 3 lines to send bytes to the display and use it for some saving current sensitive projects.

  • @NoName-tn8rq
    @NoName-tn8rq 10 месяцев назад +2

    I had a problem where during compilation with stm32cubeide there was "multiple definitions of 'image' " error. Solved by moving "uint8_t image[(128 * 64)/8];" from "ST7920_SERIAL.h" to "ST7920_SERIAL.c". Now it works fine in proteus 8. IDK about the cause though. I checked for repeating definitions and as far as i know "ST7920_SERIAL.h" wasn't being #included multiple times.

  • @yordietimmerman8606
    @yordietimmerman8606 3 года назад

    how fast is this display? for sending data, in example: encoder data distance 1 to the distance 2

  • @antonioescamez4549
    @antonioescamez4549 3 года назад

    Hello, could work with text and image at the same time?

  • @egar1956
    @egar1956 3 года назад

    Thanks for sharing. Why did you said that "SPI doesn't always works" (05:09 )?

    • @ControllersTech
      @ControllersTech  3 года назад +1

      SPI have some issues when it comes to the displays.
      I personally have always found SPI unreliable somehow... personal opinion though

  • @cupidonihack
    @cupidonihack 2 года назад

    So nice! I juste cant get chinese font to work, what would be the mod to be done for it to work?

  • @mow3890
    @mow3890 4 года назад

    What is the music you are using called? Very relaxing.

    • @ControllersTech
      @ControllersTech  4 года назад

      There are few...
      Where I am from
      Beds and breakfast

  • @guilhermecavalheri199
    @guilhermecavalheri199 4 года назад +3

    Good Night, can you leave a graphic and words together? Thanks for listening

  • @alibarakat1056
    @alibarakat1056 4 года назад

    Thanks a lot, but I have a question ... how to write on lcd with smaller font ?

    • @ControllersTech
      @ControllersTech  4 года назад +2

      By default, the custom fonts are not supported. If u still want to change the font, u have to use the graphic mode and control each line somehow. Not impossible, but kinda hard..

  • @mow3890
    @mow3890 4 года назад

    Also what software are you using to draw the circuit

  • @PraveenKumar-pr9hk
    @PraveenKumar-pr9hk 3 года назад

    for me, the only white screen appeared can u help me?

  • @rajeshn2600
    @rajeshn2600 2 года назад

    What size display did you use? Can we use a bigger display with the same method that you mentioned?

  • @jibui5826
    @jibui5826 3 года назад

    My error : " can't open source input file "sys/stat.h", how can i fix it ?

  • @NA-ms8rl
    @NA-ms8rl 7 месяцев назад

    can we display unicode characters. I need to display language other than English on display

  • @branko556
    @branko556 3 года назад +1

    Hello sir, I know that probability to get response is almost 0, but I still want to ask about one very important thing. I wanna display bitmap image which size is 87x32 pixels (const char size is 348, not 1024), and wanna that image be shown from x=50, y=10 coordinates on display. How can I modify your ST7920_DrawBitmap function to achieve this? In my opinion it's the most important thing, because when we do some real project we would rarely want to display whole 128x64 bitmap, we need to be able to display some smaller symbol in the specific place on display.

    • @ControllersTech
      @ControllersTech  3 года назад

      contact me on telegram @controllerstech. I want to test it first

  • @user-xk4xb6to9g
    @user-xk4xb6to9g 8 месяцев назад

    hello, where can I find the library used in this video?

  • @user-nz1jw9en1y
    @user-nz1jw9en1y Год назад

    please create a video for interface mfrc522 with stm32 || SPI || UART, thank you

  • @PraveenKumar-pr9hk
    @PraveenKumar-pr9hk 3 года назад

    Hello,
    I'm planning to buy a Graphical LCD 12864E Can u please send me the Front and back photo of the GLCD. So that I can conclude which pin set and datasheet. And what is the rate of single piece.

  •  3 года назад

    Hi. I am trying with F07RB and I have taken "GLCDTutorial\GLCDTutorial.axf: Error: L6200E: Symbol image multiply defined (by main.o and st7920_serial.o)." error message.I didn't write any code at all. Any solution ?

    • @ahsendogan3203
      @ahsendogan3203 3 года назад +2

      Merhaba Bahadır abi ST7920_SERİAL.h dosyası içinde bulunan uint8_t image değişkenini static olarak tanımlayarak sorunu çözebilirsin. Başarılarının devamını diliyorum daha fazla video çekersen sevinirim iyi çalışmalar :)

    •  3 года назад +2

      @@ahsendogan3203 Çok teşekkür ederim Ahsen cevabın için. image değişkenini .c dosyasına alarak çözmüşüm ben de. bu arada uyarını dikkate alıp daha fazla video çekmeye gayret göstereceğim :). İyi çalışmalar.

  • @ngwinch1299
    @ngwinch1299 2 года назад

    Why not using HW SPI. The STM32 is full of on chip peripherals to unburden the CPU. Bit banging is not the way.

  • @Hammad5113189
    @Hammad5113189 2 года назад

    Hello sir,
    I am trying to implement this on hardware, but I am confused because the labels of the pins on ST7920 are different from the schematic you showed at 4:08
    Please help?

    • @ControllersTech
      @ControllersTech  2 года назад

      Need to see the real picture of the module. the pins might be named differently, but the functions remains same. You can open a thread in community on the website, or contact via telegram/ discord

    • @Hammad5113189
      @Hammad5113189 2 года назад

      @@ControllersTech Thankyou, I messaged.

  • @TA1FMY
    @TA1FMY 4 года назад

    can we print float or integer?

    • @ControllersTech
      @ControllersTech  4 года назад +1

      Yes we can. Integer can directly be converted to characters using sprintf.
      To convert floating values into characters, you need to add few things in your IDE. Google that for the IDE you are using.

  • @danialheydarimoghadam8279
    @danialheydarimoghadam8279 4 года назад +1

    In this video, you didn't have custom font and this is my need that i use custom font in this project.
    Please explain about custom font.
    Thank you

    • @ControllersTech
      @ControllersTech  4 года назад +1

      Haven't really thought about it. Check the datasheet, it should be mentioned in that or look for some examples and see what register to use for the custom fionts.

    • @danialheydarimoghadam8279
      @danialheydarimoghadam8279 4 года назад

      @@ControllersTech i couldn't same code for custom font.
      Could you please help me?
      I need this code for a project.
      Thanks my senior

    • @ControllersTech
      @ControllersTech  4 года назад +2

      Looks like st7920 doesn't support custom fonts directly. If u want to use them, you have to use the graphic mode. And control all the pixels individually. That's a lot of work.

  • @adnanzirek3860
    @adnanzirek3860 4 года назад

    hi celcius degree symbol how can we do so i tried but i couldnt i would be glad if you help

    • @ControllersTech
      @ControllersTech  4 года назад +2

      The ascii value for it is 176. Just send 176 to lcd as data. It will print the symbol

    • @adnanzirek3860
      @adnanzirek3860 4 года назад

      @@ControllersTech thank you very much

  • @Atri315
    @Atri315 3 года назад

    Does the code written for arduino work for stm32....plz reply

    • @ControllersTech
      @ControllersTech  3 года назад

      It works, if you use stm32 as arduino. There is a video about it on the channel. But don't expect everything to work.. better buy Arduino for that

  • @KomikvidyolarS
    @KomikvidyolarS 6 месяцев назад

    You did not do the SPI structuring in the code, did you only perform the operations with the output pins? There is no SPI_init configuration in main.c file

    • @KomikvidyolarS
      @KomikvidyolarS 6 месяцев назад

      I would be very happy if you answer

    • @ControllersTech
      @ControllersTech  6 месяцев назад

      Yes.
      I am going to release another video on it soon using the SPI.

    • @KomikvidyolarS
      @KomikvidyolarS 6 месяцев назад

      Then, we can control the ST7920 using 4 GPIO output pins as in this video without using SPI, right? Also, there will be a cable length of 2 meters between the microprocessor and the ST7920. Do you think it will be a problem for communication? After all, you control it directly with the output pins?@@ControllersTech

    • @ControllersTech
      @ControllersTech  6 месяцев назад

      The output pins are generating the SPI signals. So in a way SPI is still being used.

  • @lehuunhiem9866
    @lehuunhiem9866 Год назад

    hi sir , can you share code with us ?

  • @vladilion90
    @vladilion90 Год назад

    Эххх( если бы все это на русском...