Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've provided details in image.

Although, I'll once again provide in text:

IC : 74LS47N (Binary to 7-Seg Display)

7 Segment : Common Anode

M.S.B : D

L.S.B : A

This is how absurd OUTPUT is displayed by 7-Seg Disp:

INPUT (D,C,B,A to IC)___OUTPUT (7-SEG DISP)

DCBA

0000_______________2

0001_______________3

0010_______________2

0011_______________3

0100_______________b

0101_______________7

0110_______________b

0111_______________7

1000_______________c

1001_______________ɔ <--- (-_- !) lol

enter image description here

I've edited the pics, so that you may see the wirings clearly. As you can see the problem in the image itself,(i.e. the output of 7-Seg does not matches with the input to the IC).

Note: There is no problem with my connections. They are exactly as shown below:

I did the connections 5 to 6 times all over again, but all it shows is absurd and illogical results

enter image description here

share|improve this question
    
Sounds like B is stuck high. Have you verified the voltage? – Ignacio Vazquez-Abrams 2 days ago
    
@IgnacioVazquez-Abrams I did't get what you are trying to say? B(as of input) , it can be changed mechanically(as you may see the inputs are below IC provided with Male-to-Male wires colored YELLOW,ORANGE,GREY and WHITE.) As of verifying voltage, ill give you one example: When input is 0000 to IC, It gives OUTPUT 2 here for IC(i checked using multimeter and it shows)- a-4.67 b-4.70 c-0.00 d-4.69 e-4.71 f-0.00 g-4.68 (these are voltages before going through resistors - to - 7Seg) – Nitish Prajapati 2 days ago
    
He said that because if you look at your "absurd" output, it would not be inconceivable to think that input B is being held high. When you are setting the inputs with the wires, make sure they are making contact and that you are not creating shorts. Use a DVM in continuity mode to check the connections before powering on (for the correct inputs and in between inputs for shorts). – DigitalNinja 2 days ago
    
Maybe pin 1 of the chip is folded underneath. – Spehro Pefhany 2 days ago
    
No that's not the case, i tried with other ICs as well. Even changed their positions on bread board. – Nitish Prajapati 2 days ago
up vote 9 down vote accepted

The 74LS47 shows the following: $$ \begin{array}{ccccl} D & C & B & A \\ 0 & 0 & 0 & 0 & \rightarrow 0 \\ 0 & 0 & 0 & 1 & \rightarrow 1 \\ 0 & 0 & 1 & 0 & \rightarrow 2 \\ 0 & 0 & 1 & 1 & \rightarrow 3 \\ 0 & 1 & 0 & 0 & \rightarrow 4 \\ 0 & 1 & 0 & 1 & \rightarrow 5 \\ 0 & 1 & 1 & 0 & \rightarrow 6 \\ 0 & 1 & 1 & 1 & \rightarrow 7 \\ 1 & 0 & 0 & 0 & \rightarrow 8 \\ 1 & 0 & 0 & 1 & \rightarrow 9 \\ 1 & 0 & 1 & 0 & \rightarrow c \\ 1 & 0 & 1 & 1 & \rightarrow ɔ \\ 1 & 1 & 0 & 0 & \rightarrow u \\ 1 & 1 & 0 & 1 & \rightarrow 3~horizontal~lines \\ 1 & 1 & 1 & 0 & \rightarrow broken~6 \\ 1 & 1 & 1 & 1 & \rightarrow \end{array} $$

You show:

$$ \begin{array}{ccccl} D & C & B & A \\ 0 & 0 & 0 & 0 & \rightarrow 2 \\ 0 & 0 & 0 & 1 & \rightarrow 3 \\ 0 & 0 & 1 & 0 & \rightarrow 2 \\ 0 & 0 & 1 & 1 & \rightarrow 3 \\ 0 & 1 & 0 & 0 & \rightarrow b \\ 0 & 1 & 0 & 1 & \rightarrow 7 \\ 0 & 1 & 1 & 0 & \rightarrow b \\ 0 & 1 & 1 & 1 & \rightarrow 7 \\ 1 & 0 & 0 & 0 & \rightarrow c \\ 1 & 0 & 0 & 1 & \rightarrow ɔ \end{array} $$

This makes me think your B term is hard-coded to a 1 and that you are misinterpreting a 6 as a b.

Check your B term going into the 74LS47. If it is working, then I think your 74LS47 has a damaged B input.

EDIT: Good to hear that you got it working!

share|improve this answer
    
Outclassed, you guys were absolutely correct. The INPUT B was Hard-coded to 1. It took me a while to understand how to figure that out, but my sir explained it to me and got my doubts cleared. You guys are angels. Thank you. :) – Nitish Prajapati yesterday

From your table, it's pretty obvious that bit 1 is stuck on. Note that 0000 displays like 0010, 0101 like 0111, etc. This is likely a wiring error, probably a floating input.

share|improve this answer
    
Yeah it's working now, thank you, you guys are amazing. – Nitish Prajapati yesterday

It looks as if your breadboard is not wired properly. The Vcc and GND rails are in the middle of the board connected horizontally only once. You have to remember, that the two rows of the board are not connected by default. You have to place a wire between the two rows of each supply potential. Especially your Vcc and GND connections in the lower left of the board seem not to be connected to ground.

share|improve this answer
    
I'm well aware of the connections. I've properly connected the GND by placing wire between them. See pic 1.On the right of 7seg you can see a black wire. That's for positive supply.. In pic 2 at bottom most you can see a tiny black connection. That's for connecting to ground, but that's only for below row. I've not done that for above row for Vcc – Nitish Prajapati 2 days ago
    
Well, I can't see, where the GND, the yellow, white and gray lines should be plugged to comes from. Same for Vcc and the orange wire. – DPF yesterday
    
Verify your Vcc in the lower left line of the board. – DPF yesterday
    
@NitishPrajapati: I also don't see where the VCC and GND pins are connected together. You said you are "well aware of the connections". I just want to verify what you are aware of. Are you aware you have 8 power strips? Or do you think there are only 4? The 8 power strips - top first row left, top first row right, top second row left top second row right, bottom first row left, bottom first row right, bottom second row left and bottom second row right. It seems you have connected top first row left and right together and you have connected bottom second row left and right together – slebetman yesterday
    
@NitishPrajapati ... but I don't see where you are connecting top second row to the first row and I don't see where you are connecting the bottom first row to the second row – slebetman yesterday

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.