Questions tagged [shift-register]
Shift registers are used to convert a serial string of bits into parallel data, or vice-versa.
109
questions
2
votes
0
answers
82
views
Shift register 74595 does not shift values [closed]
I am using a 74HC595 shift register IC connected to my Arduino board to drive 8 RGB LED modules. The LED modules have built in resistors and require a +5V at anode which I provide from the Arduino. ...
1
vote
1
answer
84
views
Good practice to assign shift-register pins at the same time?
I'm new to bit register manipulation and am trying to set input and output values of some pins. The code sample I have on hand does it this way::
DDRD |= (1 << 2);
DDRD |= (1 &...
2
votes
0
answers
190
views
4x TPIC6B595 + 4x 7 segment display
I am going to use 4x TPIC6B595 and 4x 7 segment display with common anode.
Below You Can find vendor site of this display.
https://sklep.avt.pl/wyswietlacz-led-2-30-57mm-zielony-wa.html
Here is my ...
1
vote
1
answer
63
views
Arduino uno - 4digit 7seg display via 74HC595 keeps blinking
I am trying to get my 4 digit display (SH5461AS) count from 0 to 9 based on millis() function.
The problem is that it keeps blinking. Even if I display just one number, it shows then it goes black ...
0
votes
1
answer
182
views
74HC595N breaks when not connected to 5V
I'm trying to build a simple LED controller using this shift register, however when I remove the 5V power source, the device breaks down. The error message was : "This device broke because of: ...
0
votes
2
answers
200
views
Shiftout only handles one shift register at a time
I am making a 7x10 led matrix and I am having problems with the shiftout function. It is only able to show me the output in one shiftout register at a time. How can I fix it?
For example:
void setup()...
0
votes
2
answers
423
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 ...
1
vote
1
answer
85
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 ...
1
vote
1
answer
236
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 ...
2
votes
2
answers
621
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 ...
1
vote
1
answer
88
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 ...
0
votes
1
answer
137
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 ...
1
vote
1
answer
113
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 = ...
2
votes
2
answers
7k
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 ...
0
votes
1
answer
133
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 ...
1
vote
1
answer
1k
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 ...
3
votes
1
answer
6k
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 (...
2
votes
1
answer
76
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 ...
0
votes
2
answers
126
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 ...
0
votes
2
answers
72
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 ...
0
votes
1
answer
145
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 ...
1
vote
1
answer
262
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 ...
1
vote
1
answer
506
views
How can I connect an ESP8266-01 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, the ESP8266 datasheet, and I also ...
-1
votes
1
answer
73
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 ...
0
votes
1
answer
95
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 ...
-1
votes
1
answer
165
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 ...
0
votes
1
answer
258
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 ...
-1
votes
1
answer
433
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 < ...
1
vote
2
answers
3k
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++) {
...
1
vote
0
answers
105
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 ...
0
votes
1
answer
45
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 ...
1
vote
1
answer
115
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 . ...
0
votes
1
answer
2k
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'...
1
vote
1
answer
476
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 ...
1
vote
0
answers
772
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.
#...
0
votes
1
answer
340
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 ...
2
votes
0
answers
517
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 ...
1
vote
1
answer
3k
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 ...
1
vote
0
answers
280
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 ...
-1
votes
3
answers
4k
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 ...
2
votes
3
answers
149
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
1
answer
2k
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
2
answers
942
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
1
answer
541
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
1
answer
480
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
1
answer
333
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
1
answer
507
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
1
answer
412
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
2
answers
338
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 ...
2
votes
3
answers
484
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);
...