Fullscreen Raspberry Pi GUI (HMI) Using PySimpleGUI

  Рет қаралды 44,669

BaldGuyDIY

BaldGuyDIY

4 жыл бұрын

In this video I'll show how easy it is to design a GUI (Graphical User Interface) that can control the pins of the Raspberry Pi GPIO. On the Raspberry Pi, with input and output pins, this can also be an HMI (Human Machine Interface). This is just the beginning, as the possibilities are virtually endless. I hope it gets you pumped and inspired!
Have a question or comment? Leave it below or send an email to brandon@baldguydiy.com
Follow me on Twitter: @BaldGuyDIY

Пікірлер: 59
@ivanrojas1475
@ivanrojas1475 2 жыл бұрын
Hi, I'm a student of Engineering, I just want to thank you for your efforts in explaining everything and put comments in every line of the code, I had no idea how to programm anything for a project I'm doing. They gave less than 3 months to finish a GUI on raspberry and you were my savior!!! Thank you so much!
@BaldGuyDIY
@BaldGuyDIY 2 жыл бұрын
Thank you for watching, and I’m very glad it could be helpful!
@matt-on5yl
@matt-on5yl 8 ай бұрын
You have just freed me. You’ve helped me solve my month long problem in python. For that, I am forever grateful. You’re amazing.
@ClericChris
@ClericChris Жыл бұрын
This gentleman wins the award for "most amount of accents heard in the 1st 15 seconds of talking" Norwegian, no Australian, wait no that's German, no British, no that's definitely some version of Nordic, wait is that Canadian or American? Oh no it's Polish maybe. Damn wait that's American, maybe Canadian. Honesty I'm still not sure. I'm 90% it's American but there's something else in there when he's in front of the camera.
@PySimpleGUI
@PySimpleGUI 4 жыл бұрын
I like it! I haven't yet seen anyone use the new color string the way you have. It's great to see it being put to use. Congrats on an inspirational project!
@BaldGuyDIY
@BaldGuyDIY 4 жыл бұрын
Thank you so much! I’m a real newbie with it, but it’s great fun to use, and with the Pi especially it’s just a perfect tool to make these software interfaces.
@eilufoye
@eilufoye 3 жыл бұрын
thank you boss . it worked! just what i needed
@BaldGuyDIY
@BaldGuyDIY 3 жыл бұрын
Thanks for watching! Glad it was helpful.
@mea664618
@mea664618 4 жыл бұрын
Great work, keep it up
@BaldGuyDIY
@BaldGuyDIY 4 жыл бұрын
Mah. E. Thanks!
@soalersystem123
@soalersystem123 10 ай бұрын
🎉🎉🎉 awesome video, keep it up.
@fahadnadeem6130
@fahadnadeem6130 3 жыл бұрын
Hi there! Hope you'll be fine. I have seen your tutorials and they are very helpful. I want to appreciate your efforts firstly One question I want to ask is "Did you firstly install PISimpleGUI on your raspberry pi, before running the file in autostart mode?". If yes please let me know the procedure
@aykut5701
@aykut5701 3 жыл бұрын
Great work
@BaldGuyDIY
@BaldGuyDIY 3 жыл бұрын
Thanks for watching!
@operonfun5911
@operonfun5911 2 жыл бұрын
Hello there! Amazing video! Very useful! I've just one question: Which Raspberry did you use? Could it be done with a Zero or a Zero 2 W? I mean, which is the minimum Pi model you need to develop this?
@abedoubari
@abedoubari 3 жыл бұрын
Great job
@BaldGuyDIY
@BaldGuyDIY 3 жыл бұрын
Thanks! And thanks for watching!
@mohsenmazandarani7506
@mohsenmazandarani7506 2 жыл бұрын
Thank you......Great
@BaldGuyDIY
@BaldGuyDIY 2 жыл бұрын
Glad it was helpful!
@bceng89
@bceng89 Жыл бұрын
Im still learning but could you use this with OpenPLC on an RPi?
@Luis-jz2cj
@Luis-jz2cj 2 жыл бұрын
This is awesome! I would like to create something similar to this. I could add different options right to the GUI?
@BaldGuyDIY
@BaldGuyDIY 2 жыл бұрын
Yes, pretty much whatever you can imagine!
@Luis-jz2cj
@Luis-jz2cj 2 жыл бұрын
@@BaldGuyDIY Thank you and Happy Holidays!
@saulwarren9611
@saulwarren9611 Жыл бұрын
awsome, Hi, can I install PySimpleGUI onto a pyboard and interact with the GUI with a touchscreen? i want to work on a project that involves creating an RC transmitter to control a RC device.
@nickgama1594
@nickgama1594 2 жыл бұрын
How do you preview pi camera image in gui box?
@trusssrod
@trusssrod 2 жыл бұрын
I copied your code off the video, typed in and checked about a hundred times. When I run the program from Thonny, the relay button is red, tuns green when I click it, but when I click to turn it off it stays green. I haven't wired it up yet, but I'm assuming the relay LED would turn on with the first click and not turn off when clicked again. Everything else functions as expected. Any ideas?
@glasscapsule
@glasscapsule 2 жыл бұрын
OMG what did they do to the demo files on github? They should have visual examples so you can see what's what. Couldn't find the example from above for Pi. Does anyone have example code that works on a pi like the one above? Thx.
@salomonbeneitoliva6714
@salomonbeneitoliva6714 25 күн бұрын
How can I install pysimplegui on raspberry pi 4. I am not able to install it
@HyperionBadger
@HyperionBadger Жыл бұрын
Hello, just some feedback. You should include links and code within the description.
@PySimpleGUI
@PySimpleGUI 3 жыл бұрын
What version of Python did your Pi come installed with? Did you upgrade the Python version?
@BaldGuyDIY
@BaldGuyDIY 3 жыл бұрын
I’m not sure what version it had. It was the latest version of Raspberry Pi OS when I made the video. What version do you recommend?
@PySimpleGUI
@PySimpleGUI 3 жыл бұрын
​@@BaldGuyDIY I'm asking as a part of taking a survey basically. PySimpleGUI remains compatible back to Python 3.4, primarily because of the Raspberry Pi. I purchased one not all that long ago and it still had 3.4 loaded on it. For your own programming purposes, I would think 3.6 would be a good version, however, if your code is going to be used by other Pi owners, then you too have to be concerned about Python version numbers. The biggest area I get nailed in (and this biggest area I hate not being able to use) is f-strings. It's a real shame that f-strings cause a syntax error. If I accidentally leave one in the code, anywhere, then it will flat fail to run, even if never hits that statement. As a result, PySimpleGUI itself is written to run on 3.4 and later. My Demo applications DO use f-strings, so they assume 3.6. I limit myself to 3.6 for the demo programs and don't see that changing.
@warham4155
@warham4155 2 жыл бұрын
is there a place to download your code?
@Adralba007
@Adralba007 2 ай бұрын
reference and cookbook menus no longer exist on the website...what gives ?
@giampaologiacopelli8377
@giampaologiacopelli8377 4 жыл бұрын
Hi, a question, but it's possible to use the PySimpleGUI library without xwindow?
@BaldGuyDIY
@BaldGuyDIY 4 жыл бұрын
I’m not sure what you mean by xwindow. Do you mean without the exit button?
@giampaologiacopelli8377
@giampaologiacopelli8377 4 жыл бұрын
@@BaldGuyDIYsorry for my english, I asked if pysimplegui runs also in console or only desktop window
@BaldGuyDIY
@BaldGuyDIY 4 жыл бұрын
Giampaolo Giacopelli I couldn’t find a way to have it run from the command line interface. I think the underlying modules it uses require the graphical elements of the desktop environment.
@miz7422
@miz7422 3 жыл бұрын
Sir, can we use a 3.5 inch display for the same application as a 7 inch display?
@BaldGuyDIY
@BaldGuyDIY 3 жыл бұрын
As long as it is HDMI and is recognized by the raspberry Pi operating system as a touchscreen, then it should work the same as what I’ve shown. The window size you use will need to be set to the pixel dimensions of your 3.5” screen, but all the same functionality will exist. Thanks for watching and commenting!
@miz7422
@miz7422 3 жыл бұрын
Will check it out. Thank you so much❤️
@FRDETsdfs
@FRDETsdfs 2 жыл бұрын
PiSimpleGUI looks just as easy to use as Qt. Not sure why someone would use it instead of Qt, which is much more powerful.
@BaldGuyDIY
@BaldGuyDIY 2 жыл бұрын
I haven’t used Qt yet. I just know that for simple layouts especially this is incredibly quick. It’s been a while since I made this video. I could probably have this same interface to this level in 10 minutes now.
@MultiDamnitall
@MultiDamnitall 3 жыл бұрын
hi Sir, could you please show me how to create a desktop file to execute the python script at 10:35?
@fahadnadeem6130
@fahadnadeem6130 3 жыл бұрын
kzfaq.info/get/bejne/mcCRZNJ0uMrGhZ8.html This video will help you
@WederGonzalez
@WederGonzalez 3 жыл бұрын
11:09 How can I start it directly just avoiding the raspberry logo and the screen color (10:50 to 11:08)?
@BaldGuyDIY
@BaldGuyDIY 3 жыл бұрын
I don’t know a way that you can. You can choose to display the logo(splash screen) or you can choose to display the console that prints each process it starts. But either way, it has to run through the boot cycle before it loads the GUI. If you absolutely can’t have anything on screen before the GUI, you’ll probably need to use a microcontroller and touch screen instead, as that won’t have a significant boot time.
@WederGonzalez
@WederGonzalez 3 жыл бұрын
@@BaldGuyDIY So I can add it my own splash screen with my logo?
@BaldGuyDIY
@BaldGuyDIY 3 жыл бұрын
@@WederGonzalez yes, you can with some effort. Search “raspberry Pi custom splash screen” and you should find some help. Just make sure it’s for your version of software.
@WederGonzalez
@WederGonzalez 3 жыл бұрын
@@BaldGuyDIY Thanks a lot!
@paulo.galvao
@paulo.galvao 2 жыл бұрын
@@WederGonzalez yes you can...
@LikeWoz
@LikeWoz 3 жыл бұрын
Is this also possible for the RasberyPi pico ?
@BaldGuyDIY
@BaldGuyDIY 3 жыл бұрын
Thanks for watching and for the question. The Pico is a microcontroller, not a microcomputer, unlike other Raspberry Pi boards. It doesn’t run an operating system the same way, but it uses micropython as a language to control inputs and outputs. It doesn’t have easy interaction with a screen through hdmi like a Pi board, so it’s not possible to use this setup on a Pico.
@dfmayes
@dfmayes 3 жыл бұрын
Don't you need the no_titlebar argument to Window, i.e. "sg.Window(.... no_titlebar=True, ....)
@dfmayes
@dfmayes 3 жыл бұрын
Thanks. Is your code available online ?
@BaldGuyDIY
@BaldGuyDIY 3 жыл бұрын
I don’t have it posted online. But if you send me an email I can send it to you. Brandon@baldguydiy.com
@dfmayes
@dfmayes 3 жыл бұрын
@@BaldGuyDIY That's ok, I was just curious.
@deconsicratedchannel
@deconsicratedchannel 3 жыл бұрын
U like my officer at the army
@cstrombone
@cstrombone Ай бұрын
What did you actually show us? I don't understand the purpose of this video. You kind of missed the most crucial part: Installing PySimpleGUI on raspberry pi. Like, as far as I can find it is not possible to do. So how did you do it and why didn't you think to add that into a DIY video??
Raspberry Pi GPIO - Getting Started with gpiozero
48:40
DroneBot Workshop
Рет қаралды 436 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,5 МЛН
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 22 МЛН
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
00:20
FLIP FLOP Hacks
Рет қаралды 10 МЛН
Викторина от МАМЫ 🆘 | WICSUR #shorts
00:58
Бискас
Рет қаралды 4,7 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 36 МЛН
Python GUI Development With PySimpleGUI
15:15
Real Python
Рет қаралды 1 МЛН
Create Stunning Python GUIs in 10 Minutes With Drag & Drop
11:38
Coding Is Fun
Рет қаралды 40 М.
The TOP 3 uses for a Raspberry Pi!!
12:07
NetworkChuck
Рет қаралды 1,4 МЛН
Tutorial 2 - Deploy Qt touchscreen apps on the Raspberry Pi
14:03
Everything Embedded
Рет қаралды 19 М.
Raspberry Pi Button Input
13:08
BurgZerg Arcade
Рет қаралды 133 М.
Nika loves to eat chicken #cat #cats
0:17
Princess Nika cat
Рет қаралды 81 МЛН
Я обещал подарить ему самокат!
1:00
Vlad Samokatchik
Рет қаралды 9 МЛН
ГЕНИАЛЬНОЕ РЕШЕНИЕ (@fusterdeltiktok - TikTok)
0:18
В ТРЕНДЕ
Рет қаралды 8 МЛН
🎀 strong challenge with @RezoHulk #challenge #funny #foryou #gym
0:30
The poor girl couldn't take care of the cat 😢😔
0:38
Ben Meryem
Рет қаралды 11 МЛН