Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [switches]

Use this in reference to hardware devices which are used to connect networked devices together. Switches are distinct from hubs because they direct traffic only to the intended port instead of just replicating all traffic on all ports. They are used to reduce network contention.

-1
votes
0answers
17 views

Raspberry Pi + L293D to switch 12V solenoid valves

I am porting an Arduino project to Raspberry Pi. On the Arduino I switched two 12V solenoid Valves with the help of a L293D IC. It worked perfectly. Now I am porting this system to a Raspberry Pi. ...
0
votes
3answers
45 views

Raspberry Pi 3 breadboard momentary switch not being recognized (using breakout T Cobbler)

Here is an image of what I've been trying to achieve, which is that when the momentary switch is being pressed, it'll print out "Button Pressed" in Python using a little script. The problem is that ...
0
votes
0answers
22 views

raspberry multiple magnetix switches

I have a Pi 2 and I would like to monitor the state of 3 magnetic switches. All of them are in close distance, no more than 3m of cabling for each one of them. How can I connect them to monitor their ...
0
votes
0answers
96 views

Connect raspberry pi3 to PLC with switch

I want to connect RPi3 to PLC with network switch to communicate by modbus protocol (RPi as a server and PLC as a client). without network switch the connection works fine, but when a network switch ...
0
votes
3answers
224 views

Turn on and off 5V to 12V Relay

I want to use my Raspberry Pi to turn on and off a 12V current for a certain amount of time. I've read a lot on this forum and I've understood that the 5V GPIO Pin is... Not GPIO, meaning that I ...
0
votes
2answers
53 views

Is there a way to control the power output from raspberry pi3?

I'm new to electronics and I'm thinking of building a small racing car. I have this toy car that has a DC motor and a servo motor to control the direction of the car. My plan is to write some software ...
0
votes
2answers
138 views

Raspberry PI Relay power motor [closed]

Does anyone happen to have a similar example for a python code when pressing a button a relay is turned on which is powering a motor to open a gate for 5 seconds and then closes by giving a signal to ...
3
votes
1answer
128 views

Compatible POE switches for PXE?

It seems that my Raspberry PI 3B is very picky about which switches it works with when booting using PXE. When I connect the PI to my regular non-POE switch, PXE boot works fine. When I connect it to ...
-2
votes
1answer
25 views

Can I use bell switch with Raspberry Pi?

I'm building a thing and I wanna use some nice looking buttons in it. I found some bell switches like this that look pretty nice. The question is, do these work like normal switches with my Raspberry ...
0
votes
1answer
141 views

GPIO switch interrupts work just once?

i have this strange problem with interrupts. I use GPIO switches to change a variable that defines what my code is doing. As soon as one of those interrupts worked once, none of them workes anymore. ...
1
vote
1answer
118 views

Wiring a SNES Controller to pi3 gpio or tactile switches

I'm looking to build a super pi boy, in the original they use tactile switches. However, I'm not sure how to wire the tactile switches and make them work as a x b y up down left right etc. I'm also ...
0
votes
1answer
95 views

Physical Computing - making a switch

I am following the physical computing with python tutorial from here: https://projects.raspberrypi.org/en/projects/physical-computing I have created a python file that contains the following: from ...
0
votes
2answers
48 views

Validate your circuit [closed]

I'm a newbie to raspberry pi build a small circuit using a switch and capturing the input of the switch if I press it. After the circuit been designed I dont't its working as expected. Is there a way ...
1
vote
5answers
5k views

Controlling Switches from both Raspberry Pi relay & Manual [Home Automation]

I am currently working on Home Automation Project with Raspberry Pi, I am using 8 channel relay board for this, I can control switches over relay easily. But I want to operate them with pre-existing ...
0
votes
1answer
741 views

Switch on an ATX power supply with Raspberry Pi 3B (ATX no for Raspberry Pi power supply)

My advice request is regarding an arcade machine. Now I have it running with a Dell desktop. However I want to switch to Raspberry Pi as I'm tired of managing all the emulators and realized that using ...
1
vote
3answers
488 views

1-Wire Button or switch?

For an application I am currently developing, I need to be able to get the status of a button (pressed or not pressed) or a switch (which can be considered a button in some way). While I could ...
0
votes
1answer
121 views

Turning on-off-on-off switches to normal switches and integrating with GPIO [closed]

I have the following on-off-on-off button that I purchased from Adafruit for use with my Raspberry Pi 1 Model A. I'm trying to "bypass" the "on-off-on-off" functionality, and just make it so that its ...
1
vote
1answer
577 views

Ip switch by Raspberry Pi

I have an interesting question for you. I search several stack forum to find an answer but I could not able to find anything completely related. I have a rpi and I am using this device as sensor data ...
0
votes
1answer
246 views

Toggle Switch Help

I'm trying to connect this Toggle Switch to my Pi But I can't seem to get any input off it, It's connected to a GPIO pin and ground like I've done with Push Buttons in the past but it just doesn't ...
0
votes
0answers
16 views

How to monitor the available bandwith without impacting an already running stream?

I have a RTP stream called 'X1' running from a Pi to a Linux PC. At the same time I want to create more streams, for example X2, X3 e.t.c... Depending on the available bandwidth, I would like to ...
0
votes
1answer
295 views

Reed switch 3m away using a telephone cable (AWG 28) [closed]

I am a software engineer so my electrical engineering skills are very lacking. I have 6 questions total in this jumble of text that I am trying to solve. If there are general concepts of EE that I ...
0
votes
1answer
453 views

Raspberry Pi - Press for on / Press for off switch

I've begun tinkering with using electronics and am also new to using Python. I was wondering if someone could help me please? What I'm trying to achieve is to use an on/off switch to run a motor - ...
-1
votes
2answers
131 views

Traditional Light Switch Triggered by RPi?

Does anyone know of a light switch which can be controlled using the RPi and also manually. Assuming that the RPi sends a signal thru a relay which connects to the light switch. The switch will turn ...
-3
votes
1answer
501 views

GPIO pins available for switches

Among all the 40 GPIO pins, how many of them are available to connect a switch for on-off information? I counted more than 24 GPIO_* connections here, but are they all available via Python? import ...
1
vote
1answer
1k views

Multiplexing 20 buttons into the RPi GPIO

I have 20 microswitches like this: How would you wire them to the RaspberryPi's GPIO, using multiplexing techniques? PS: here is a related discussion about multiplexing but it's theoritic and doesn'...
0
votes
2answers
303 views

How to Know a light turned ON by physical switches or through raspberry pi

I'm Working for Home Automation system through raspberry pi, I'm turn on/off lights and A/C through Raspberry pi(build application of web, to control lights/AC) either case AC switched on with ...
0
votes
1answer
236 views

Xiaomi MiKey in 3.5mm port

I have bought a Xiaomi MiKey which enables me to trigger events with my mobile phone. It is a 3.5mm jack with a button, you can configure the button to do whatever you want with an app or you can ...
0
votes
1answer
129 views

Aten US424 USB switch and Raspberry Pi 3

I bought a USB switch, an Aten US424. It works perfectly on every computer but not on my Raspberry Pi 3 with Retropie. How can I solve or at least troubleshoot the issue?
1
vote
4answers
2k views

How do pull-down resistors work?

I am using the BCM-notation for the nodes of the GPIO. Consider the following situation. node 1 (3,3V) is connected to a switch-key the switch-key is connected to node 25 via 1 kOhm node 25 works as ...
1
vote
1answer
4k views

Wiring a 3 pin toggle switch to Raspberry Pi 3

I have this small 3 pin toggle switch - just toggles left and right - it has its three pins aligned left, center and right. No datasheet for it - not sure where it came from - most likely a starter ...
0
votes
2answers
703 views

Toggle Switch for Flight Simulator

I want to built a custom 5 toggle switch controller for my flight simulator that is running on my Windows 7 pc. I have some programming experience but I am not sure where to start. Basically I would ...
-1
votes
1answer
467 views

Physical on off switch to digital

I have a raspberry pi 2 model b and I am trying to build a digital on of switch, which means that I would like to get rid of this physical one ( Currently it controls a police type flashing light) ...
4
votes
1answer
1k views

Using a relay to bypass a button

I'm using a relay to bypass a button thats connected to a Raspberry Pi. Code works fine, relay switches fine, and if I connect the 2 wires that bypass the remote it works fine too. I cannot figure ...
3
votes
2answers
9k views

How To Switch On/Off A Circuit using GPIO

I have a simple circuit that runs on 5 volts. Let's just say for simplicity that it is a circuit with an LED that lights up when a push button is pressed. The problem is that it has a push button ...
2
votes
2answers
738 views

Air pressure switch for balloon

For a demo that I want to prepare I need a pressure switch (pressure sensor) that regulate the pressure inside the balloon. The schema is the following: balloon inflated by an air compressor, ...
4
votes
3answers
2k views

How can I add an On-Off switch to my Raspberry Pi 2

I want to add a on/off switch to my pi 2 to correctly shut the pi down This is the switch I want to add: Edit: moved from a link to be included below: This guy in a Raspberry Pi kik group made this ...
0
votes
1answer
579 views

How can I send the same PWM output to multiple connections?

For a update to a small robot I am doing, I am controlling a robot using the Pi. This works very well but I would like to add more precise control, using PWM on the H bridge that controls the motors, ...
2
votes
1answer
382 views

Understanding how to wire a component to a pi, COM-00097 Switch

I'm new to stackexchange and also to the pi. And i'm trying my first project. I was wondering how to wire three of these COM-00097 Switches to a Raspberry pi to make it output a different message when ...
0
votes
2answers
592 views

Number of maximum inputs i can get on a Raspberry pi

I'm relatively new to the rasperry pi but not so to Python programming. So i'm mostly new to the electronics side of the story. I'm looking to build a bass midi controller. My idea was to have one ...
0
votes
0answers
2k views

Can I use I2C to connect multiple Arduinos with Wireless Connection

I am very new to stackoverflow and new to using raspberry pi and am in the process of learning how to use it properly. I am currently working with a partner on a project that requires a wireless ...
0
votes
1answer
727 views

Help with a python script using pull up resistors and long presses of momentary switches

What I'm trying to achieve is to use GPIO pin 5 (BCM) on my raspberry pi b+ to receive input from a momentary switch and in response take specified actions. The actions will differ based on how long ...
6
votes
6answers
15k views

Reed switch wiring

Working my way through a garage door project. I purchased a few of these but I'll be danged if I can find a consistent answer on how they're wired to a Rpi. My thought was just start hooking it up ...
0
votes
2answers
810 views

Control physical switch with raspberry pi and read the state of the switch

Hello i have a lamp thats opens and closes from a switch. I want to add the functionality to open and close it from both raspberry pi and switch. I read in some posts to add a relay with multiway ...
0
votes
1answer
1k views

Multiple wireless magnetic reed switches [closed]

I am trying to use my Pi to monitor a flat (temperature, humidity, door bell, windows and doors, camera, ...). What matters most to me at the beginning is to check whether doors or windows are opened ...
1
vote
0answers
373 views

Light an LED in parallel with trigger switch

I have an old vintage camera that I gutted and put a raspberry pi into, similar to this project. I want to light an LED housed in the old flash housing when I hold down the button, as well as running ...
3
votes
1answer
466 views

Get Raspberry Pi to automatically recognize USB peripherals

I have a switch to transfer 2 USB inputs between four computers (piB, pi2, pc, and mac). I have only one input connected: an apple USB keyboard with a mouse and a windows keyboard connected into it's ...
2
votes
1answer
1k views

Raspberry Pi & HDMI Switches

I've got a HDMI switch with 3 devices plugged into it - an Apple TV, a PS4 and my Raspberry Pi 2. The aTV & PS4 both handle themselves quite well & will take control of the signal at the ...
2
votes
2answers
2k views

Unwanted multiple presses when using GPIO button press detection

I use this to detect momentary button (connected to GPIO) press : import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP) def my_callback(channel): ...
0
votes
1answer
259 views

having problem with GPIO switch

I have been working on a project that will allow me to take picture using a switch. So for that purpose i setup the GPIO and all necesseary tools for that code, Python-dev and etc. When i run the ...
2
votes
3answers
3k views

External shutdown (properly) button?

I have a Raspberry Pi that I want to mount in an enclosure. The enclosure already has a couple external buttons on it. I'm trying to find some sort of circuit that I could by that I could wire the ...