Это видео недоступно.
Сожалеем об этом.

TNTM: STM32 'Blue pill' with st7920 display (RRD FGLCD)

Поделиться
HTML-код
  • Опубликовано: 17 авг 2024
  • This is a step by step setup guide to give an example of how to get the popular st7920 full graphic LCD panel working with a common 32-bit board (stm32f103 'blue pill') in 3-wire, SPI mode using the u8g2 library and arduino IDE. This was in response to some troubleshooting questions on another video, as well as just a general guide .
    TIME INDEX
    0:10 - intro and livestream issues
    1:25 - start
    4:00 - background
    4:35 - overview
    5:13 - dissecting the panel
    7:15 - electronic explanation
    8:25 - required software and hardware
    10:28 - setting up the board and libraries
    12:25 - the code
    15:15 - manual STlink uploading from terminal
    16:08 - hardware connections
    .::Links to hardware used (Amazon USA)::.
    ST-link programmer: amzn.to/2MOvEl6
    Budget soldering kit: amzn.to/2L9r4eZ
    Desoldering braid: amzn.to/2zAtTPI
    5pcs for $15 blue pills: amzn.to/2NGowqj
    Dupont cables: amzn.to/34gLMB5
    RRD LCD: amzn.to/2PotlqT
    My other contribution links:
    MONTHLY SUBSCRIPTION:
    / alexkenis
    ONE-TIME CONTRIBUTION:
    PayPal.me/Alex...
    AFFILIATE LINK:
    USA
    www.amazon.com...
    amzn.to/2luhMQr
    UK
    www.amazon.co....
    amzn.to/2jUoKxT
    Germany
    www.amazon.de/...
    Canada
    www.amazon.ca/...
    amzn.to/2luivRF
    Background music by my band Solamors, you can contribute by buying a copy on bandcamp.com, or iTunes, Google Play, etc etc:
    solamors.bandc...
    aletheian.band...
    PRODUCTS and blog:
    AlexKenis.com (redirects to my blog at the moment)
    @AlexKenis on twitter

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

  • @Thinkyhead
    @Thinkyhead 5 лет назад +4

    These little boards are great, running at almost 5 times the speed of an Arduino Mega. And U8G2 is also quite nice, though as you can see, the bottleneck for the frame rate is the data transfer. 16 bytes times 64 lines is a lot to push over SPI all at once. I would love to try using u8g2 in Marlin 2 for the 32-bit platforms, but for the upcoming release we’re using a custom fork of u8g for all platforms because it’s more compact to fit on 128K boards, and we don’t need to draw anything more complex than a solid box with inverted text.

    • @AlexKenis
      @AlexKenis  5 лет назад +1

      I hear that. I was going to do an UNO example that people could play with if they didn't have a blue pill, and could barely shoehorn it in with the char array, so I ditched that segment

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

    Shit, your intro broken my head jaja great video

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

    Graat Work!
    Alex Rocks!

  • @avejst
    @avejst 5 лет назад

    Nice walkthrou 👍
    Thanks for sharing 👍😀

  • @RishabhX3576
    @RishabhX3576 5 лет назад +2

    Can we replace the 128x64 LCD of RRD with 128x64 OLED?
    Will it be just replacing or something else needs to be done?
    White OLED display looks way cooler than blue LCD!

    • @AlexKenis
      @AlexKenis  5 лет назад +2

      HEY, That's an interesting question! the center pins on the RRD panel PCB are not connected to anything, so technicaly you can solder anything you want in there and then solder leads to whatever you need. I'll start looking around at oleds and see if there are any that will drop in there easily. I have some of the mini oleds, but I think they are all i2c.

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

    Muito bom, me ajudou bastante... Thank you ! (Brazil)

  • @claws61821
    @claws61821 5 лет назад

    15:35
    Binary fire sounds like something that would be very exciting to play with for a very short time.... =D

    • @AlexKenis
      @AlexKenis  5 лет назад +2

      HA yes, binary fire: it has only two possible temperatures. actually yes, that would be fun

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

    solder sucker oh no I never had good memories with those. barely managed to desolder successfully....
    do 3d printer boards use these in spi or parallel btw? I was always curious

  • @rarcera
    @rarcera 5 лет назад

    Awesome video.
    Is there any chance to combine this hack with ramps 1.4, I mean, free up ramps and mega combo of writing all the stuff on the LCD, combining ramps+mega with bluepill+LCD creating graphics....would it be very difficult?

    • @AlexKenis
      @AlexKenis  5 лет назад +1

      I think you can do that in Klipper firmware already because of the way it is set up. It could be done in marlin, but it would require more work. Most of the touch screens work that way already (they have their own 32-bit onboard processor and firmware, and they just translate the signals from the main board's mcu over serial connection), so there is not reason you can't write a translator and GUI for blue pill from scratch and use whatever protocol calls are expected from the touch panels to communicate with marlin... just more work

    • @Thinkyhead
      @Thinkyhead 5 лет назад

      I’ve done similar to this, using a second board (a spare mega) to drive a 4 motor Z axis and its endstops. The boards were connected via i2c, with the second board running a very stripped-down version of Marlin, and I used a very lightweight protocol. Details are at this link: github dot com/MarlinFirmware/Marlin/issues/4776#issuecomment-24626287 … For an LCD handler, you would only need to send over the values to draw. But, if you want to do a full interactive UI it gets a little more complicated. For one thing i2c can easily send data to slave units, but getting data from slave(s) requires some polling. So, a full two-way serial protocol would be better.

    • @AlexKenis
      @AlexKenis  5 лет назад

      @@Thinkyhead I'll have to look through that, just for fun if nothing else. The two-wire bus taunts me every time I open the config adv header , but I didn't know you had a machine up and running. But yes, spi or can bus would avoid do/while or ring buffer or however it is set up to wait for the ack/nack.

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

    cs: also known as chip-select

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

    Thanks, man!
    Got questions, though:
    - what's the advantage of U8g2 ? (I've seem some attempts to migrate Marlin to U8g2 github.com/olikraus/u8g2/issues/391 and it was kinda complicated )
    - how do you like new Tool ?
    Also - from u8glib - " Note: There will be no more development for U8glib. Please use u8g2. "

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

      Yeah.... the old u8g is no longer supported. u8g2 is great, but I think the issue marlin had was not being able to fit the new version library on MCUs with smaller amounts of memory. The advantage of using a library for graphical LCDs is that it supports a ton of different displays, so you don't have to program for each different one. As far as the new Tool... it comes across as more of a "jammed-out" album than a "written" album, which is not really my thing, but it's cool if you're into that. I think they hit the spot I personally like with Ænima and Lateralus, and then got more slow and jammy with the last 2. Lots of folks seem to be into that, but I prefer things a bit faster and more progressive.

  • @zarboov88
    @zarboov88 5 лет назад +1

    Does anybody else have weird behavior in the subscribers count?
    On my iPad I see the number of the last channel I have visited before. ...

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

    STM32 using arDURino ? You joke ? :)) Why you not use EASY & powerful IDEs w. debug f-n as: Keil, IAR, 32CubeIDE, etc with VISUAL init. code generator CubeMX ?!
    For Atmel : CAVR - it comfortable IDE with visual code gen. for init. code and debug.

  • @yura979
    @yura979 5 лет назад +1

    Loving your content but my ears got blasted by the intro. Please be gentle next time.

    • @AlexKenis
      @AlexKenis  5 лет назад +1

      Sorry about that, lol. I try to keep the screaming into a few dB below the rest of the vid... but at least i know your'e awake!

    • @yura979
      @yura979 5 лет назад

      @@AlexKenis Yeah, I scared the hell out of my cat but he was not holding a high opinion of me already.