{"id":26749368,"url":"https://github.com/pythonicforge/pwm_led_servo_control","last_synced_at":"2025-03-28T11:18:55.117Z","repository":{"id":281615264,"uuid":"945824905","full_name":"pythonicforge/PWM_LED_Servo_Control","owner":"pythonicforge","description":"A PWM-powered Arduino project that smoothly controls LED brightness and servo motor position using a potentiometer","archived":false,"fork":false,"pushed_at":"2025-03-10T07:41:12.000Z","size":517,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T11:18:48.403Z","etag":null,"topics":["arduino","embedded-systems","led-controller","potentiometer","pwm","servo-motor"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pythonicforge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-10T07:25:58.000Z","updated_at":"2025-03-10T07:44:05.000Z","dependencies_parsed_at":"2025-03-10T08:42:21.949Z","dependency_job_id":null,"html_url":"https://github.com/pythonicforge/PWM_LED_Servo_Control","commit_stats":null,"previous_names":["pythonicforge/pwm_led_servo_control"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonicforge%2FPWM_LED_Servo_Control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonicforge%2FPWM_LED_Servo_Control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonicforge%2FPWM_LED_Servo_Control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonicforge%2FPWM_LED_Servo_Control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythonicforge","download_url":"https://codeload.github.com/pythonicforge/PWM_LED_Servo_Control/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246017724,"owners_count":20710240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","embedded-systems","led-controller","potentiometer","pwm","servo-motor"],"created_at":"2025-03-28T11:18:53.034Z","updated_at":"2025-03-28T11:18:55.089Z","avatar_url":"https://github.com/pythonicforge.png","language":"C++","readme":"# _**PWM-Controlled LED \u0026 Servo Using Potentiometer 🎛️✨**_ \n\n### **Project Overview**  \nThis Arduino project demonstrates **Pulse Width Modulation (PWM)** by controlling the brightness of an **LED** and the position of a **servo motor** using a **potentiometer**. As you turn the potentiometer knob, the LED smoothly dims or brightens, while the servo motor rotates accordingly.  \n\n### **How It Works**  \n- The **potentiometer** reads an **analog input** (0–1023) from **pin A0**.  \n- The **analog value** is mapped to two ranges:\n  - **0–255** for LED brightness (PWM output to pin **10**).  \n  - **0–180°** for servo motor rotation (signal to pin **9**).  \n- The **analogWrite()** function adjusts LED brightness.  \n- The **servo.write()** function moves the servo.  \n\n### **Circuit Connections**  \n- **Potentiometer:**  \n  - Left pin → **GND**  \n  - Middle pin → **A0** (Analog Input)  \n  - Right pin → **5V**  \n- **LED:**  \n  - Anode (+) → **Pin 10** (via **resistor**)  \n  - Cathode (–) → **GND**  \n- **Servo Motor:**  \n  - VCC (Red) → **5V**  \n  - GND (Black/Brown) → **GND**  \n  - Signal (Yellow/Orange) → **Pin 9**  \n\n### **Demo (Tinkercad Simulation)**  \n[🔗 View the Project Simulation](https://www.tinkercad.com/things/b9VSYczKi9e-potentiometer-controlled-servo-and-led?sharecode=OkY8jpuE1gOwOtlxa4Cks5bIVmKN4RTRY4rDctx_wZQ) \n\n### **Future Improvements**  \n- Add an **OLED display** to show live PWM and servo angle values.  \n- Use a **button** to toggle between different PWM modes.  \n\n### **License**  \nThis project is open-source and available under the [**MIT License**](LICENSE).  ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonicforge%2Fpwm_led_servo_control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythonicforge%2Fpwm_led_servo_control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonicforge%2Fpwm_led_servo_control/lists"}