Это видео недоступно.
Сожалеем об этом.
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
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.
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
Shit, your intro broken my head jaja great video
Graat Work!
Alex Rocks!
Nice walkthrou 👍
Thanks for sharing 👍😀
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!
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.
Muito bom, me ajudou bastante... Thank you ! (Brazil)
15:35
Binary fire sounds like something that would be very exciting to play with for a very short time.... =D
HA yes, binary fire: it has only two possible temperatures. actually yes, that would be fun
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
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?
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
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.
@@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.
cs: also known as chip-select
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. "
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.
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. ...
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.
Loving your content but my ears got blasted by the intro. Please be gentle next time.
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!
@@AlexKenis Yeah, I scared the hell out of my cat but he was not holding a high opinion of me already.