Skip to content

LeoTomy/Timer-Programming-with-Arduino-Nano--

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task 3 – Timer Programming with Arduino Nano

License Top language Platform
Status

This project focuses on Timer/Counter programming, PWM generation, and ADC integration on the Arduino Nano (ATmega328P) without using Arduino libraries. All functionality is implemented at register level.


📌 Overview

The project demonstrates how to:

  • Read analog input values using the ADC.
  • Generate a PWM signal using timers to control a servo motor.
  • Use voltage thresholds to trigger LED behaviors (blinking or dimming).
  • Apply embedded C programming concepts directly on microcontroller registers.

⚡ Features

  • Potentiometer input (0–5 V) → controls servo position (0°–180°).
  • PWM output drives a servo motor.
  • LED behavior:
    • Below 2.5 V → LED dims proportionally.
    • Above 2.5 V → LED blinks with 1s interval.
  • No Arduino libraries used → all code works at hardware register level.

🛠️ Hardware Setup


🚀 How to Run

  1. Flash the C code to your Arduino Nano using AVR-GCC or Arduino IDE (register-level).
  2. Connect the hardware as described.
  3. Adjust the potentiometer and observe servo + LED behavior.

📖 License

This project is licensed under the MIT License – free to use, modify, and distribute.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages