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 [shift-register]

Shift registers are used to convert a serial string of bits into parallel data, or vice-versa.

1
vote
3answers
50 views

Why does it skip the first index - shift register issue

So, I wrote this code myself and I'm a noob on the issue. I did get my code working, but cannot understand why it has to be the way it is. int counter; int ledValue[] = { 1,0,1,1,1,1,1,1 }; void ...
0
votes
1answer
61 views

Shift register with relay board behaving erratically

I have a nodemcu connected to a shift register(https://www.amazon.de/gp/product/B07CHBYR7Z) to control an 8 channel relay board (https://www.amazon.de/Elegoo-Relaismodul-Optokoppler-Arduino-Raspberry/...
0
votes
2answers
152 views

shift register 74HC595 enable specific pin

Its driving me crazy for some couple of days now and i don't get the answer. I'm busy to setup a irrigation system with a shift register 74HC595 and a 8 channel relay board. I see a lot of sketches ...
0
votes
1answer
48 views

What value of resistance to put between the output of a 74hc595 and the LEDs?

I'm going to start a project to make an array of LEDs using the shift registers 74HC595, I've seen many tutorials and it's not really difficult using the Arduino plataform. The situation is as ...
0
votes
1answer
83 views

Flashing a specified digit 4x7 segment display and shift register 74HC595N

I have a project that is simply a relay timer. The code is not complete so you will see 'in progress' sections not related to my question in my code. However, my question is... I am creating a timer ...
0
votes
1answer
51 views

HEF4094 with 12v Vcc

Using old NXP HEF4094BP shift register chips, for the reason of fixing some old hardware. These chips were popular in the 90's because they could accept 3-15V VCC and directly drive series+parallel ...
1
vote
1answer
76 views

How to drive 16 stepper motors with Arduino?

I'm trying to drive 16 of these little steppers on an Arduino Uno. Each test driver uses 4 digital pins for control (2 for each coil) so that would be 64 pins I will need. I'm thinking either ...
0
votes
1answer
102 views

How does Peggy2 drive rows with 74HC154 Decoder?

Trying to program Evil Mad Scientist's Peggy 2 board without their Library. The board drives a LED Matrix with Source 74HC154 Decoder Sink STP16CPSO5 LED Sink Driver Schematic What has me ...
-2
votes
2answers
113 views

How do I get status of contactors using Arduino (more than 50 contactors)

I am new to Arduino. Sorry if my question sounds wrong. Interest areas: Multiple devices inter-connected on the cloud. Single GSM for equipment in a typical panel connectivity for non-electrical ...
3
votes
3answers
264 views

for loop running infinitely

void writereg() { digitalWrite(latchPin, LOW); for (int i = 7; i >= 0; i--) { digitalWrite(clockPin, LOW); Serial.print("wswitch&&&&&&"); Serial.print(i); ...
0
votes
1answer
125 views

Connecting two analog multiplexers (CD4051b)

Is it possible to connect two CD4051b analog multiplexers together so that I can receive 14 analog inputs through them? Just by using one analog pin and three digital pins on the Arduino UNO.
1
vote
1answer
38 views

Additional Digital Input Pins

I require additional digital input pins for 5 PIR sensors. Can I use the shift register (74HC165) to read these input? And will I be able obtain real time values from all the 5 sensors?
3
votes
1answer
269 views

Overheating Shift-Register(74HC595)

I am working on a project where I need to use around 50 LED's connected to an Arduino UNO board. To begin with i worked on the tutorial provided by Arduino (https://www.arduino.cc/en/Tutorial/ShiftOut)...
1
vote
1answer
58 views

Having trouble with 74HC595 and Uno

Just picked up a couple of 74HC595 shift registers to use for my Arduino Uno, and I'm having trouble getting it working 100% of the time. My code is to get a value from the Serial monitor and shift it ...
3
votes
2answers
582 views

Using SPI and 2 shift registers WITHOUT libraries

Arduino Mega 2560 board and SN74HC595 shift register(s). I'm working on a school assignment and having issues getting the shift register(s) working without using Arduino libraries. I know with the ...
2
votes
4answers
405 views

Is there a way to shift through sensors

We are doing a project and have to use around 25 temperature sensors. Is there a way to shift through them on one Arduino similar to using a shift-register? It is a set of analog sensors in a fridge.
4
votes
2answers
777 views

Weird output from chained 74HC595 shift registers

EDIT 4/2/18: The Arduino tutorial schematics have been corrected! See https://github.com/arduino/Arduino/issues/6433 for that issue. I have a project where I am trying to load a 16-bit number onto an ...
2
votes
1answer
187 views

Can I power my shift register with a 12V external power supply and connect only the data, strobe and clear pins to the Arduino digital pins?

I'm using a CD4094 shift register to power my LEDs along with a ULN2003A darlington transistor array. I want to hook up the LEDs to an external power supply of 12V (common anode). The cathodes of ...
0
votes
1answer
291 views

How do I choose proper diodes for a 74HC595 shift register with a wired OR connection? [closed]

I want to use a wired OR connection to connect some pins of the 74HC595 shift register to an Arduino Digital Input Pin. How do I choose proper diodes for this situation? Maximum rated forward current ...
1
vote
1answer
1k views

Are the output pins on the 74HC595 shift register protected against shorting?

In the following schematic you can see that Q1 and Q4 both are connected to a Arduino's Digital Input Pin. So if Q1 is high and Q4 is low, would there be current flowing from Q1 through Q4 (and ...
3
votes
4answers
609 views

Is the ShiftOut tutorial on the official Arduino website really wrong regarding the capacitor?

I'm talking about this tutorial "Serial to Parallel Shifting-Out with a 74HC595" from the official Arduino website. It provides the following schematic: I've read a couple of times now, that the ...
0
votes
1answer
189 views

Shift Register 74HC595 circuit working weirdly

I built the circuit from the arduino ShiftOut tutorial, but it is not working as expected. I made a simulation model and that one isn't working either. The code I used is from the tutorial: // SH_CP;...
0
votes
1answer
26 views

Can I control a Z84 counter timer circuit with Arduino?

Link to pin description and to the Datasheet. I'm thinking about connecting channel outputs to LEDs and control the clock with IO-Arduino or a 555: I would program it with a 595 register. Can ...
0
votes
0answers
41 views

Odd RGB matrix behavior while using shift registers

so I'm playing around with an 8x8 RGB matrix using a 74HC595 shift register for each of the colors. I've done this before with single color matrices and everything worked fine, but here I'm getting ...
3
votes
1answer
78 views

Advanced I/O shifting bits [closed]

I wanted to tinker around more with the 8-bit shift register (74HC595) so I tried to make a simple LED display and after reading about some shift commands I got lost and didn't understand much... Let'...
3
votes
1answer
470 views

ATmega328P SPI Slave

I was scrolling through the ATmega328P datasheet when I came across a rather fascinating statement about the way in which the data part of the SPI interface is buffered. I can't seem to understand why ...
0
votes
2answers
454 views

More than 500 pins

For a project I need 400-1000 pins controlled by one arduino. Each pin should work similar as arduino pin, so something like 5V, 90mA. Is using dozens of shift registers a good idea? And what power ...
0
votes
2answers
812 views

Need a proper diagram to connect my multiple relays (more than 8) with only a few pins on Arduino Uno Board

Specifically, I want to add multiple relays (approximately 36 to 40) to an Arduino Uno board (using only a few pins). I found a solution using ShiftOut. You can take a look here. But here the example ...
0
votes
2answers
588 views

What shift register would I need for input OR output?

Background: A few days ago I received a 23LC1024 1Mbit SRAM chip, which works like a charm. However, before I ordered that one, I ordered a LP621024D-70LL which also is a 1 Mbit SRAM but in DIP32 ...
1
vote
1answer
111 views

DS3231 AT24C32 IIC making digital outputs not work

I have just taken the code from https://learn.adafruit.com/adafruit-ds3231-precision-rtc-breakout/wiring-and-test to get DS3231 AT24C32 IIC to work fine with my Aduino and its working fine. I have ...
0
votes
2answers
673 views

Light up more than one LED connected to 74HC595 Shift Register

I have a 74HC595 Shift Register with a LED (and resistor) on each of the 8 output pins. I can light them all up I can light one up How do I light two up? For example the one on pin 2 and the one on ...
3
votes
1answer
260 views

I think I have a bad batch of TPIC6B595

I want drive a large number of LEDS from an Arduino Pro Mini using a number of TPIC6B595. I purchased these on ebay, perhaps a mistake. Initially I connected two TPIC6B595 as I would connect 74HC595 ...
0
votes
1answer
112 views

Problem with shift register

I have a problem with the shift register 74HC595. The sketch I use is able to enable a specific led (8 are connected). When I enable led 0 to 7 it behaves like normally (they switch on when I enter ...
5
votes
4answers
312 views

Is there an advantage to set pinmodes via bitmask and register?

I'm working with the capacitive sensor library currently and the author does not use digitalWrite(), but instead sets the output of a pin via functions changing the bitmasks of certain registers: ...
0
votes
0answers
88 views

UNO/ProMicro ShiftOut doesn't work

I have a bizarre error. The shiftOut library/code stopped working. It doesn't work. There is no clock signal nor a data signal. Checked via an oscilloscope (DSO138 - I know it's cheap but it's the ...
0
votes
1answer
719 views

shiftOut using SPI isn't working

I made a sample using two of them using Arduino UNO. So I did that like this: (There aren't any resistor on that image, but there are 220ohm resistor on every LEDs.) And uploaded this code. //1.6us+...
0
votes
3answers
330 views

Arduino uno shift register

I have shift register 74HC595. I added 7 push buttons from Q1-7 and the 8th to ground. On the other side which pin of the register will go to Arduino pin 2? And wich one to the 5v pin? How can I read ...
0
votes
3answers
375 views

Long Distance Shift Register

I am using a Mega to control some relay boards. I have a 16 relay board near the mega, and I want to put an 8 relay board about 40 ft. away. So I figured I could use a shift register - instead of ...
3
votes
1answer
61 views

Read time digits from DS1307 and run code based on return

I am currently reading a DS1307 adafruit breakout board and I need to drive two nixie tubes from a shift register. The shift register is running two 74141 IC chips. I have code that loops through all ...
4
votes
3answers
371 views

Multiple If Conditions Arduino

I have a project which requires me to read if the input is "HIGH". I have 15 inputs (switches), and each input has its own output (LED). I am using a Shift Register to control its inputs and outputs. ...
1
vote
1answer
657 views

Formula for current through shift register

Hi I am programmer that just started learning electronics and Arduino. I built this simple circuit on Autodesk Circuits earlier. Originally I used 220 ohm resistors. Then when I ran the simulation ...
0
votes
1answer
55 views

Seamlessly loop through LED's - Shift Register

I am using the following code to create a snake-like affect (3 LED's wide) moving through 24 LED's using 3 shift registers: for(int i = 0; i < 27; i++){ setRegisterPin(i, HIGH); ...
0
votes
1answer
711 views

Arduino, 74HC595N, magic

Good day I'm playing with Arduino and shift register chip 74HC595N and already tried many different ways to solve my problem, but still to luck :( So that is my current simple scheme: Arduino 2,3,4 ...
1
vote
1answer
435 views

Strange behavior on 74HC595 Shift Register IC when its GND pin is used

I was following a tutorial similar to this: https://www.arduino.cc/en/Tutorial/ShiftOut That is, an array of 8 LEDs that lit up accordingly to the binary representation of a number, which was given ...
1
vote
2answers
470 views

Maintaining pull down on a relay with a shift register

I currently have an Arduino Mega project that uses a relay to switch some high voltage loads. Currently, I use a scheduler library so that every 250ms I check if certain conditions are met and if so I ...
0
votes
3answers
256 views

Arduino Nano, ICSP header and 595 Shift register

I'm trying to control a 4-digit 7 segment display with an Arduino Nano, but I'm getting something wrong. I'm using the ICSP header to interface with a 74HC595 Shift Register which is then connected to ...
1
vote
1answer
680 views

Shift Register Not Working

I am trying to learn how to use a shift register to control 8 LEDs but for some reason my shift register is misbehaving and none of the LEDs are lighting up. I imagine that it's a problem with my ...
0
votes
2answers
353 views

Best way to implement score board logic using Arduino and Shift Registers?

I am from a mobile development background and very new to Arduino. I am trying to make an electronic cricket score board. The logic is simple. Score - 888 (3 Digits) - I have implemented this logic ...
0
votes
1answer
301 views

max current while using a shift register

In arduino's official page about ShiftOut https://www.arduino.cc/en/Tutorial/ShiftOut, a drawing with two 74HC595 powered by the arduino board, is displayed. Since the resistors are 220Ω, the total ...
0
votes
3answers
439 views

8x8 solenoid matrix

I've been teaching a blind student how to program and build electronics with Arduino. So far I've substituted LED's with piezo buzzers with excellent results. We are getting to the point where more ...