I have revised these instructions using Adafruit's newer CircuitPython libraries that also work on Raspberry Pi OS Bullseye - czcams.com/video/lRTQ0NsXMuw/video.html
Thanks so much for your clear explanation of the process. Even a beginner pi user like me was able to make this work. Great to have people like you that take the time to teach us how to do things like this. Amazing!
wonderfull tutorial, made work for the following setup: - Raspberry Pi 4 (8GB) - Ubuntu Server 21.10 (64-bit server OS for arm64 architectures) - Mini-tower case with SSD (NVMe M.2) - I²C OLED Display
Extremely well done! I don't comment on many videos, but this one stands out as exceptional. Comprehensive, accurate, and succinct. Bravo! Thank you!!!!!
Like this video? I love it! This video kept me from going down a crazy rabbit hole trying to figure out why I can't get micropython working and figuring out some random device address while trying to build random files I kept finding... THANKS!!!
I just put together the case and had an easy time doing it and getting the display to work. Problem is that the clear plastic on the fan side has the mini HDMI cutouts too small. Look at the white case as in the beginning of this video. I had to cut out some plastic to get the cord in enough to work. I am using the supplied cord from the Canakit. Tomorrow I plan on cutting it like the white case one. The video signal drops out every so often and had me thinking that a new Raspberry Pi didn't work correctly.. Other than that I really like the case, great job !!
Great success :-) thanks for the tutorial and the documentation. I had a hard time getting the crontab to work :-) my mistake was "sudo crontab -e" as I am used to sudo anything I do on a pi. you could mention that in case you ever do a update of the video.
Great guide it really helped me make the display work. Also I was wondering is there anyway to get the stats display going if I have a SD card with Retro Station on it already?
Some people have tried running it on different distributions with mixed success. If you've got the time to work through the error codes you can probably get it running on most linux distributions.
I wanted a white one sooo bad! But he didn't have any. I like the design with the panels having feet and white case. I'll have to get the design and print my own I guess
I just started learning about the Raspberry PI. I just ordered the case and display. Does it come with the ribbon cable ? And what color is the display ? Every time I watch CZcams I come across more cases and ideas. I can’t wait for this case. Thanks for the videos mate, lol
Very nice instructional again ! I purchased a couple of these and might jump into trying them with a small project. What TIME ZONE are you in Michael ? I'm Eastern Standard Time (EST) - Robert Simpson
Hey MIchael! I've deployed OLED based on your instructions and worked flawlessly. I just have a doubt. On a shutdown, my RP keeps the display lit with stats showing. Is there something I could do on crontab to turn it off on the OS shutdown? Congrats for this great tutorial!
As long as the display gets power it'll continue to display whatever was last received. You could try adding a script to run on shutdown that blanks out the display. Or try connecting the power supply to one of the GPIO pins and turning it off when shutting down - you'd need to look at how much power is being drawn by the display and make sure that the GPIO pins could handle it directly though (otherwise it might need an optocoupler or transistor). I usually just unplug the Pi after using it as the power needs to be cycled to boot it up again anyway (unless you've added a power button)
When checking if the library’s are installed, python-smbus is not available, i2c-tools are installed but when I do the Adafruit one there is an error that says “command errored out with exit status 1” If anyone can help me please reply.
hello! Thanks for detailed instructions! I am having a trouble! at first following your step, everything worked totally fine! but when I updated raspbian, there is no longer anything shown on the display by default. I checked everything! I check whether anything in crontab has been changed, but there was all okay as per your instruction. but still this program does not run at startup! please help!
Everything worked great. We'll, as far as programming the oled anyway. I used a Raspberry Pi Zero W. I tried this with both a 128x64 and also a 128x32 though I had to squish the lines closer together to get all 4 lines on the display. The IP address takes quite some time to show up though. By the way is the BORDER variable supposed to be there? It does not look like it is used anywhere.
That's great, the 128x32 displays work well for more compact case designs as well. The IP address only shows up once it has been allocated on the network, so usually takes a few seconds longer than the other metrics. I think BORDER was used in one of the original scripts to prevent text from running off the edge of the display. It's not being used anymore so you could remove it.
Any chance you can post an update to this ... using the waveshare 1.5 inch RGB OLED for a multi color stats display? I am fighting with the code, but am not a programmer. It would look fantastic on your case!!
Hello! Can anyone help me? Cpu indication does not work. On the original script and on the autor changed script. There: "CPU Load: 0.00 52.3'C" on the oled screen. 0.00 value is not changing. I have Raspberry Pi 4 b 4Gb. Many times I checked this scripts. Sorry for my bad English.
@@MichaelKlements Yes. This script stats.py, from the original Adafruit lirary, do not show me persentage value of CPU Load. It 0.00 on the oled screen, but sometines it may be 1.00 or 2.00 rarely.
What operating system are you running on the Pi? I've never heard anyone have issues with the example script's CPU percentage not working, it's typically the IP address.
@@MichaelKlements The same happens to me. I also have problems with the percentage of charge, it always marks me 99% and charging type c even though it is not connected and with little battery. Also in a while the screen freezes and does not update anything. I have reviewed and have done exactly the same as in your videos :(
I used an Ender 3 V2 3D printer for the case and a K40 laser cutter for the side panels.
Před 3 lety
Hello I have followed the tutorial but white lines appear on my screen. when I start the script it appears that it is shown in the top line but after a short time it disappears. Thanks.
Idea - Is there a text only screen for programming. One that can handle a terminal size resolution but no fancy graphics just very low power but not e-ink. The idea is that code is a function of input also. Switch input device and you feel some inspiration. New ideas.
I’ve also thought about this previously, but I’ve never seen a display like this. I’m also not really sure how it would interface to the Pi, probably using SPI or I2C. People often have terminal displays for PiHole stats etc. and a text display would be perfect for this. Yeah e-ink ones are terrible for typing or text that changes often.
is it possible to put the SCL cable to a different pin? im currently using GPIO3 for a power button but im wondering if I could possibly use a different pin for that as well
Unfortunately there is no easy way to do this, it's one of the limitations of the Pi and the reaosn I don't usually use a power button. The Pi has a second I2C port on pins 27 and 28, you could make use of this instead of the primary port. You'd need to use pull-up resistors on the clock and data pins, change the config file to turn on the port and adapt the code to use it.
Excellent tutorial for a (pi experienced) oled newbie. Just wonder about the CPU indicator. Even all cores running at full speed it shows single digit. So it is not percentage?
@@MichaelKlements Found that cpu percentage can be obtained by installing psutil package and use print(psutil.cpu_percent()) trying to incorporate it to show percentage on the display.:-)
Left a comment on your blog, but no idea if it posted so I'll leave it here. Thanks so much for making this follow up tutorial because I was having a little bit of trouble using the original one you created. I'm new to the world of R-PI and was extremely excited when cases arrived yesterday. Love your case by the way! I immediately got started using your tutorials and I have to say that everything worked great with the exception of the final step. It's probably my fault because I opted to use a direct path to the stats.py file in the example folder rather than placing it and the font file on the home screen. Nonetheless, I cannot get the script to auto run upon reboot. Alternatively, I did try it from the home screen as describe in your instructions and it still did not work. Any idea what could be wrong? The info and path I entered and saved in the crontab file was @reboot python3 /home/pi/Adafruit_Python_SSD1306/examples/stats.py & . Again, as I mentioned, I did try @reboot python3 /home/pi/stats.py & and placed the two files on the home screen, but it still did not work. Please help me figure out what's wrong. Thanks!
Hi Rodney, Thanks for the feedback, it's great to hear that you're enjoying your case! crontab needs to be working in the correct root directory for that command to work. This sometimes fails if you've got other tasks scheduled as well. Do you have any other tasks in crontab or is that the only one? If you try run the command "python3 /home/pi/stats.py" from a new terminal window does it run?
@@MichaelKlements Thanks for getting back to me so quickly Michael. Upon trying the new instructions you provided, i.e. running the command "python3 /home/pi/stats.py" from a new terminal, I quickly realized the problem. I placed the files in the wrong location. They were on the desktop and not in /home/pi directory. UGH! Your tutorial is flawless! Thanks again for helping me figure the problem. Everything is working great now. Off to put together my second case.
As long as the mining software makes the information available in some form you can just modify the display's script to read it and display it. It really depends on the mining software being used.
Thank you for the amazing project! Mine seems to work pretty well. But after a short time the script stops working (the Display freezes). I couldn´t find the cause for this problem. Had anybody else the same expirience?
It might be a communication error that causes it to lock up. Try adding a try, except rule to the communication with the display and see if that helps.
I've made one that displays CPU load on a PC, it would be quite easy to adapt this for the other metrics as well - czcams.com/video/KsSESewvJc0/video.html
hey, do you know how to delay the boot (start up of a pi) have one that mounts a nas as storage but the pi boots up faster than the nas and doesn't auto mount the drive, thanks to load shedding this happens quite often. any help would be appreciated. .. and thanks for the great content so far.
I've never specifically tried to delay the bootup of a Pi. You could try something like this - raspberrypi.stackexchange.com/questions/33037/how-to-add-delay-at-boot Otherwise you'd probably be better off adding a physical delay timer circuit on the power supply to the Pi to only power it up after a few seconds or minutes as required.
RetroPie is missing a number of libraries and dependencies, so you can't just follow these instructions. Some people have told me that they've been able to get it to run on Retropie by working through the errors, but I haven't tried myself.
I'd suggest watching the build video for the case, this one was intended more for the wiring and programming of the display - czcams.com/video/9sb_zuHGmY4/video.html
Hi Michael! I've followed your tutorial to the letter, and I'm presented with the following error when trying to run the stats.py command: Runtime Error: Could not determine platform. Any idea what might be going on? The I2C display is connected and detectable, and the setup went swimmingly up to that point, but won't display anything when I try and run the command.
What is the command you're using to run the script? This usually occurs if the platform you're trying to run the script in either does not exist or is not up to date - python3 in this case
You should be able to get it running, but you'll probably need to install some missing libraries/dependencies. I've never tried it with Home Assistant.
@@MichaelKlements I got the GPIO pins to show up, I'm in the process of trying to get the screen drivers working. I'm amazed I was able to get raspi-config to work on ubuntu
So I've been trying to get this to work for the last two hours, but I absolutely cannot get the display to actually display anything other than loads of dots and gibberish. I'm still on the correct OS (background image is the same as the one in the video), the display is wired correctly (triple checked and even rewired it through a breadboard to be absolute sure), made sure absolutely everything possible was downloaded and updated, the display lights up and animates, and everything else should be fine. However, it's just not working. I'd love any help you can think of (except an OS change, it's a 2gb model and Buster is...... not great for them (it works, but it isn't optimized and the RAM isn't happy with it, based on a couple other Pi creators reviews))
You can get it working but you'll need to add the missing dependencies and libraries. I haven't tried this myself, I just know of others who have tried.
I was so close with the latest 64bit Kali Linux version for Raspberry Pi 4B 8GB then I got the following message. Does anyone know if they have been able to get it to work with Kali? : This script configures your Raspberry Pi and installs Blinka RASPBERRY_PI_4B detected. Blinka Exiting due to error: Sorry, the OS detected was Kali. This script currently only runs on Raspberry Pi OS.
You might get some better answers asking this on Adafruit's (the library owner/maintainer) forums. They should be able to point you in the right direction.
@@MichaelKlements it does not work for me too? Reading package lists... Done Building dependency tree... Done Reading state information... Done Package python-smbus is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'python-smbus' has no installation candidate
another thing, "might be dumb" .. but why don't you make the holes for the ethernet an USB from the back side? and then only the oled will be at the front ...
I guess it’s just personnel preference, I like having the USB ports on the front so it’s easier to plug in devices. I’ve got a version of the case with the ports on the back too.
No way, Hold up!!! The whole box,fan,memory,cords and LED screen. Config.and ready to charge up and basically ready to use?? Is there a warranty,or were up demo how to build it DIY??Cuz I watched two of your vids,congrats btw they're very throughout,clear and educating...... Just one thing you started out with an accent then you went to speak in English but really fast I'm sure a lot to get in the video maybe a little slower for us dummies LOL I'm self-taught uncertain towers and programs. Hopefully I didn't misunderstand your email but you can respond any time thank you better cuz I want One. ...If you could help a struggling ole guy out,it seems like everything I buy breaks before I use it,or only last a very short time. ✌️btw im aka Paxo.
Consider moving the monitor into the next room. Make it a real challenge to see what you're entering on command line. A waste of my time when suffering to resolve this critical issue.
Please this is so out of date you either should update it so that it can be used as a guide again or remove it so that it does not have people totally screwing things up like I have just spent the last couple of hours following this and finding out that its not any point so much has errors in it.. waste of time
anyone know how to get this to work on RecalBox, ive spend the last 6hours or so trying to follow a out of date guide it seems and i cant not get it to work and its a pain in the butt quite honestly
I have this case folks skip over it. It's cheap garbage. On top of that this a terrible instructional video cant even see the code you typing Mr. "By typing in this code here.", I couldn't personally see anything you were doing also mine didnt even have the lil feet this case is a total McDonalds situation. Looks fire on tv, but is crap in person
I have revised these instructions using Adafruit's newer CircuitPython libraries that also work on Raspberry Pi OS Bullseye - czcams.com/video/lRTQ0NsXMuw/video.html
Hey Michael, I get an error 'package 'python-smbus' has no installation candidate. Please help out
@@bharattata try python3-smbus instead, it worked for me
Thanks so much for your clear explanation of the process. Even a beginner pi user like me was able to make this work. Great to have people like you that take the time to teach us how to do things like this. Amazing!
Thanks for the great feedback Hans!
wonderfull tutorial, made work for the following setup:
- Raspberry Pi 4 (8GB)
- Ubuntu Server 21.10 (64-bit server OS for arm64 architectures)
- Mini-tower case with SSD (NVMe M.2)
- I²C OLED Display
Extremely well done! I don't comment on many videos, but this one stands out as exceptional. Comprehensive, accurate, and succinct. Bravo! Thank you!!!!!
Thanks Robert, appreciate the feedback!
Thanks sir you us to make a computer
Like this video? I love it! This video kept me from going down a crazy rabbit hole trying to figure out why I can't get micropython working and figuring out some random device address while trying to build random files I kept finding... THANKS!!!
Work well with my pi B+ model, Thanks for the guide.
Great timings, my oled display would be delivered today only :o
Thank you my case turned out really beautifully, also I love to combine 3d printing and laser cutting.
I just put together the case and had an easy time doing it and getting the display to work. Problem is that the clear plastic on the fan side has the mini HDMI cutouts too small. Look at the white case as in the beginning of this video. I had to cut out some plastic to get the cord in enough to work. I am using the supplied cord from the Canakit. Tomorrow I plan on cutting it like the white case one. The video signal drops out every so often and had me thinking that a new Raspberry Pi didn't work correctly.. Other than that I really like the case, great job !!
that raspberry pi case looks really pretty
Thank you!
@@MichaelKlements will the display make my pi slower?
@@impulsewraith3419 i add to my raspberry pi one oled .this work good without problems
@@lacosadz6519 thanks!
Thanks once again for an really good tutorial.
Thanks Warren
Thank you
Great success :-) thanks for the tutorial and the documentation.
I had a hard time getting the crontab to work :-) my mistake was "sudo crontab -e" as I am used to sudo anything I do on a pi.
you could mention that in case you ever do a update of the video.
Thanks for the tip, I'll include it in the next one.
Mine are similar to white version and put PoE hat on the unit so less cable.
Great guide it really helped me make the display work. Also I was wondering is there anyway to get the stats display going if I have a SD card with Retro Station on it already?
Some people have tried running it on different distributions with mixed success. If you've got the time to work through the error codes you can probably get it running on most linux distributions.
Just purchased a 52pi mini tower case for an old 3b+. Hoping this tutorial works with its oled screen as well.
I wanted a white one sooo bad! But he didn't have any. I like the design with the panels having feet and white case. I'll have to get the design and print my own I guess
There are white ones still available - www.etsy.com/au/listing/1003731463
I just started learning about the Raspberry PI. I just ordered the case and display. Does it come with the ribbon cable ? And what color is the display ? Every time I watch CZcams I come across more cases and ideas. I can’t wait for this case. Thanks for the videos mate, lol
Yes it comes with the ribbon cable as well. The display is white, like the one in the video. Thanks for the feedback and the support!
Thank you so much
This Work perfect
Mucha gracias otra vez
Very nice instructional again ! I purchased a couple of these and might jump into trying them with a small project. What TIME ZONE are you in Michael ? I'm Eastern Standard Time (EST) - Robert Simpson
That's great, thanks for the support Robert! I'm in Sydney Australia, so GMT +10.
Hey MIchael! I've deployed OLED based on your instructions and worked flawlessly. I just have a doubt. On a shutdown, my RP keeps the display lit with stats showing. Is there something I could do on crontab to turn it off on the OS shutdown? Congrats for this great tutorial!
As long as the display gets power it'll continue to display whatever was last received. You could try adding a script to run on shutdown that blanks out the display. Or try connecting the power supply to one of the GPIO pins and turning it off when shutting down - you'd need to look at how much power is being drawn by the display and make sure that the GPIO pins could handle it directly though (otherwise it might need an optocoupler or transistor). I usually just unplug the Pi after using it as the power needs to be cycled to boot it up again anyway (unless you've added a power button)
When checking if the library’s are installed, python-smbus is not available, i2c-tools are installed but when I do the Adafruit one there is an error that says “command errored out with exit status 1” If anyone can help me please reply.
Is there a way to do the same thing with RetroPie or Batocera to show the name of the game, console and other data on this OLED screen?
hello! Thanks for detailed instructions! I am having a trouble! at first following your step, everything worked totally fine! but when I updated raspbian, there is no longer anything shown on the display by default. I checked everything! I check whether anything in crontab has been changed, but there was all okay as per your instruction. but still this program does not run at startup! please help!
I've had this happen on a Pi and it would only start working again once I replaced the crobtab file.
Everything worked great. We'll, as far as programming the oled anyway. I used a Raspberry Pi Zero W. I tried this with both a 128x64 and also a 128x32 though I had to squish the lines closer together to get all 4 lines on the display. The IP address takes quite some time to show up though.
By the way is the BORDER variable supposed to be there? It does not look like it is used anywhere.
That's great, the 128x32 displays work well for more compact case designs as well. The IP address only shows up once it has been allocated on the network, so usually takes a few seconds longer than the other metrics.
I think BORDER was used in one of the original scripts to prevent text from running off the edge of the display. It's not being used anymore so you could remove it.
Any chance you can post an update to this ... using the waveshare 1.5 inch RGB OLED for a multi color stats display? I am fighting with the code, but am not a programmer. It would look fantastic on your case!!
I'll have a look at the display you've mentioned, they generally require a re-write of most of the code
Hello! Can anyone help me? Cpu indication does not work. On the original script and on the autor changed script. There: "CPU Load: 0.00 52.3'C" on the oled screen. 0.00 value is not changing. I have Raspberry Pi 4 b 4Gb. Many times I checked this scripts. Sorry for my bad English.
Does the default script provided in the Adafruit examples folder not work either?
@@MichaelKlements Yes. This script stats.py, from the original Adafruit lirary, do not show me persentage value of CPU Load. It 0.00 on the oled screen, but sometines it may be 1.00 or 2.00 rarely.
What operating system are you running on the Pi? I've never heard anyone have issues with the example script's CPU percentage not working, it's typically the IP address.
@@MichaelKlements The same happens to me. I also have problems with the percentage of charge, it always marks me 99% and charging type c even though it is not connected and with little battery. Also in a while the screen freezes and does not update anything. I have reviewed and have done exactly the same as in your videos :(
@@MichaelKlements I'm using an original latest Raspberry Pi OS, downloaded by Raspberry Pi Imager v.1.6.2
How would i get the disk to display the /dev/sda1 partition?
Wow I really like that case. If you don’t mind me asking…what machines do you use 3D print and cut the side panels?
I used an Ender 3 V2 3D printer for the case and a K40 laser cutter for the side panels.
Hello
I have followed the tutorial but white lines appear on my screen.
when I start the script it appears that it is shown in the top line but after a short time it disappears.
Thanks.
Idea - Is there a text only screen for programming. One that can handle a terminal size resolution but no fancy graphics just very low power but not e-ink. The idea is that code is a function of input also. Switch input device and you feel some inspiration. New ideas.
I’ve also thought about this previously, but I’ve never seen a display like this. I’m also not really sure how it would interface to the Pi, probably using SPI or I2C. People often have terminal displays for PiHole stats etc. and a text display would be perfect for this.
Yeah e-ink ones are terrible for typing or text that changes often.
is it possible to put the SCL cable to a different pin? im currently using GPIO3 for a power button but im wondering if I could possibly use a different pin for that as well
Unfortunately there is no easy way to do this, it's one of the limitations of the Pi and the reaosn I don't usually use a power button. The Pi has a second I2C port on pins 27 and 28, you could make use of this instead of the primary port. You'd need to use pull-up resistors on the clock and data pins, change the config file to turn on the port and adapt the code to use it.
Excellent tutorial for a (pi experienced) oled newbie. Just wonder about the CPU indicator. Even all cores running at full speed it shows single digit. So it is not percentage?
I haven't noticed this on my Pi but I'll test it again and see. What are you using to run all four cores at full speed?
@@MichaelKlements Found that cpu percentage can be obtained by installing psutil package and use print(psutil.cpu_percent()) trying to incorporate it to show percentage on the display.:-)
import psutil
c = str(psutil.cpu_percent())
c_filled = c.zfill(4)
CPU = "Cpu: " + c_filled + "%"
draw.text((x, top+18), CPU + " " + str(temp,'utf-8') , font=font, fill=255)
...did the trick :)
Left a comment on your blog, but no idea if it posted so I'll leave it here. Thanks so much for making this follow up tutorial because I was having a little bit of trouble using the original one you created. I'm new to the world of R-PI and was extremely excited when cases arrived yesterday. Love your case by the way! I immediately got started using your tutorials and I have to say that everything worked great with the exception of the final step. It's probably my fault because I opted to use a direct path to the stats.py file in the example folder rather than placing it and the font file on the home screen. Nonetheless, I cannot get the script to auto run upon reboot. Alternatively, I did try it from the home screen as describe in your instructions and it still did not work. Any idea what could be wrong? The info and path I entered and saved in the crontab file was @reboot python3 /home/pi/Adafruit_Python_SSD1306/examples/stats.py & . Again, as I mentioned, I did try @reboot python3 /home/pi/stats.py & and placed the two files on the home screen, but it still did not work. Please help me figure out what's wrong. Thanks!
Hi Rodney,
Thanks for the feedback, it's great to hear that you're enjoying your case!
crontab needs to be working in the correct root directory for that command to work. This sometimes fails if you've got other tasks scheduled as well. Do you have any other tasks in crontab or is that the only one?
If you try run the command "python3 /home/pi/stats.py" from a new terminal window does it run?
@@MichaelKlements Thanks for getting back to me so quickly Michael. Upon trying the new instructions you provided, i.e. running the command "python3 /home/pi/stats.py" from a new terminal, I quickly realized the problem. I placed the files in the wrong location. They were on the desktop and not in /home/pi directory. UGH! Your tutorial is flawless! Thanks again for helping me figure the problem. Everything is working great now. Off to put together my second case.
That’s great, I’m glad you’ve managed to get it working!
Hello, I make this project, but I want to see same info like disk but for my external drive (/dev/sda1). Can you tell me script? Thank you!
Would love to know how to get it to display other information like hash rate from mining software
As long as the mining software makes the information available in some form you can just modify the display's script to read it and display it. It really depends on the mining software being used.
Thank you for the amazing project!
Mine seems to work pretty well.
But after a short time the script stops working (the Display freezes).
I couldn´t find the cause for this problem.
Had anybody else the same expirience?
It might be a communication error that causes it to lock up. Try adding a try, except rule to the communication with the display and see if that helps.
wonder if its worth having indentations on the top the same shape as the feet on the bottom so they stack on top of each other and wont move around?
I've thought about doing this as a sort of "stack" case arrangement, it would definitely look cool!
what an elegant design !! ..
if you add a PID controller to the fan vs temperature, it would be great :D
That would be great!
Can i do the same thing, except for my pc? Which will show realtime data like cpu/gpu load, ram status or maybe current temperature?
Thanks 🍀
I've made one that displays CPU load on a PC, it would be quite easy to adapt this for the other metrics as well - czcams.com/video/KsSESewvJc0/video.html
@@MichaelKlements Thank you so much man!!! Really appreciate that... ❤️❤️
hey, do you know how to delay the boot (start up of a pi) have one that mounts a nas as storage but the pi boots up faster than the nas and doesn't auto mount the drive, thanks to load shedding this happens quite often. any help would be appreciated. .. and thanks for the great content so far.
I've never specifically tried to delay the bootup of a Pi. You could try something like this - raspberrypi.stackexchange.com/questions/33037/how-to-add-delay-at-boot
Otherwise you'd probably be better off adding a physical delay timer circuit on the power supply to the Pi to only power it up after a few seconds or minutes as required.
@@MichaelKlements thanks much appreciated ill give it stab.
Is this possible to add on a raspberry pi running home assistant ?
You'll probably need to install any missing libraries or dependencies but should be able to get it to work.
Can you do all of this thru just the raspberry lite version or would you need the gui?
You can do it on the lite version as well, you don't need the gui
Could I do it just thru ssh?
Is it possible to get the display working while using recalbox with the pi?
It should be possible, but would probably require some extra steps to get the libraries and dependencies working.
Is posible to use this on Retropie? I tried lots of tutorials and just get the :
ModuleNotFoundError: No module named 'PIL'
RetroPie is missing a number of libraries and dependencies, so you can't just follow these instructions. Some people have told me that they've been able to get it to run on Retropie by working through the errors, but I haven't tried myself.
How is the display mounted ? I can see some brackets but it's not very clear.
I'd suggest watching the build video for the case, this one was intended more for the wiring and programming of the display - czcams.com/video/9sb_zuHGmY4/video.html
@@MichaelKlements Thanks !
Hi Michael! I've followed your tutorial to the letter, and I'm presented with the following error when trying to run the stats.py command: Runtime Error: Could not determine platform. Any idea what might be going on? The I2C display is connected and detectable, and the setup went swimmingly up to that point, but won't display anything when I try and run the command.
What is the command you're using to run the script? This usually occurs if the platform you're trying to run the script in either does not exist or is not up to date - python3 in this case
Hello! i have a pi4, running home assistant, can i do this with home assistant? thanks
You should be able to get it running, but you'll probably need to install some missing libraries/dependencies. I've never tried it with Home Assistant.
Is it possible to also use a rasperby with home assistant installed?
You'll probably need to do some additional setup to get the display to work with home assistant, but you can certainly use the case.
@@MichaelKlements which setups. like in the video ?
followed the method as shown in the video , but didnt work whenever i run the script error popping up
If you are using OS Bullseye then try my revised video
When I launch “ apt-get install python-smbus” I have a “no installation canidate”
Which OS are you running? I've updated these instructions for Pi OS Bullseye recently - czcams.com/video/lRTQ0NsXMuw/video.html
Do you think, with a little fiddling I could get this to work on Ubuntu?
I don't think you'll be able to get the GPIO pins to work but you could give it a try
@@MichaelKlements I will,
@@MichaelKlements I got the GPIO pins to show up, I'm in the process of trying to get the screen drivers working. I'm amazed I was able to get raspi-config to work on ubuntu
So I've been trying to get this to work for the last two hours, but I absolutely cannot get the display to actually display anything other than loads of dots and gibberish. I'm still on the correct OS (background image is the same as the one in the video), the display is wired correctly (triple checked and even rewired it through a breadboard to be absolute sure), made sure absolutely everything possible was downloaded and updated, the display lights up and animates, and everything else should be fine. However, it's just not working. I'd love any help you can think of (except an OS change, it's a 2gb model and Buster is...... not great for them (it works, but it isn't optimized and the RAM isn't happy with it, based on a couple other Pi creators reviews))
Try following the instructions for Bullseye, the newer software for the display is still compatible with Buster as well.
When I start the script I get an error that the module RPi was not found?
Check that you've got all of the libraries and modules installed, there is a link to a written guide in the video description.
will this also work in the retropie OS?
You can get it working but you'll need to add the missing dependencies and libraries. I haven't tried this myself, I just know of others who have tried.
I was so close with the latest 64bit Kali Linux version for Raspberry Pi 4B 8GB then I got the following message. Does anyone know if they have been able to get it to work with Kali? : This script configures your
Raspberry Pi and installs Blinka
RASPBERRY_PI_4B detected.
Blinka Exiting due to error: Sorry, the OS detected was Kali. This script currently only runs on Raspberry Pi OS.
You might get some better answers asking this on Adafruit's (the library owner/maintainer) forums. They should be able to point you in the right direction.
These commands works on Beaglebone as well?
I've never tried a Beaglebone, depending on how stripped down the Linux distribution is, some might work.
@@MichaelKlements Thanks for your reply, it's running Debian distribution.
does this work if you are running ubuntu?
There will probably be a few missing libraries or dependencies that you'll need to install/correct. I haven't tried running it on Ubuntu.
Just thinking about this
sudo apt-get install python-smbus no longer seems to work. Are there any alternatives?
You're probably not entering the correct command, it should still work, try - sudo apt-get install -y python-smbus
@@MichaelKlements it does not work for me too?
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python-smbus is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python-smbus' has no installation candidate
i cant find any examples for 8pin 1.3 oled i2c displays
Try searching for SPI instead of I2C, I think these are the ones you're referring to
@@MichaelKlements the driver defaults to i2c unless you bridge the Spi connections on the back
@@MichaelKlements I actually figured it out I didn’t realize it defaulted to 0x3C when mine is 0x3D
another thing, "might be dumb" .. but why don't you make the holes for the ethernet an USB from the back side? and then only the oled will be at the front ...
I guess it’s just personnel preference, I like having the USB ports on the front so it’s easier to plug in devices. I’ve got a version of the case with the ports on the back too.
@@MichaelKlements can you plz share the link with the one with ports on the back?
Thanks 🌹
@@MichaelKlements found them, plz ignore
can someone send the completed script because ive tried this and its not working :(
Which part isn’t working?
How much is this little computer tower, totally??? Thank you
Probably around $100 for all of the parts and materials, depending on which Pi you get.
No way, Hold up!!! The whole box,fan,memory,cords and LED screen. Config.and ready to charge up and basically ready to use?? Is there a warranty,or were up demo how to build it DIY??Cuz I watched two of your vids,congrats btw they're very throughout,clear and educating...... Just one thing you started out with an accent then you went to speak in English but really fast I'm sure a lot to get in the video maybe a little slower for us dummies LOL I'm self-taught uncertain towers and programs.
Hopefully I didn't misunderstand your email but you can respond any time thank you better cuz I want One.
...If you could help a struggling ole guy out,it seems like everything I buy breaks before I use it,or only last a very short time.
✌️btw im aka Paxo.
long live klements!!!
8:52 "Inverted commas", huh? 😂
Try "single quotation marks".
Or just 'single quotes'
michael klement,ur fakin COOL DUDE !!!
Thanks Bronx!
Has been grounded
i hate when something is DEPRECATED in 5 month...
Consider moving the monitor into the next room. Make it a real challenge to see what you're entering on command line. A waste of my time when suffering to resolve this critical issue.
Please this is so out of date you either should update it so that it can be used as a guide again or remove it so that it does not have people totally screwing things up like I have just spent the last couple of hours following this and finding out that its not any point so much has errors in it.. waste of time
ok my bad I only just saw above after I posted (sad face sorry)
anyone know how to get this to work on RecalBox, ive spend the last 6hours or so trying to follow a out of date guide it seems and i cant not get it to work and its a pain in the butt quite honestly
I have this case folks skip over it. It's cheap garbage. On top of that this a terrible instructional video cant even see the code you typing Mr. "By typing in this code here.", I couldn't personally see anything you were doing also mine didnt even have the lil feet this case is a total McDonalds situation. Looks fire on tv, but is crap in person
i bought one. mine was pretty nice.
Check the pull request in your repository: github.com/mklements/OLED_Stats
I've merged the pull request, thanks for your work on this!