목차 보기
  1. 만들 것
  2. 부품 목록
  3. 연결
  4. 스위치 위치와 표시
  5. 10 이상을 입력하면
  6. 확장해 보기
  7. 패턴도에서 먼저 만들어 보기
  8. 점검
  9. 정리
Table of contents
  1. What you will build
  2. Parts list
  3. Connections
  4. Switch positions and display
  5. If you enter 10 or more
  6. Ideas to extend it
  7. Build it in Patterndo first
  8. Checks
  9. Summary

DIP 스위치 네 개로 이진수를 입력하면 7세그먼트에 십진 숫자가 나타나는 표시기입니다. 클럭이나 카운터가 없어서 회로가 간단하고, "이진수 → 십진수 변환"과 "디코더의 역할"을 눈으로 확인하는 데 좋은 실습입니다. 이 글에서는 74LS47 디코더와 공통 애노드 FND-507, 4칸 DIP 스위치를 연결하는 방법과 스위치 위치별 표시, 10 이상 입력의 표시를 설명합니다.

만들 것

  • 4칸 DIP 스위치로 0~9에 해당하는 이진수를 만듭니다.
  • 74LS47이 이진수(BCD)를 7세그먼트 신호로 바꿉니다.
  • 공통 애노드 FND-507이 숫자를 표시합니다.

부품 목록

부품수량값
74LS47116핀 소켓
FND-5071공통 애노드
DIP 스위치14칸
풀업 저항410kΩ
세그먼트 저항7330Ω
디커플링 커패시터1100nF
5V 전원174LS 전용 4.75~5.25V

연결

DIP 스위치와 입력

각 스위치는 74LS47 입력 핀과 GND 사이에 연결하고, 입력 핀마다 10kΩ 풀업 저항을 +5V에 달아 둡니다(풀업·풀다운 저항). 스위치를 ON(닫힘) 하면 입력이 Low(0), OFF(열림)이면 풀업으로 High(1)가 됩니다.

스위치74LS47 입력자리 가중치
S1A (7번 핀)1
S2B (1번 핀)2
S3C (2번 핀)4
S4D (6번 핀)8

74LS47 제어 핀

핀이름연결의미
3LT+5V램프 테스트 끔
4BI/RBO+5V표시 끄기 입력 끔
5RBI+5V앞쪽 0 지우기 끔
16 / 8VCC / GND+5V / GND전원

출력과 FND

74LS47의 a~g 출력(13, 12, 11, 10, 9, 15, 14번)을 각각 330Ω을 거쳐 FND-507의 7, 6, 4, 2, 1, 9, 10번 핀에 연결합니다. FND의 COM(3번, 8번)은 +5V에 연결합니다. 자세한 대응은 74LS90 + 74LS47 + FND로 숫자 카운터 만들기의 표와 같습니다.

스위치 위치와 표시

ON이 0이므로 숫자를 만들 때 이진수를 뒤집어 생각해야 합니다. 원하는 숫자의 이진수에서 1인 자리는 OFF, 0인 자리는 ON으로 놓습니다.

표시 숫자이진수(D C B A)S4S3S2S1
00000ONONONON
10001ONONONOFF
20010ONONOFFON
30011ONONOFFOFF
40100ONOFFONON
50101ONOFFONOFF
60110ONOFFOFFON
70111ONOFFOFFOFF
81000OFFONONON
91001OFFONONOFF

네 스위치를 모두 OFF(1111)로 두면 15이므로 74LS47은 표시를 완전히 끕니다(공백).

10 이상을 입력하면

74LS47은 입력이 10~14(1010~1110)일 때 숫자가 아닌 특수 모양을 표시하고, 15(1111)이면 모든 세그먼트가 꺼집니다. 16진수의 A~F를 표시하는 용도는 아닙니다. 10 이상에서 공백이 나오게 하려면 CD4511 같은 디코더(10 이상에서 표시가 꺼지는 제품)를 쓰되, CD4511은 공통 캐소드용이므로 FND와 연결 방식이 달라집니다(7세그먼트 구동).

확장해 보기

  • 램프 테스트 스위치: LT(3번) 핀과 GND 사이에 택트 스위치를 달면 누르는 동안 모든 세그먼트가 켜져 FND 불량이나 배선 오류를 쉽게 찾습니다.
  • 표시 끄기: BI/RBO(4번)를 스위치로 GND에 연결하면 입력과 무관하게 표시가 꺼집니다.
  • 소수점 추가: 소수점(5번 핀)에 저항과 스위치를 달면 소수점을 켤 수 있습니다.

패턴도에서 먼저 만들어 보기

패턴도에는 4채널 DIP 스위치, 74LS47, FND-507이 있어 이 회로를 납땜 전에 에디터에서 먼저 만들 수 있습니다. DIP 스위치를 바꿔 가며 표시되는 숫자를 확인하고, 시뮬레이션에서 74LS47의 각 출력 핀이 HIGH·LOW로 어떻게 바뀌는지 핀 위에 마우스를 올려 보세요. 사용법은 패턴도 시뮬레이션 사용법에 있습니다.

점검

증상확인할 곳
표시가 전혀 없음FND COM의 +5V, 74LS47 전원(16번·8번), 스위치가 모두 OFF인지
숫자가 틀림입력 핀 순서(A=7번, B=1번, C=2번, D=6번), 스위치 ON/OFF 반전
일부 세그먼트가 안 켜짐해당 세그먼트의 저항과 FND 핀, 냉납
모든 세그먼트가 켜짐LT 핀이 GND에 연결됨

정리

DIP 스위치로 74LS47의 입력을 Low로 당겨 이진수를 만들고, 결과가 FND에 십진수로 표시됩니다. ON이 0이라는 점만 기억하면 위 표대로 숫자를 만들 수 있습니다. 클럭으로 자동으로 올라가는 버전은 숫자 카운터를 참고하세요.

This is a display where entering a binary number with four DIP switches shows a decimal digit on a seven-segment display. With no clock or counter, the circuit is simple, and it is a good exercise for seeing "binary to decimal conversion" and "the role of a decoder" with your own eyes. This article covers how to connect a 74LS47 decoder, a common-anode FND-507, and a 4-position DIP switch, the display for each switch position, and what is shown for inputs of 10 and above.

What you will build

  • Make a binary number for 0 to 9 with a 4-position DIP switch.
  • The 74LS47 converts the binary number (BCD) to seven-segment signals.
  • A common-anode FND-507 displays the digit.

Parts list

PartQtyValue
74LS47116-pin socket
FND-5071Common anode
DIP switch14-position
Pull-up resistors410 kΩ
Segment resistors7330 Ω
Decoupling capacitor1100 nF
5 V supply14.75–5.25 V for the 74LS

Connections

DIP switch and inputs

Connect each switch between a 74LS47 input pin and GND, and attach a 10 kΩ pull-up resistor from each input pin to +5V (Pull-Up and Pull-Down Resistors). When a switch is ON (closed) the input is Low (0), and when OFF (open) the pull-up makes it High (1).

Switch74LS47 inputPlace value
S1A (pin 7)1
S2B (pin 1)2
S3C (pin 2)4
S4D (pin 6)8

74LS47 control pins

PinNameConnectionMeaning
3LT+5VLamp test off
4BI/RBO+5VBlanking input off
5RBI+5VLeading-zero blanking off
16 / 8VCC / GND+5V / GNDPower

Outputs and the FND

Connect the a to g outputs of the 74LS47 (pins 13, 12, 11, 10, 9, 15, 14) through 330 Ω each to pins 7, 6, 4, 2, 1, 9, 10 of the FND-507. Connect the FND's COM pins (3 and 8) to +5V. The detailed correspondence is the same as the table in A 0–9 Digit Counter with a 74LS90, 74LS47, and Seven-Segment Display.

Switch positions and display

Because ON is 0, you have to think of the binary number inverted when making a digit. In the binary number of the digit you want, set the places with 1 to OFF and the places with 0 to ON.

Digit shownBinary (D C B A)S4S3S2S1
00000ONONONON
10001ONONONOFF
20010ONONOFFON
30011ONONOFFOFF
40100ONOFFONON
50101ONOFFONOFF
60110ONOFFOFFON
70111ONOFFOFFOFF
81000OFFONONON
91001OFFONONOFF

If you leave all four switches OFF (1111), that is 15, so the 74LS47 blanks the display completely (nothing shown).

If you enter 10 or more

For inputs of 10 to 14 (1010 to 1110) the 74LS47 shows special non-digit shapes, and for 15 (1111) all segments go off. It is not meant to display hexadecimal A to F. To get a blank at 10 and above, use a decoder like the CD4511 (a part whose display turns off at 10 and above), but the CD4511 is for common cathode, so the connection to the FND differs (Driving Seven-Segment Displays).

Ideas to extend it

  • Lamp test switch: put a tact switch between the LT pin (pin 3) and GND, and while you press it all segments light, making it easy to find a bad FND or a wiring error.
  • Blanking: connect BI/RBO (pin 4) to GND with a switch and the display goes off regardless of the input.
  • Add the decimal point: put a resistor and a switch on the decimal point (pin 5) to light it.

Build it in Patterndo first

Patterndo has the 4-channel DIP switch, the 74LS47, and the FND-507, so you can build this circuit in the editor before soldering. Change the DIP switches and check the digit shown, and in simulation hover over the pins to see how each output of the 74LS47 changes between HIGH and LOW. How to use it is in Using Patterndo Simulation.

Checks

SymptomWhere to check
Nothing displays at all+5V on the FND COM, the 74LS47 power (pins 16 and 8), whether all switches are OFF
Wrong digitInput pin order (A = pin 7, B = pin 1, C = pin 2, D = pin 6), ON/OFF inversion of the switches
Some segments do not lightThat segment's resistor and the FND pin, a cold joint
All segments lightThe LT pin is connected to GND

Summary

You make a binary number by pulling the 74LS47 inputs Low with the DIP switches, and the result shows on the FND as a decimal digit. Remembering only that ON is 0, you can make digits as in the table above. For a version that climbs automatically with a clock, see the digit counter.

이 글은 학습 목적의 일반적인 안내입니다. 부품마다 규격과 핀 배열이 다를 수 있으니 실제 작업 전에는 사용하는 부품의 데이터시트를 확인하세요. 안전과 관련된 작업은 항목별 주의 사항을 먼저 읽고 진행하세요.This article is general guidance for learning purposes. Specifications and pinouts differ between parts, so check the datasheet of the part you use before real work. For safety-related work, read the cautions for each item first.