Skip to content

ATmega128 experiments for Interrupt, PWM, LCD, USART, Sensor, etc. All Demo videos:

Notifications You must be signed in to change notification settings

nh9k/Microcomputer-ATmega128

Repository files navigation

Microcomputer-ATmega128

Outline

1. LED on-off Detail report
2. Switch debouncing Detail report
3. 7-Segment LED display Detail report
4. Control motor velocity using PWM Detail report
5. LCD display and print float type Detail report
6. USART serial communication Detail report
7. Rhythm game using Ultrasonic sensor Detail report
8. Author All Demo video

1. LED on-off

  1. Just on/off LED
  2. Using Interrupt for on/off LED
    figure1

Full Demo video Link
See pdf file for details in folder 1-LED-on-off

2. Switch debouncing

Measure the phenomenon Bounce
figure1 figure2

Debouncing

  1. Using Delay - Software way
  2. Using Capacior - Hardware way

Full Demo video Link
See pdf file for details in folder 2-Switch-debouncing

3. 7-Segment LED display

Schematic
figure1

7-Segment Common Anode Type S-5263ASR1
figure2 figure3 figure4
Transistor MPS2907A
figure5 figure6 figure7

Full Demo video Link
short-demo

See pdf file for details in folder 3-7-Segment-LED-display

4. Control motor velocity using PWM

Driving motor Schematic for 7 Segment
figure2 figure1

Full Demo video Link
frame_242

See pdf file for details in folder 4-Control-motor-velocity-using-PWM

5. LCD display and print float type

Schematic figure1

Potentiometer 3362 Series (50k ohm) 3362P-1-503
figure2 figure3

Full Demo video Link
frame

See pdf file for details in folder 5-LCD-display-and-print-float-type

6. USART serial communication

Full Demo video Link

demo-short

See pdf file for details in folder 6-USART-serial-communication

7. Rhythm game using Ultrasonic sensor

Schematic using OrCAD Schematic

Ultrasonic sensor datasheet

HC-SR04 electric parameter
1 2

driving ultrasonic sensor

  1. Input 10us length pulse through TRIGGER pin
  2. The sensor transmits ultrasonic waves toward the front
  3. Calculate the length of time that the ultrasonic wave reflected by the object
  4. The ECHO pin outputs a pulse proportional to the length of time.

Full Demo video Link

demo-short

See pdf file for details in folder 7-Rhythm-game-using-Ultrasonic-sensor

8. Author

Nanhee Kim / @nh9k / PersonalBlog

Releases

No releases published

Packages

No packages published

Languages