martinwoodward / dasdeployer Goto Github PK
View Code? Open in Web Editor NEWRaspberry Pi powered manual release approval gate for Azure Pipelines. Mit viele blinkenlighten
License: MIT License
Raspberry Pi powered manual release approval gate for Azure Pipelines. Mit viele blinkenlighten
License: MIT License
Martin suggested on Twitter I open this up as an issue to track and for other people to see them as well.
I'm not sure exactly how the Pi is being powered. I'm not sure if you're running a +5v from the PSU to the 5v HAT pin on the Pi, or running the +5v into your perfboard, and letting 3.3V to 5V shifter board convert that to 3.3V to power the Pi, or both? Looking at the pictures from the Ignite presentation (Slide 21) it looks like there are a couple of wires going into the PSU and (other than the mains input) they all look to be on the 5V terminals, but I can't tell from the picture where they all go or even if they're all being used. It also looks like no matter what there's +5v going into the perfboard but no ground coming out, so it's being grounded via the Pi, so the Pi has to be connected to the ground on the PSU from somewhere? I've been able to power the Pi by plugging the +5v and ground from my PSU into the 5V and Ground pins on the Pi respectively. My understanding on the 5V rail on the Pi is that all the 5V is connected, so once you're running power into the 5V of the Pi, the "external" 5V going into the perf board can either come directly from the PSU or from the other 5V pin on the Pi, electrically there appears to be no difference.
Another question with the Toggle switches, I thought this would be relatively simple and I'd be able to figure it out myself and I mostly did, but apparently these switches are pretty common and also not well documented, so lots of people smarter than me have had some problems with them. I went with a different model than what was recommended but it looks like the leads are labelled the same way. I attached the top lead with the ground symbol to a ground terminal, the positive lead to IO12 (the "dev" switch led in the code) and the remaining lead (looks like a headlight? I can't find any reference for what that symbol means) to IO16 (the "dev" toggle in the code). Once I had it wired up, I was able to go to a Python terminal and initialize IO12 as a light and turn it on and off (once I'd put the switch in the On position) and initialize IO16 as a button and read when it was pressed (flipped on) and released (flipped off). Though somehow when it was flipped off there LED was faintly on, though not as bright as when the switch was flipped on and the LED properly turned on. As if a little bit of current was flowing through from the switch detection. So I'm wondering if your switches are faintly lit when they're off, or if I reversed IO12 and IO16, or if the code is dealing with this condition somehow? Played with this again, I was right that the positive terminal goes to 12 and the lamp terminal goes to 16, and I see in the code that you initialize the switch with the pull_up off, which prevents the faint glow even when the LED is off.
Any update on the hardware diagram/images?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.