The Raspberry Pi Thread [6]


  1. Posts : 5,702
    insider build 10586.3 win10 pro 64
       #441

    yea,just read a few , wondered why you were your sluring you words
    alphanumeric said:
    Just poured myself a drink of Gin. And started poking around on the forums.
      My Computer


  2. Posts : 15,024
    Windows 10 IoT
    Thread Starter
       #442

    Did a little tinkering today. I added a backlight on off switch to my dual display Proto Zero. I had intended to do it when I built it but got sidetracked. I also added a shutdown button to my i2c Proto Zero. Something else I had forgotten to do when I built it. I had a boot up button wired to GPIO 3. Now I have a shutdown button wired to GPIO 5. I can use a dtoverlay in my config.txt or call up the shutdown in my running python file. It makes life so much easier when its running headless.
      My Computer


  3. Posts : 5,702
    insider build 10586.3 win10 pro 64
       #443

    A OK. lol ,,,,, my meds I take for confusion were working untill I read this ,head spinning. I'll have to go gaze at the stars to clear it out . I got a Explorer HAT Pro today ,been going to buy one for a year or 2 now, next step is to make use of it .. also got something for my Daugher ,Grow HAT Mini Grow Kit , Herb Pack Includes, and for some reason I orderd the the grow kit for myself , I also got a Monks Makes sensor board for MicroBit . So Im good for a couple of years Now :)


    alphanumeric said:
    Did a little tinkering today. I added a backlight on off switch to my dual display Proto Zero. I had intended to do it when I built it but got sidetracked. I also added a shutdown button to my i2c Proto Zero. Something else I had forgotten to do when I built it. I had a boot up button wired to GPIO 3. Now I have a shutdown button wired to GPIO 5. I can use a dtoverlay in my config.txt or call up the shutdown in my running python file. It makes life so much easier when its running headless.
    Grow – Grow Kit + Chilli Pack
      My Computer


  4. Posts : 15,024
    Windows 10 IoT
    Thread Starter
       #444

    One thing that bugged me with the Breakout Garden hat was the two SPI slots one behind the other. If you plug two LCD displays in the back one is blocked by the front one. As a fix for that I wired up two of the 0.96 160 x 80 LCD breakouts side by side on a Proto Zero. I can then just plug it into a pHat Stack or Mini hacker board. Grounding the backlight pin turns the backlight off. That's the switch I added, it grounds both backlight pins and turns both display off.

    On a second Proto Zero I have an RV3028 RTC and a BME280 wired up to i2c. And space for two more i2c breakouts. On that I had wired up a boot up button that just grounds GPIO 3 when pressed. Yesterday I added a second button to do a shutdown. You can't use GPIO 3 for that if i2c is enabled, so two buttons are needed. Pictures are here of the two Proto Boards showing just the one shutdown button. Before i added the others.
    My Enviro (code) based Weather Station Build - Projects - Pimoroni Buccaneers

    I have a couple of the Explorer pHats, I used them on my Rovers. They can drive two motors independently, and I wanted something small I could just plug into a Pi Zero.
      My Computer


  5. Posts : 5,702
    insider build 10586.3 win10 pro 64
       #445

    alphanumeric said:
    One thing that bugged me with the Breakout Garden hat was the two SPI slots one behind the other. If you plug two LCD displays in the back one is blocked by the front one. As a fix for that I wired up two of the 0.96 160 x 80 LCD breakouts side by side on a Proto Zero. I can then just plug it into a pHat Stack or Mini hacker board. Grounding the backlight pin turns the backlight off. That's the switch I added, it grounds both backlight pins and turns both display off.

    On a second Proto Zero I have an RV3028 RTC and a BME280 wired up to i2c. And space for two more i2c breakouts. On that I had wired up a boot up button that just grounds GPIO 3 when pressed. Yesterday I added a second button to do a shutdown. You can't use GPIO 3 for that if i2c is enabled, so two buttons are needed. Pictures are here of the two Proto Boards showing just the one shutdown button. Before i added the others.
    My Enviro (code) based Weather Station Build - Projects - Pimoroni Buccaneers

    I have a couple of the Explorer pHats, I used them on my Rovers. They can drive two motors independently, and I wanted something small I could just plug into a Pi Zero.
      My Computer


  6. Posts : 15,024
    Windows 10 IoT
    Thread Starter
       #446

    Pictures of my buttons etc are here. My Pi Zero Hacks - Raspberry Pi - Pimoroni Buccaneers
      My Computer


  7. Posts : 5,702
    insider build 10586.3 win10 pro 64
       #447

    wow ,very nice and neat and tidy ..I like the black theme :)
    alphanumeric said:
    Pictures of my buttons etc are here. My Pi Zero Hacks - Raspberry Pi - Pimoroni Buccaneers
      My Computer


  8. Posts : 15,024
    Windows 10 IoT
    Thread Starter
       #448

    Thanks, its not easy with the limited space on those Proto Zero's. You have to get creative some times to fit it all in and not look messy in the process. It's very satisfying when it works though. The dual mini LCD's will work with any of the Enviro code with no edits. Breakout garden stuff too. They all use SPI 0. It's the equivalent of the Breakout Garden Hat, just side by side instead of one behind the other.
      My Computer


  9. Posts : 15,024
    Windows 10 IoT
    Thread Starter
       #449

    Mulling over how I'm going to send my Outside Weather Station Windspeed etc data to my indoor Pi. Over WIFI is what I'm thinking. I really want to go with a Micro Controller for outside. I want something that won't get messed up by a power failure. So its Arduino or PICO.
    I have an Arduino MKR 1000 that does WIFI sitting here doing nothing. So I installed the Arduino IDE on my Pi 400, the Linux Arm 32 bit version. Had to run the installer from command line. It detected my board just fine, and auto installed some extra bits for it. Still showed Arduino Uno in lower right corner though? I had to dig down through the Board Manager to change it. So I finally had it all setup and working in the IDE. Started looking for code for my bits and bytes and didn't find much of anything. Decided to put that on hold and switch to a PICO.
    At least with that its Micro Python of Circuit Python, instead of C. I don't have the PICO Wireless Pack but I'll order one with my Weather station stuff for Christmas. That's the plan anyway. I started with Micro Python, the Pimoroni uf2. Turns out my VEML6075 UV sensor isn't supported in that image. BME280 is though, and the example for that works just fine. I can find VEML6075 libraries for Micro Python, I just have no idea how to add them to the UF2 file. Looks like I have to make my own file with cmake?
    Or switch to Adafruits Circuit Python, they have libraries for both sensors. I'll be trying that out some time today. The wireless "shouldn't" be all that hard, its an esp32 chip, tons of those out there. Famous last words lol.
      My Computer


  10. Posts : 15,024
    Windows 10 IoT
    Thread Starter
       #450

    Was tinkering with one of my Sense Hats yesterday. Old Pi A+> Proto Hat with a DS3231 RTC > Sense Hat It was as near as I can remember running that THP.py file on boot up. I didn't like the readings it was giving though especially Humidity, it was way high compared to any other setups I had running with BME280's. So I added a spare BME280 I had to the Proto Hat and edited the code. It runs fine with no errors from Thonny. I can also run it from command line.
    python3 /home/pi/THP.py
    Will not run on bootup from crontab though? And I have no idea why? I even tried sudo crontab -e.
    @reboot python3 /home/pi/THP.py &
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:36.
Find Us




Windows 10 Forums