Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schematic Clarification Please? #1

Open
owlyowl opened this issue Sep 11, 2024 · 24 comments
Open

Schematic Clarification Please? #1

owlyowl opened this issue Sep 11, 2024 · 24 comments

Comments

@owlyowl
Copy link

owlyowl commented Sep 11, 2024

image

Hi I'm trying to get some clarification on a few things please:

  1. What type of switch are you using there?
  2. Are the two 3.3v sources coming from the Pi GPIO or a separate source?
  3. What is the symbol with the two arrows as it could be an earth or a diode of sorts?
  4. What role do the resistors play in the 3.3v feeds please and why are there two on the one GPIO pin?
@decodeais
Copy link
Owner

decodeais commented Sep 11, 2024

D1 is the power led red green , how you like
The normal push button:
closed if you press it
open when you do not
The values of the resistors are not very important. Double or half should work too.
Of cause I use the 3.3v from the header.
R1 was the pull up. I left it to show the value if you don' use the optional power led.
R2 is to limit the Basis current if you put the gpio27 to high level by accident. If you are Shure that you never do it you can connect it directly.
For the led you need a lower value.
The dammed schematic app had only this sign for ground.

@owlyowl
Copy link
Author

owlyowl commented Sep 11, 2024

D1 is the raspberry Pi's power LED or a separate one please?

So a latching push button like so?
https://au.mouser.com/ProductDetail/E-Switch/TL2285EE?qs=7Bi7Dg8SEnxrzf04kzdLHA%3D%3D&mgh=1&vip=1&utm_id=17753636782&gad_source=1&gclid=CjwKCAjw_4S3BhAAEiwA_64Yhp31UdLwBvHMZsaU8Y8-kn1yJJhVytmc03WfOr9H4LwW2G9b10gjPBoCAgAQAvD_BwE

And then where does the D1 led ground itself sorry? Sorry for the newbie questions

@decodeais
Copy link
Owner

The negativ pin is connected the gpio27.
The switch is an double switchover. It is perfekt for the solution on the i2c bus pins. You need only the cheapest version: on contact closed when pressed. You can use the changeover switch to, but then it's a little more difficult to find the to pins which are closed when you press it

@decodeais
Copy link
Owner

decodeais commented Sep 11, 2024

Don' t forget to order the knob for the button. Then it looks much better. It has always to be ordered separately. My englisch so god so it last sometimes to check the vocabulary.
Hint for newbies: the led has one longer wire, this is plus.
When you already cut it you can see the bottom is not complete roun. The flat edge is minus.

@owlyowl
Copy link
Author

owlyowl commented Sep 11, 2024

Do you have any examples of components for the button/led etc?
RaspberryPi-StartUpShutdown.zip

I started a Kicad with both options you outlined, one with LED and one without.

I was wondering if you can use another pin other than 27 and 17 because I'm using them for a screen..

@decodeais
Copy link
Owner

decodeais commented Sep 11, 2024

You can use every pin. But don't forget to change the number in the initialisation. The cheapest way is to buy a kit for arduinolink to example
I think you find something similar in the uk.

@owlyowl
Copy link
Author

owlyowl commented Sep 12, 2024

Sorry is the switch type

  1. Momentary?
  2. Latch switch please? - Push and stays in.. push again, springs out?
    or like this:

@decodeais
Copy link
Owner

It should close only while you press. For me a push button always close or open directly. The version that stays in the last position would be a switch. A push button has no memory Funktion inside, but I am no native speaker.

@owlyowl
Copy link
Author

owlyowl commented Sep 12, 2024

It should close only while you press. For me a push button always close or open directly. The version that stays in the last position would be a switch. A push button has no memory Funktion inside, but I am no native speaker.

Like an arcade machine button?

@decodeais
Copy link
Owner

decodeais commented Sep 12, 2024 via email

@owlyowl
Copy link
Author

owlyowl commented Sep 12, 2024 via email

@decodeais
Copy link
Owner

decodeais commented Sep 17, 2024

I tested a little change in the schematic.
You do not have to use the run test pad. It works with the gpio3 too. I wanted to be Shure that I have a working i2c bus til the end, because I wanted to have access to the display in the shutdown Sequenz to clear the display. If you are interested in my little project you can look to my WebRadio repository .

@owlyowl
Copy link
Author

owlyowl commented Sep 24, 2024

image
PXL_20240924_111947867 MP
PXL_20240924_111715100 MP
PXL_20240924_111710165 MP

I have wired this up and tried but the LED never turns on and shutdown never initiates.

@decodeais
Copy link
Owner

decodeais commented Sep 24, 2024 via email

@owlyowl
Copy link
Author

owlyowl commented Sep 24, 2024 via email

@decodeais
Copy link
Owner

If you have initialized the shutdown pin. It is enough to touch it with a wire to ground.
If it does not work there is a typo in the initialisation ore a mismatch with the pins. Did you check the switch with a multimeter?

@owlyowl
Copy link
Author

owlyowl commented Sep 24, 2024

Yes GPIO24 will shut down perfectly bringing it to ground with just it and the momentary push button.

If I don't involve having the RUN pin plugged in or the BC337.

@decodeais
Copy link
Owner

decodeais commented Sep 24, 2024

If the the raspi runs. The voltage at the gpio23 has to be zero to switch of the transistor. Has this output zero volts?
Why did you add D1 ?

@owlyowl
Copy link
Author

owlyowl commented Sep 24, 2024

I removed D1 but yes still no change.. I'll grab my multimeter and test gpio 23

@decodeais
Copy link
Owner

I looked to your breadboard. I think you have placed the transistor wrong. It looks like you connected your pins by your breadboard. Turn the transistor 90° and start connecting the wires.

@owlyowl
Copy link
Author

owlyowl commented Sep 25, 2024 via email

@owlyowl
Copy link
Author

owlyowl commented Sep 25, 2024 via email

@decodeais
Copy link
Owner

I did not like the solution of the double use of the bus pins. I searched a while, then I had this idea, may be it would have been a good solution for old raspi without the wake-up feature. I think I am a little late.

@owlyowl
Copy link
Author

owlyowl commented Sep 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants