hello guys,
i am gonna tell exactly what is happening to my circuit :
i have 12 LEDs connected to a shift register (every 2 leds connected to 1 pin of the shift)
i have 4 7 segment displays (2 digits) connected to 4 shift registers
every shift register is getting GND and 5V and of course connected to arduino
for now i am working with 1 7 segment for testing and the 12 LEDs
what is happening is this : when i remove the +5 from the shift register connected to the 7 segment and the +5 of the shift register connected to the 12 LEDs, the function continue like if everything is in place !!! how the hell this shift register is taking power ?!!
for the display it works (actully i never new how it works because when all the pins are high plus the common high, the pattern showed is 8.)
CrossRoads:
Okay. What is the Vf of your LEDs and display?
Your dual-digit display, how are you controlling the multipexing to that?
You don't have everything connected to +12V and Gnd do you? Surely you are using +5?
i have written in my notebook the Max voltage of the RGB is 3.2V, about the display mmm i don't know exactly the datasheet doesn't mentioned that unfortunatly
The reason I ask about +12V is because that appears to be what you are powering everything from +12V on your schematic.
If you are connecting +12V to IO pins on your Arduino's you will damage the Atmega328s.
So before going any farther:
are the LEDs connected to +12V on the common anodes?
are the pushbuttons connected to +12V?
are the shift register's Vcc pins connected to +12V?
are the potentiometers connected to +12V
If any of those are, you need to fix that before going any farther. Nothing should be connected to +12V, only to +5V.
The only thing connected to +12V should be the barrel jack connectors.
CrossRoads:
The reason I ask about +12V is because that appears to be what you are powering everything from +12V on your schematic.
If you are connecting +12V to IO pins on your Arduino's you will damage the Atmega328s.
So before going any farther:
are the LEDs connected to +12V on the common anodes?
are the pushbuttons connected to +12V?
are the shift register's Vcc pins connected to +12V?
are the potentiometers connected to +12V
If any of those are, you need to fix that before going any farther. Nothing should be connected to +12V, only to +5V.
The only thing connected to +12V should be the barrel jack connectors.
actully now i am using a +5V and the shift register of the LEDs and the shift Register of 1 7 segment display of 2 digits, and forget about all the others but i put this schematic to how are the shifts and leds connected because it's the only schematic i draw for now
about the arduino and 12V, i connected it to the Vin
This does nothing as as an output until you set pinMode for it:
digitalWrite(13, LOW);
If you do not have +5 connected to shift register pin 16, and you are applying high signals to other pins, the internal pin protection diodes (See Input Clamp, Note 1 on page 4 of the datasheet) can conduct current to +5 internal to the shift register and provide enough current to operate from.
CrossRoads:
This does nothing as as an output until you set pinMode for it:
digitalWrite(13, LOW);
If you do not have +5 connected to shift register pin 16, and you are applying high signals to other pins, the internal pin protection diodes (See Input Clamp, Note 1 on page 4 of the datasheet) can conduct current to +5 internal to the shift register and provide enough current to operate from.
ok than this way is better isn't it ?
for(int i=0; i<20; i++){
pinMode(i, OUTPUT);
}
so what do i have to do ? to solve the problem because pattern are not working as i want, the pattern i always see is 8
what do you mean ?
changing this B11111111 ? because if your talking about this bit series i tried to change it which will change the pattern but it didn't work !!
it is connected from shift output to resistors then to display
and the common should be high to make it on, but the pattern that make the 8. shape are 11111111 that's why i feel something so wrong !!
firashelou:
it is connected from shift output to resistors then to display
and the common should be high to make it on, but the pattern that make the 8. shape are 11111111 that's why i feel something so wrong !!
The display and the shift register are connected as shown in the drawing that I've attached?
(Your documentation shows otherwise.)