GUI and GPIO on Raspberry Pi

preview_player
Показать описание
While experimenting with Raspberry Pi, I cobbled together examples for the Raspberry Pi's GPIO module for Python and the Tkinter modules for creating graphical user interfaces with Python. I got them working together pretty easily.

The example here might be a bit underwhelming, but I'm really excited about the potential for something like this. Having access to a board that can drive a monitor-based interface in addition to GPIO means simpler designs for projects that need both. Best of all, it can all be done in one file of code.

Рекомендации по теме
Комментарии
Автор

That's something I like about the Raspberry Pi compared to an Arduino. It has more processing power and can generate video which means you can merge GUIs with the real world through it's GPIOs. Good job Sir.

prehistoricBanana
Автор

Yeah I've toyed around with composite on an Arduino but the Raspberry Pi allows you to do everything an Arduino can do but with more power which means it can display visuals and process sensors and activate motors for example.

prehistoricBanana
Автор

Once I gave up using X Windows, I started appreciating it a lot more. It ain't a speed demon, but it'll handle running a few servers pretty well.

neuromonkey
Автор

Once I finally got a proper monitor for it, I really started to like it. I was using my living room TV before, which was a big pain. Overall, I've had a lot of fun experimenting with it and I'm cooking up some interesting projects that use the TV and the physical GPIO pins. Plus, for ~$40, you can't beat it.

MattRichardson
Автор

YES!! Just what I was looking for. The sky is the limit now. Thanks a whole bunch.

marcusperry
Автор

To Owais Bin Asad,   Incase it never got explained, GUI, is an acronym (shortening several words down to single word made of the first letters), is short for Graphical User Interface.   A windows or UNIX/Linux graphical control panel.  (Ironic, Linux itself is a acronym for "Linux Is Not UX", (not UniX) )  Most GUI's are either a set graphical interface to the operating system used, or HTML (Hyper-Text Mark-up Language) which can be viewed with a browser.  Hope this clears things up.

gelfling
Автор

Great work! I might have to check in to this! So far I havent really done much with my PI! But I guess you could use the Pi as a microcontroller and use it to do anything like an LCD screen? Very interesting!

KSITREVS
Автор

To run things as root, type sudo before the command. So instead of "python rpi-gui-gpio.py" it's "sudo python rpi-gui-gpio.py"

MattRichardson
Автор

I don't suppose you have any sort of writeup or tutorial on this? I put together a little program in java using pi4j to control the gpio but I've having problems getting a working gui to accompany it.

I would definitely try to recreate it using python if I could find a guide somewhere to show me how to use python gui + gpio control.

Good video btw, shows what I want to achieve can be done.

bllbg
Автор

Apologies. I just clicked on the show more above and you've even linked your code, didn't see that, thank you.

bllbg
Автор

There are GPIO libraries for a lot of different languages, including (I believe) C/C++.

MattRichardson
Автор

Oh no, there are a ton of languages you can use. I've just been enjoying using Python lately.

MattRichardson
Автор

[machine translation]
2 question:
-What is the maximum frequency for the filing of the relay can give GPIO (to the computer in the car replaced the injector control. =D)
-Can it recognize the variable resistance? for example, with the temperature sensor (changes in the resistance) without unnecessary devices (except for parallel connection of resistors to fit)

zveno
Автор

Hey, sorry for refreshing old video, but i have one question about raspberry and protoboard. Don't u need any resistor when u use GPIO? When its nesesery, when isnt?

krb
Автор

Sorry for silly question. Do you have to use Python with the Raspberry Pi?

CognosSquare
Автор

i tried it and i get the error message : no access to dev/mem, try running as root. how do you overcame that error

williamwijaya
Автор

What about C/C++? Have good and easy GPIO libraries?

xanokothe
Автор

Hey, what program are you using in Raspberry Pi for the Python? IDLE?

deej
Автор

what is your backroung besides make writer how do you know how to do this

srzh
Автор

Its G-U-I not gooey. But i think you know this.

wiinick