Smart Car
사용 보드 : STM32 F429ZI Nucleo144 사용 툴 : STM32CubeIDE 사용 언어 : C 사용 부품 : Ultrasonic Sensor, Servo Motor, DC Motor, Motor Driver, IR Remote Control, IR Receive Module 주 기능 Line Tracer를 사용한 방향 제어 Motor Driver, DC Motor를 사용한 바퀴 제어 IR Remote Control을 활용한 시동 Timer 6번, 1초 주기 인터럽트 Timer 7번, 0.5초 주기 인터럽트 PA6 : Timer 3번, 바퀴 속도 조절 PWM PF7 : Timer 11번, Bracket 회전 PWM PE5 : Timer 9번, 초음파 Echo 감지 PA15 : Linetrac..
FPGA 순차 논리 회로
사용 툴 : Xilinx Vivado 언어 : Verilog HDL 보드 : Zybo z7-20 SR 래치(SR Latch) module SR_latch( input S, input R, output Q, output Qbar ); nor (Q, R, Qbar); nor (Qbar, S, Q); endmodule D 래치(D Latch) module D_latch( input D, E, output Q, Qbar ); wire Dbar, S, R; not (Dbar, D); and (R, E, Dbar); and (S, E, D); SR_latch G (.S(S), .R(R), .Q(Q), .Qbar(Qbar)); endmodule D 플립플롭(D Flip Flop) module D_flip_flop( ..
FPGA 조합 논리 회로
사용 툴 : Xilinx Vivado 언어 : Verilog HDL 보드 : Zybo z7-20 반가산기(Half Adder) module half_adder( input X, input Y, output S, output C ); xor (S, X, Y); and (C, X, Y); endmodule 전가산기(Full Adder) module full_adder( input x, input y, input cin, output s, output cout ); wire ws, wc0, wc1; half_adder G1 (.X(x), .Y(y), .S(ws), .C(wc0)); half_adder G2 (.X(ws), .Y(cin), .S(s), .C(wc1)); or (cout, wc0, wc1); en..