7 Segment display binary to decimal

7segmentdisplaybinaryswitches

I have a few questions about 7-segment LED displays.

When we build a circuit using 7 segment (common-anode) and decoder (7447), we also use 4 tactile switches to make combinations. Should I directly connect switches to Vcc or ground (I have no knowledge about that) or what should I do with switches, after completing rest of circuit i.e. resistors to IC, IC to Vcc and display to Vcc?

I still need the answer but I think I did it!

Picture of my 7-segment display circuit

Best Answer

It is not recommended lo leave logic inputs floating. You should use a pull-down / pull-up resistor (see Spehro Pefhany's comment).

schematic

simulate this circuit – Schematic created using CircuitLab

This circuit inputs low level by default (switch open). If you press the switch then it inputs high level.

schematic

simulate this circuit

This circuit inputs high level by default (switch open). If you press the switch then it inputs low level.