Questions tagged [wiring]

Items referring to physical wiring. For question to the wiringPi library use the tag wiringPi.

Filter by
Sorted by
Tagged with
16
votes
3answers
22k views

Wiring diagram software

I am looking to document a hardware project my company is putting together. It consists of a Raspberry Pi prototype board and some basic circuitry. The tutorials on raspberrypi.org have very nice ...
11
votes
5answers
20k views

How can I wire this SD card reader to RaspberryPi?

I need to add a second SD card reader to my Raspberry Pi for the project www.samplerbox.org (the RPi will be embedded in a box, so I need a user-SD-card reader). Here is what I would like to use: ...
11
votes
4answers
12k views

12V device to a Raspberry Pi

For my school engineering project, I have a coin acceptor device which I would like to link to the Raspberry Pi. However the device requires 12V in power. I have an idea of what to do to power the ...
8
votes
2answers
21k views

i2cdetect doesn't catch ANY address. How can I tell if I2C working correctly?

I'm having difficulties interfacing the Raspberry Pi to basically any I2C sensor. I've gone through a lot of tutorials on how to get the I2C driver to work and my connections are correct. Still, ...
7
votes
2answers
712 views

Creating jumper leads from ethernet cables - connect multiple components

I've bought some crimpers and a dupont connection kit and I'm planning on reusing some old cat5 ethernet cables I have. Is it reasonable to connect two devices to the RPi via the 8 wires in the cat5 ...
7
votes
3answers
47k views

Using single 5V relay (jqc-3ff-s-z) - safety advice required

Above is relay I'm using and everything works as expected using diagram below. I will add 1n4148 diode on IN line for safety and will connect VCC to power supply before Pi. Can I use ground (GND) ...
7
votes
1answer
653 views

How can I wire a Raspberry Pi to an 8-relay board in a tidy professional manner?

I want to connect a Raspberry Pi to an 8-relay board, such as this one. Together with ground and power this amounts to ten wires. One option to connect the two is by using female to female jumper ...
7
votes
4answers
9k views

Controlling a water valve

Here's what I'm looking to do and I'm having a hard time wrapping my head around the electrical/wiring part of this: I have a 1" PVC pipe. I want to put a valve inline with this pipe and with my ...
6
votes
2answers
3k views

How to resolve a short circuit?

I'm building a morse transmitter. When the volume is up and I press a button it's beeping. (Also using JME8 I coded a program to get the signal from GPIO 17 and decode the morse to characters.) The ...
5
votes
4answers
2k views

"Blinking" relay by toggling pins between input and output

Edit for searches: This question is about using a 5v relay with Raspberry Pi GPIO pins that outputs 3.3v. There are a number of great questions below, read them through to understand whats going on. ...
5
votes
1answer
620 views

Sainsmart 12V, 16 Channel relay module connected to RpiZW has unwanted triggering when booting

I'm trying to get the hydrosys4 open source irrigation control software to work with my 16 channel relay board and raspberry pi zero w. When the pi boots up the relay is triggered multiple times, ...
4
votes
2answers
9k views

Wire Button Without Resistor

I saw a tutorial here that shows wiring a button without a resistor. I have heard that this is bad if you set the pin as an output by mistake and press the button because it shorts the pin to ground. ...
4
votes
5answers
13k 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 ...
3
votes
2answers
10k views

Triggering a solenoid off GPIO

this solenoid is killing me! I have it connected to a GPIO pin, and I've tried running it both from that to 3.3v, and to GND. Either way, with Low or High written to the pin, respectively, it doesn'...
3
votes
3answers
1k views

Light Controller System Help - What should I use in my build to individually control multiple lights?

I am currently working on a project with my Raspberry Pi.... I would like to be able to control 5 different lights at the same time, but only one of the lights will be on at a time. In theory, I ...
3
votes
1answer
4k views

Raspberry Pi as Wiegand device - output Wiegand to receiver

I would like to build a Wiegand device from Raspberry Pi to output 37 bit Wiegand format data to Wiegand control unit receiver. I don't want to read the Wiegand protocol on Raspberry Pi like from ...
3
votes
1answer
9k views

WiringPi + softPwm calculation to determine duty cycle

For my project we got a pre-installed rpi with all the working libraries and an example program to set a servo in middle position. The info: in a period of 20ms (50hz) we need 1,5ms to set it to ...
3
votes
2answers
3k views

Rpi GPIO Controlling 5V Relay Problem

I am working on a project that requires a camera analyzing some images and activating the appropriate GPIOs to control a relay board. I currently have a touchscreen display, a Raspberry Pi Cam ...
3
votes
2answers
5k views

Rpi to Arduino Serial UART Communication Tutorial

I'm trying to connect my Arduino to my Raspberry Pi using the GPIO pins. I understand that the Pi uses a 3.3V signal while the Arduino uses a 5V signal so I bought a bi-directional logic level ...
3
votes
1answer
59 views

Wiegand wiring guidance on Pi 4 with voltage step-down

Ok so following on from my previous post here. I have decided to start with the Wiegand wiring interface. I've drawn a diagram below to illustrate how I plan to wire everything up. Would appreciate if ...
3
votes
1answer
5k views

GPIO pin wiring for LEDs and their resistors

I have a Raspberry Pi 1 Model A and am trying to control an LED from an app that I will be running on it. The wiring I'm planning on going with is: Even though thats a RPI 3 in the diagram above, the ...
3
votes
1answer
673 views

Strange I2C behaviour

First of all: sorry for the title, I don't know how to describe further... Background: I'm working with the RDA5807M FM receiver chip. It worked fine for at least one month now. I just had jumper ...
3
votes
1answer
347 views

Wire switching on Raspberry Pi

In my apartment, I have a door bell that has a red and white wire, they are 12 V AC, and when I connect them together, the door will open. My idea is to connect these two wires to the Raspberry ...
3
votes
0answers
393 views

Can I use the TX pin as a normal GPIO output alongside serial communications on the UART? [closed]

I'm using the raspberry pi's UART to interface with a third-party radio. At startup, the radio reads its RX pin (the pi's TX pin) to determine which baud rate should be used. I'm using Gordon's ...
2
votes
2answers
766 views

Do I need a resistor to wire my Pi Zero directly to a power source?

I want to connect my Pi Zero directly to a 5V 10amp power adapter (shown below) which in turn connects to a wall outlet. I know that with LEDs you can't just connect it directly to the power source ...
2
votes
2answers
2k views

Driving Bi-Color LEDs

I have some LEDs that are Bi-Color so if you make a circuit like this: [+]-----[LED]-----[-] you get one color, and if you do it the opposite: [-]-----[LED]-----[+] You get the other color. I am ...
2
votes
2answers
2k views

Simple DC Solenoid Valve Circuit, How to size components?

I'm trying to build a circuit controlled by a 3.3V GPIO pin on a raspberry pi to open / close a 12VDC Solenoid Valve. Part of me feels I'm in over my head and I should back away slowly, but hopefully ...
2
votes
4answers
2k views

Connecting RTC DS1037, Pin 5 already occupied

I think of adding a RTC Module to my Raspberry Pi. I found the following tutorial. http://www.forum-raspberrypi.de/Thread-tutorial-realtime-clock-rtc-ds1307-am-raspberry-pi-betreiben In general it's ...
2
votes
1answer
2k views

Arcade buttons on GPIO, multiple buttons on the same ground pin

I have noticed that while hooking up arcade buttons to the GPIO set on the model b board that along with the joystick I should be able (by assigning certain GPIO pins to ground) to connect 7 other ...
2
votes
1answer
2k views

How to wire an HC-SR04 without a breadboard?

I have a Raspberry Pi and a HC-SR04 integrated circuit for measuring distance. I have found many resources for how to connect the HC-SR04 to the GPIO of the Raspberry Pi, but because the HC-SR04 ...
2
votes
2answers
3k views

Potentiometer on 16x2 LCD, does it need to be connected to VCC?

I am following this Adafruit tutorial on 16x4 LCD, and I managed to make it work. https://learn.adafruit.com/drive-a-16x2-lcd-directly-with-a-raspberry-pi/wiring From this tutorial, the potentiometer ...
2
votes
1answer
54 views

Need Help with Controlling Some LEDs with a Raspberry Pi

I'm mainly trying to follow this guide here in order to connect some LEDs to a Raspberry Pi. I've read other guides as well, but this link is where I got the majority of my setup done. I've never used ...
2
votes
2answers
90 views

Can I safely add a switch between a fan connected to power/ground?

I've just got a small 5V fan for my Pi, but it is very loud, and I'd like to be able to switch it on/off. Currently, the fan is just wired to 5V power and ground. I know that I can use the GPIO pins ...
2
votes
1answer
991 views

What is the correct wiring using a break beam sensor with a Raspberry Pi 3?

I am looking to wire a break beam sensor to gather results and save them as eventually as JSON data. I am however totally new to hardware and believe there is an issue with the circuit. I have the ...
2
votes
1answer
416 views

LED button doesn't work

I have tried connecting a LED with a button like this (from "Adventures in RPi"), but with the far end of the button plugged at G (instead of F). And I ran it with the following Python program (by ...
2
votes
3answers
16k views

How can I use a LCD display with a I2C adapter?

I'd like to try to communicate to a 16x2 LCD display, however whole docs I found assume I should connect the whole pin-out however I got some kind of I2C adapter from mjkdz.com which makes a 4 pin ...
2
votes
0answers
172 views

(Wiring) RPi 4B laptop keyboard

NOTE: Not that I've chosen a few wired keyboards, I'll accept an answer that explains HOW to (easily) wire a keybard to the pi - it cannot obstruct the use of a small fan powered by the GPIO. I'm ...
2
votes
0answers
933 views

PWM-based controlling an LED-strip using transistors, circuitry problems [closed]

I know there are some similar questions out there, but I'm really new to electronics and unfortunately they didn't provide me help. I want to control a tricolor LED strip (being able to dim each of ...
2
votes
0answers
769 views

How do I wire this PIR motion sensor? [closed]

Apologies if this is off-topic; I'm not sure where else to ask. I've tried working through Adafruit's lovely tutorial, but it appears that the component I'm working with (EKMC1603112) is not set up ...
2
votes
0answers
2k views

Controlling a Servo motor [closed]

I am having trouble running a servo motor with raspberry pi Here is what I have done so far , I have gotten a servo motor (http://goo.gl/67AsF), I have powered it with a 5 volt power source from a ...
1
vote
2answers
101 views

Can I use a cable such as the ones linked to connect my Pi Zero to the network?

The Pi Zero only has a micro USB socket, requiring the use of an adapter to connect an Ethernet cable. Is there any reason I can't use something like this cable, or even attempt to make my own with ...
1
vote
4answers
1k views

Using single 5V relay module (jqc-3ff-s-z) - Asking for help

I have a developer background missing the electronics background. I read some threads with great interest: Using single 5V relay (jqc-3ff-s-z) - safety advice required and 5V relay (jqc-3ff-s-z) I ...
1
vote
2answers
1k views

How to use Solenoid Lock 12V DC

I'm new to this, and I can't see how to control a solenoid lock using raspberry (The wirings). I have an 8x AA Battery pack which is wired to output 12V. I don't know where to connect the black and ...
1
vote
1answer
115 views

Raspberry Pi GPIO and Relay Newbie Learning Problem

I'm a beginner with electrical circuits right now, so I apologize if this might sound a little riduclous. Let's say if I have a switch device that's controlled by two wires. Can I use a Raspberry Pi ...
1
vote
1answer
404 views

Is it safe to use 3V3 on raspberry pi 3B+ to control a 3V DC motor?

I want to connect power to a 3V DC motor straight from 3v3 GPIO. Is it safe or will I brick my Pi 3B+ ?
1
vote
1answer
364 views

Can I get some help wiring up this GPS unit?

I got a microstack gps as a gift, and I would like to do something with Unfortunately, I do not also have the micro-stack base board. I am looking at the Documentation for the microstack base board ...
1
vote
1answer
7k views

How to wire up a DHT11 temperature sensor

I'm a Raspberry Pi (and hardware) noob and am trying to hook up a DHT11 temperature and humidity sensor. I've found two separate guides, and I'm seeking advice as to which I should follow. This UU ...
1
vote
1answer
49 views

Proximity sensor reads not working

I'm trying to read output from NPN proximity sensor: but from the GPIO pin I don't read any state change: unfortunately I can't read anything from it cause it seems to fluctuate even if I set the pull ...
1
vote
1answer
52 views

how to wire up a 12V solenoid valve without alligator clips [closed]

I have got a very beginner question. I am building an irrigation system and so I need to use a 12V solenoid valve. My question is as follows: Given the following valve and in particular the contacts (...
1
vote
1answer
69 views

Is this the correct way to connect this set of components (gardening application)

The project is one where I want to monitor and log Soil pH Soil moisture Room Temp Room Humidity Shown in the diagram are: Capacitive soil moisture detector 3.3-5.5V link ADC1115 to convert soil ...