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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
67 views

Which way would be best to build a coin sorter that can sort by diameter and thickness?

So lately i've been wanting to build a coin sorter using a raspberry pi or similar that can sort diameter and thicknesses ranging from 5 mm to 35 mm and 0.8 to 3 mm respectively and place the thickest ...
ColeH34's user avatar
-1 votes
1 answer
38 views

Can I use a Pi as a ethernet switch as well as run something else on it?

I am thinking of using a pi beside the front gate with some custom software to translate rest calls to relay activations. I have a cat6 there with ethernet. However, I need to connect the IP Camera ...
Rohit Gupta's user avatar
0 votes
0 answers
76 views

How do I connect multiple (7 or 8) toggle switches to a raspberry pi?

I haven't bought any of the components I'd need yet, partially because I'm not sure I'm on the right track. I want to connect 7 or 8 toggle switches (SPST) to a raspberry pi, which then read in would ...
techbro2's user avatar
-1 votes
1 answer
66 views

Bs250 transistor as switch

Hi so I have button connected to pins 5 & 6 on rpi3. This is to "power it on"... The button is also connected to another gpio 18 pin and python script listen for change and when it's ...
joural's user avatar
  • 1
0 votes
0 answers
44 views

Beginner want's to add button function to a night vision PiCamera

I want to add button functions to my night vision PiCamera. I have a custom script that outputs the screen to spilt screen because I want to make night vision goggles with it. ` from picamera import ...
Zabee123's user avatar
-1 votes
1 answer
84 views

Pi Zero, is it possible to program two GPIO output pins to make/break continuity between them?

Just a simple analog contact closure. No output voltage needed. I know this can be done with a relay, but wondering if I can simply use two pins as there will be no load on the circuit. Also, I am an ...
david's user avatar
  • 1
0 votes
1 answer
1k views

Three-Pin Switch for On/Off, Pi Zero W

I'm a novice python coder, and even more novice pi user/electronics person. I'm trying to set up an on/off switch on my headless pi with a three-pin arcade switch I found. Right now the switch is ...
Tooluser's user avatar
-2 votes
2 answers
43 views

does disconnecting my rpi cluster's ethenet switch generate error? i'm a bit nervous about this one [closed]

i've built a 25 node rpi cluster with a ups for the rpis. but not for the ethernet switch. does turning off my gigabit impact my cluster? if yes, please tell me what i can do about it.
user135142's user avatar
0 votes
0 answers
27 views

Pi2 as an USB-Switch to share his eth-connection

I want to share my thoughts and questions about using a Raspberry Pi as an alternate Switch/Router or whatever. First my problem is, I have 3 stationary PCs, all of them are connected to a switch (eth)...
samsy's user avatar
  • 1
0 votes
0 answers
14 views

Driving 6 electric channels on/off and voltage (48A / 30-41V) from pi

I would like from a pi, to drive a current of 48A and regulate voltage between 30-41V (1440-1968W !). Furthermore, this current will be split into 6 input, and I would like to be able to switch on/off ...
Soleil's user avatar
  • 107
0 votes
1 answer
38 views

Using Maxim MAX378 high voltage analog multiplexer with raspberry pi [closed]

I am trying to use this multiplexer with a raspberry pi and am having difficulty getting it to work. here is the datasheet: https://datasheets.maximintegrated.com/en/ds/MAX378-MAX379.pdf I think my ...
NomNomCameron's user avatar
-1 votes
1 answer
318 views

Using a SPST switch with GLOBAL_EN and GND on Pi4 B

my first post here. Thanks for having me. I've seen many posts discussing the use of GLOBAL_EN and GND for turning the Pi4 on. I'm interested in using this to turn the Pi4 OFF and leave it OFF long ...
mall_face's user avatar
0 votes
3 answers
1k views

How to schedule turning off and on of a pi4 using cron?

How to schedule turn off and on of a pi4 using cron ? Hello, to save power I wanted to schedule precisely when my RPI has to be turned on and off. I think Cron was a good solution so I try to edit ...
Antoine Riguillard's user avatar
0 votes
3 answers
326 views

How to provide internet access to multiple raspberry pis in the same local network?

I have connected 6 raspberry pi's to an ethernet switch with 8 ports. I have connected my laptop to the switch as well. I am using VNC Viewer (and sometimes SSH) to connect to these raspberry pis ...
Ish Kav's user avatar
0 votes
1 answer
76 views

32 Serial Interfaces into an RPi

I have a data center where we are working to automate PDU (Power Distribution Unit) access to optimize server uptime. Now, the PDU's that we use have some garbage unified web interface but no actual ...
Tug Witt's user avatar
2 votes
5 answers
14k views

What is the proper way to debounce a GPIO input?

I have a project that involves using a Raspberry Pi to sense the state of a mechanical switch (actually, a relay, part of this light beam sensor). When the switch is closed, I want to sound a doorbell....
Metamorphic's user avatar
1 vote
1 answer
89 views

How to physically turn the a Raspberry Touch display on and off?

I use a Raspberry Pi Touch Display that I connect like shown in the following picture to my Raspberry. The black and red wires are connected to thee GND and 5v pins respectively. Now I want to ...
SCM's user avatar
  • 21
1 vote
0 answers
261 views

GPIO input, keep high after button press

Hi was just wondering if there was a way of making a GPIO INPUT (connected to a momentary switch) stay high (for a certain amount of time), no matter how long the switch has been pressed for? The ...
OldGold's user avatar
  • 11
0 votes
1 answer
35 views

What parts to control a 220V button (not constant, but connecting for 1 second)?

I want to automate a dumb analogue door opener. My guess is that if I connect the two lines for a short amount of time (1 second, maybe), the motor on the door opener works to open the door. The ...
Damn Vegetables's user avatar
3 votes
3 answers
1k views

Is there any reason NOT to use SPDT switches with RPi?

I'm building a doohickey that uses 4 pairs of momentary switches. For prototyping, I'm using standard little pushbutton switches that plug into a breadboard, two for each pair. When I've finished ...
Roger Sinasohn's user avatar
3 votes
2 answers
992 views

GPIOs with reed switches - RPi as Home Alarm

I use a Pi3 Model B as a home alarm. For this reason, I use 11 of the GPIOs as inputs connected to reed switches (and a couple more with similar circuitry connected to 12V PIRs -) The diagram for ...
Tassos Pan's user avatar
-1 votes
2 answers
883 views

Configuring Netgear Ethernet Switch using Raspberry Pi

I want to use my raspberry pi as a way of configuring my switch. My switch is a Netgear brand switch. The issue I have is that the network itself is not connected to the internet and the RPI is ...
Lyra Orwell's user avatar
-1 votes
1 answer
39 views

Is it possible to give command to switch / router and read the result using raspberry pi?

Is it possible to give commands to switch / router and read the result using raspberry pi ? As a part of my project, i need to monitor the switches/routers of my network by printing commands on the ...
jijo joy thaikkaden's user avatar
8 votes
5 answers
54k views

How to add multiple RJ45 ports to Raspberry Pi 4 to turn it into a switch?

I am building a little network lab. I want to turn one of my Raspberry Pi 4 into a switch. I already have a network manufacturer docker image to run on it. Still, I have only one RJ45 port. How to ...
Gane D. Geoffrey's user avatar
2 votes
1 answer
278 views

Muting speakers with a switch, and using the GPIO to detect if muted

I need to be able to have physical mute for a speaker via a switch, and I need to be able to detect the switch's position via GPIO inputs, so I can't just hook the switch up directly to the speaker. I ...
VarBird's user avatar
  • 21
0 votes
1 answer
73 views

what switches am I describing here? [closed]

background: putting a rPi in my vintage car, and wanting appropriate looking switches for my vintage. I have the matching key cap / knob caps for my dashboard, but now need to source the right ...
user3599528's user avatar
1 vote
0 answers
537 views

I have a float switch, can I read GPIO and see if it's opened or closed?

It's something like this. It gives either High or Low when only when it is closing the circuit. Reading already closed circuit does not seem to work. If I connect to ground it always give LOW no ...
helloworld331's user avatar
2 votes
2 answers
362 views

Managing home lights - Controlling smart lights

My first project with my raspberry is how to control the home lights, all of them. What I want is to have the ability to turn on and off each individual light. I know using manual switches won't work, ...
Javier Torron Diaz's user avatar
1 vote
3 answers
2k views

Rpi UART control IR Remote HDMI switch problem

I've been reading about how to use the GPIO to toggle a button on a thing I've taken apart. It's like this: Amazon I watched a video of a guy using an opto-coupler, what are the basics here? I'm ...
Quinn Finney's user avatar
1 vote
1 answer
659 views

Is a RC snubber required when using the pi with a relay?

I am hoping to use raspberry pi to switch on and off a heating lamp and an aquarium pump via a relay switch. Both devices are plugged into 120V AC normally. The relay tutorials online seem to be ...
Viele's user avatar
  • 113
1 vote
1 answer
474 views

Connecting several (roughly 100) Buttons to the PI (USB?)

I havent found anything, but iam sure there is already info on the topic. So even just a link would be helpful for me. I want to build a Jukebox. So pretty simple. Around 30 Buttons, if Button is ...
user101499's user avatar
0 votes
0 answers
412 views

Control 12V motor from 3.3V GPIO with external 12V Power Supply

I have a 12V motor, which I need to control from my Raspberry Pi (through the RaspiRobot Board). However, the RaspiRobot Board gives me only 3.3V for the motor. At the same time, I have a 12V adapter ...
Mrigank Pawagi's user avatar
2 votes
1 answer
530 views

L298N not working anymore

This is an image of how I had it routed up, it was working just fine until I attempted to add a rocker switch. I used the 2 pin on/off rocker switch that came with my smart car kit (https://www.ebay....
Maiki's user avatar
  • 39
8 votes
2 answers
9k views

Raspberry Pi DHCP Server: clients not getting IP addresses

I am relatively new to networking, so please bear with me. For a purely educational project, I've set up a network where the Raspberry Pi 3 running Raspbian Stretch is to function both as a router and ...
Flux's user avatar
  • 269
0 votes
3 answers
223 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 ...
user avatar
0 votes
0 answers
35 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 ...
john's user avatar
  • 131
0 votes
3 answers
2k 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 ...
Nico's user avatar
  • 101
0 votes
2 answers
376 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 ...
Mr.Noob's user avatar
  • 103
0 votes
2 answers
226 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 ...
Matthew's user avatar
  • 11
2 votes
1 answer
457 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 ...
Van Coding's user avatar
-2 votes
1 answer
60 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 ...
Sallar's user avatar
  • 99
0 votes
1 answer
294 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. ...
lux's user avatar
  • 3
1 vote
1 answer
300 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 ...
Luke Jones's user avatar
0 votes
1 answer
172 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 ...
Nicholas Schmidt's user avatar
0 votes
2 answers
58 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 ...
user1050619's user avatar
4 votes
5 answers
15k 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 ...
Ashish Gupta's user avatar
0 votes
1 answer
2k 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 ...
Anditus's user avatar
1 vote
3 answers
2k 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 ...
Pieter De Clercq's user avatar
0 votes
1 answer
353 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 ...
smeeb's user avatar
  • 635
1 vote
1 answer
1k 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 ...
HVK's user avatar
  • 51