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

Поділитися
Вставка
  • Опубліковано 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 10 місяців тому

    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 9 місяців тому +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

  • @guilhermecavalheri199
    @guilhermecavalheri199 4 роки тому +3

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

  • @antonioescamez4549
    @antonioescamez4549 3 роки тому

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

  • @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?

  • @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

  • @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

  • @PraveenKumar-pr9hk
    @PraveenKumar-pr9hk 3 роки тому

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

  • @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.

  • @rajeshn2600
    @rajeshn2600 2 роки тому

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

  • @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..

  • @NA-ms8rl
    @NA-ms8rl 6 місяців тому

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

  • @jibui5826
    @jibui5826 3 роки тому

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

  • @mow3890
    @mow3890 4 роки тому

    Also what software are you using to draw the circuit

  • @user-xk4xb6to9g
    @user-xk4xb6to9g 7 місяців тому

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

  • @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-nz1jw9en1y
    @user-nz1jw9en1y Рік тому

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

  • @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.

  • @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.

  • @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.

  •  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.

  • @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

  • @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.

  • @KomikvidyolarS
    @KomikvidyolarS 5 місяців тому

    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 5 місяців тому

      I would be very happy if you answer

    • @ControllersTech
      @ControllersTech  5 місяців тому

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

    • @KomikvidyolarS
      @KomikvidyolarS 5 місяців тому

      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  5 місяців тому

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

  • @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

  • @lehuunhiem9866
    @lehuunhiem9866 Рік тому

    hi sir , can you share code with us ?

  • @vladilion90
    @vladilion90 Рік тому

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