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.

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.

91 questions
14
votes
5 answers

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 add more? (at least 3). I read that it wasn't…
Gane D. Geoffrey
  • 151
  • 1
  • 1
  • 5
11
votes
6 answers

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 and giving it a shot, I'm worried about blowing up…
Bmo
  • 256
  • 1
  • 2
  • 7
9
votes
2 answers

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 a DHCP server. The intention is to have a…
Flux
  • 279
  • 1
  • 3
  • 11
6
votes
2 answers

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 switch in it, but I need to control turning on and…
Taylor
  • 131
  • 1
  • 3
  • 7
5
votes
1 answer

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't discuss precise GPIO wiring, etc.
Basj
  • 800
  • 3
  • 21
  • 49
5
votes
4 answers

How can I combine many inputs on one pin?

Forgive my naivety but I seem to lack a vocabulary for the whole electronics domain... I'm interested in building something to measure wind direction. Inspired by this design I would like to build a circuit of a number of reed switches (say, 8). For…
fiskeben
  • 221
  • 4
  • 9
4
votes
6 answers

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 buttons too in my home. So if I want to switch…
Ashish Gupta
  • 51
  • 1
  • 1
  • 8
4
votes
3 answers

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 code for me http://pastebin.com/WTeR39d8 Edit -…
laxus
  • 69
  • 3
3
votes
1 answer

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 pack for Arduino? Pin alignment is fine for…
dbmitch
  • 401
  • 7
  • 22
3
votes
2 answers

POE Switch to Power the PI?

Sorry if this a repeated, I couldnt find anything similar. Most threads seems to be modifying the PI or splitting Ethernet. Will this setup work for powering the PI? 1) Juniper EC-2200 POE Switch…
user48871
  • 33
  • 1
  • 3
3
votes
1 answer

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 out why the button bypass isn't working when I put…
3
votes
1 answer

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 two underside USB's. It is a neat setup...…
sas08
  • 131
  • 2
3
votes
2 answers

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): print channel GPIO.add_event_detect(18,…
Basj
  • 800
  • 3
  • 21
  • 49
3
votes
3 answers

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 buttons to, in order to properly shutdown and turn…
Jake Wilson
  • 133
  • 1
  • 6
3
votes
3 answers

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 the code and am done playing with it, I want to use…
1
2 3 4 5 6 7