Fullscreen Raspberry Pi GUI (HMI) Using PySimpleGUI

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • 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

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

  • @ivanrojas1475
    @ivanrojas1475 2 года назад +7

    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!

  • @DrFailov
    @DrFailov Месяц назад

    GUI Framework with licensing, expiration date and no option to distribute complete app other users? So... thank you, but no.

  • @cstrombone
    @cstrombone 3 месяца назад

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

  • @salomonbeneitoliva6714
    @salomonbeneitoliva6714 2 месяца назад

    How can I install pysimplegui on raspberry pi 4. I am not able to install it

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

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

    🎉🎉🎉 awesome video, keep it up.

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

    Great work

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

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

    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.

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

    Don't you need the no_titlebar argument to Window, i.e. "sg.Window(.... no_titlebar=True, ....)

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

  • @matt-on5yl
    @matt-on5yl 10 месяцев назад

    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.

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

    Im still learning but could you use this with OpenPLC on an RPi?

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

    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 года назад +1

      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.

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

    Hello, just some feedback. You should include links and code within the description.

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

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

    Thank you......Great

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

    is there a place to download your code?

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

    How do you preview pi camera image in gui box?

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

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

    What version of Python did your Pi come installed with? Did you upgrade the Python version?

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

      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 4 года назад

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

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

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

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

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

    Great work, keep it up

  • @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 года назад +1

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

  • @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 года назад

      ruclips.net/video/cZa1oCSdbUk/видео.html
      This video will help you

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

    thank you boss . it worked! just what i needed

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

      Thanks for watching! Glad it was helpful.

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

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

    Great job

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

      Thanks! And thanks for watching!

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

    U like my officer at the army