Questions tagged [shift-register]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
66 views

How often should we poll the 74HC165 if we wish to detect 'button' presses? [closed]

I am going to either chain 4 shift registers, or connect 4 shift registers to an ESP32 that is connected to a computer with bluetooth. I understand at 3.3 volts, the 74HC165 can run at a clock speed ...
user avatar
  • 125
1 vote
1 answer
52 views

How can I SPI "Latch" (LE/CS/SS) for a specific number of SCLK cycles?

Context I am working on a project which includes 13 cascaded STMicroelectronics LED1642GWs. These LED drivers are essentially 16bit shift registers, whereby the buffered serial data can be loaded to a ...
user avatar
1 vote
1 answer
72 views

Connecting Common-Anode Seven Segment Display to Shift Register

I recently wired up the following ill-advised circuit: A common-anode display is wired with its cathodes connected directly to LEDs connected to ground. But the strange thing is that it worked ...
user avatar
  • 11
2 votes
2 answers
108 views

How to control Shift registers output individually bitwise

so i am working on a project which needs a lots of bit manipulation and shifting out the bits to control the pins of shift registers individually. So i am using 2 shift registers daisy chained with 16 ...
user avatar
1 vote
1 answer
48 views

LEDs not lighting up even though current is flowing through them, problem with ground?

I'm using a 74HC595N shift register to light up 8 LEDs but for some reason they won't turn on even though current is flowing through all of them. I provided an image of my circuit below, there is a ...
user avatar
1 vote
1 answer
49 views

HG-C 1100 measurement sensor

I am using two HG-C 1100 measurement sensor for measuring the width of the metal. In the top of the sensor I will be having the measurement value. The sensor is capable of measuring the dimensions ...
user avatar
1 vote
1 answer
73 views

How to declare char array[] using integers?

Can anyone please tell me how to declare a char variable using a few integers? I need to declare a byte information for shiftOut() function as char. int a = 0; int b = 1; int c = 0; int d = 1; int e = ...
user avatar
  • 39
1 vote
2 answers
3k views

if(Serial.available()>0) VS while(Serial.available()>0)

What's the low level difference between if(Serial.available() > 0) and while(Serial.available() > 0)? On what conditions would you choose one over the other? I was testing my codes on 4 daisy ...
user avatar
  • 41
0 votes
1 answer
115 views

What's wrong with this code..?

I want to make an 8*8 led matrix. I found this code on the web: int latchPin = 12; //Pin connected to ST_CP of 1st 74595 int clockPin = 13; //Pin connected to SH_CP of 1st 74595 int ...
user avatar
1 vote
1 answer
524 views

Problem connecting 2 74HC595 8 bit shift registers in cascading connection

I have now successfully learned how to control a single 8 bit shift register 74HC595 with Arduino UNO but whenever I tried to connect another one with the first shift resistor via cascading connection ...
user avatar
2 votes
1 answer
2k views

74HC595 to 4 Digit 7 Segment using SevSegShift Library

I have a question regarding the use of SevSegShift library. I followed the example properly and tested it to see if it works. It was able to power up the seven segments and light up the whole LEDs (...
user avatar
2 votes
1 answer
51 views

Cant make the second 74HC595 to start counting

I'm doing my first project with Arduino, however I got in a block and cannot figure out what I am doing wrong. This project is 'simple'. It's that Stranger Thing's Wall. However, I want to use the ...
user avatar
  • 163
0 votes
2 answers
85 views

TPIC6B595 Output Unable to Allow Supplied Power to 7-segment Display

We have an Arduino Nano connected to 4 small (0.5") common-anode 7-segment displays and 2 large (3") common-anode 7-segment displays. We are trying to multiplex the displays. The larger one ...
user avatar
0 votes
2 answers
55 views

dot matrix arduino turn off the intermittent led

I made a dot matrix that contain 10 row and 12 column , total 120 led. I want to turn on the leds like this picture but when I open ground 1 , 2 and pin 0 , 1 , 2 6 leds light together.what kind of ...
user avatar
0 votes
1 answer
119 views

74HC595 to 5v pin shuts down uno

I'm new to using the SN74HC595 shift register, and trying to follow this tutorial: https://www.arduino.cc/en/tutorial/ShiftOut based on this configuration: When my arduino Uno R3 is plugged in by USB ...
user avatar
1 vote
1 answer
154 views

Having problems with running two 74HC595 as a single 16bit shift register

I'm using two of these together to create a single 16bit register which will give me access to 16 outputs. I have gotten them to work but not exactly how I imagined them to work. The code written is ...
user avatar
1 vote
2 answers
278 views

How can i connect 01 ESP8266 to a shift register?

I am connecting this shift register to my esp8266 01 for more GPIO options. it appears there is a GPIO 16 but it's tied to a RESET pin. I checked both datasheets : i checked the esp8266 01 datasheet ...
user avatar
-1 votes
1 answer
51 views

How do I use a shift register with ioAbstraction?

I’m trying to combine this use of the shift register. With the ioAbstaction library. But I’m not sure how to read the buttons. The help in the library seems to suggest more pins for writing than the ...
user avatar
0 votes
1 answer
87 views

Possibility of clean the code?

Good night! Based on stuff I get a bit here and there, came up with a program for an Arduino Audio Selector with shift registers and some features. Working as expected, only missing connecting the ...
user avatar
-1 votes
1 answer
102 views

Data in two 8 bit shift registers won't change

I'm trying to output 16 bits of data to two 8 bit shift registers (74HC595), which drive a 8x8 led matrix. There is a problem with the way the code outputs data to the registers, its like no data is ...
user avatar
  • 9
0 votes
1 answer
204 views

595 Shift Register Not Working Properly

I followed the tutorial on controlling 8 LEDs using a SIPO SN74HC595N shift register on both Adafruit and Last Minute Engineer. I used a Sparkfun Pro Micro (Arduino Leonardo equivalent). The problem ...
user avatar
  • 139
-1 votes
1 answer
304 views

Is the shiftOut code depending on the (low) speed of an Arduino?

In the (official) file wiring_shift.c I found the following code for shiftOut: void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val) { uint8_t i; for (i = 0; i < ...
user avatar
1 vote
2 answers
1k views

LSB/MSB and shiftOut

Here is the shiftOut function code from wiring_shift.c void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val) { uint8_t i; for (i = 0; i < 8; i++) { ...
user avatar
1 vote
0 answers
71 views

Problem driving segment display

First off, I'm not really sure if it belongs here on on electronics stackexchange, since it involves an Arduino, some code and a small circuit. I'm trying to create a simple countdown timer using a 7 ...
user avatar
  • 11
0 votes
1 answer
43 views

The problem of not saving the previous value when sending it from bluetooth

Controlling Led's from Buttons and Bluetooth by same method The problem now : the LED light up when you send an A over Bluetooth and it will turn off after 2 sec automatically without you doing ...
user avatar
1 vote
1 answer
108 views

i can't work toggle for my small project

i build my small project from a few component as this photo after finish code and project . i work run for Proteus and then the project not run perfectly because my code need toggle for data entered . ...
user avatar
0 votes
1 answer
1k views

How to detect button presses with a 74HC595 shift register?

Is there a way I can have my arduino uno differentiate between pushbuttons that are wired through a shift register and detect when each are pressed or not? I found this tutorial for the 74HC165 but I'...
user avatar
  • 41
1 vote
1 answer
318 views

74HC595 not working properly

I've used the following code to light 8 yellow leds sequentially but it only runs as it's supposed to be on Proteus. However in my breadboard the 8 leds keeps blinking all together, the resistors used ...
user avatar
  • 21
1 vote
0 answers
623 views

SN74HC595 Shift Register Issue

I'm trying to use the popular SN74HC595 Shift Register, but I think something isn't right because when the bits are submitted to the register it comes out with something similar but not the same. #...
user avatar
0 votes
1 answer
209 views

Stuck making multi, many button, joysticks

I'm stuck, I figured I'd ask here for some help... Note I'm a newb and this is essentially my first Arduino project beyond blink... I'm creating Virtual cockpit panels for DCS World, using an Arduino ...
user avatar
2 votes
0 answers
306 views

Clear Timer on Compare or CTC in ATmega328P, Toggle OC0A on Compare Match

I want to use the CTC on the ATmega328P to play same notes with a speaker, a project that I find in this book. In the data sheet I read: For generating a waveform output in CTC mode, the OC0A ...
user avatar
1 vote
1 answer
2k views

Read the value of a register in arduino

I want to read the value of the register (8-bit). In particular I want to read the values of: The Timer/Counter - TCNT0 ( Adress 0x26 (0x46) ) The output compare registers - OCR0A and OCR0B. Is ...
user avatar
1 vote
0 answers
184 views

Problem using 74HC595 with ULN2803A as LED driver

For a final project I'm making a word clock using three 74HC595 registers and three ULN2803A transistor arrays as led drivers, as well as a DS1307 RTC. The program works great, except for one large ...
user avatar
  • 11
-1 votes
3 answers
3k views

74HC595 shift register not working

I got my Arduino kit a few days ago and I've been going through some of the tutorials. I got to the 8 LEDs with a shift register tutorial, where I got stuck. Nothing would light up after I plugged ...
user avatar
2 votes
3 answers
109 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 ...
user avatar
  • 31
0 votes
1 answer
1k 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/...
user avatar
  • 113
0 votes
2 answers
837 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 ...
user avatar
0 votes
1 answer
389 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 ...
user avatar
  • 252
0 votes
1 answer
366 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 ...
user avatar
0 votes
1 answer
271 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 ...
user avatar
1 vote
1 answer
485 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 ...
user avatar
0 votes
1 answer
392 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 ...
user avatar
  • 41
-2 votes
2 answers
302 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 ...
user avatar
2 votes
3 answers
427 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); ...
user avatar
0 votes
1 answer
795 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.
user avatar
1 vote
1 answer
61 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?
user avatar
2 votes
1 answer
1k 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)...
user avatar
1 vote
1 answer
94 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 ...
user avatar
  • 13
3 votes
2 answers
2k 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 ...
user avatar
  • 33
3 votes
4 answers
2k 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.
user avatar
  • 33