{"id":19371381,"url":"https://github.com/amid68/dimmable-led-with-potentiometer","last_synced_at":"2026-05-16T04:07:30.154Z","repository":{"id":255924046,"uuid":"853895384","full_name":"Amid68/Dimmable-LED-with-Potentiometer","owner":"Amid68","description":"This Arduino project reads an analog value from pin A5 and converts it into a voltage value between 0 and 5 volts. The voltage is then printed to the serial monitor every 500 milliseconds.","archived":false,"fork":false,"pushed_at":"2024-09-07T21:00:34.000Z","size":1133,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-07T00:38:05.233Z","etag":null,"topics":["arduino","led","potentiometer"],"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/Amid68.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":"2024-09-07T20:44:56.000Z","updated_at":"2024-10-26T13:32:45.000Z","dependencies_parsed_at":"2024-09-07T22:20:04.950Z","dependency_job_id":"a4a0f5a3-5a44-4603-9fc3-2ba1efc1e511","html_url":"https://github.com/Amid68/Dimmable-LED-with-Potentiometer","commit_stats":null,"previous_names":["amid68/dimmable-led-with-potentiometer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amid68%2FDimmable-LED-with-Potentiometer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amid68%2FDimmable-LED-with-Potentiometer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amid68%2FDimmable-LED-with-Potentiometer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amid68%2FDimmable-LED-with-Potentiometer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amid68","download_url":"https://codeload.github.com/Amid68/Dimmable-LED-with-Potentiometer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240494998,"owners_count":19810528,"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","led","potentiometer"],"created_at":"2024-11-10T08:18:18.858Z","updated_at":"2026-05-16T04:07:25.108Z","avatar_url":"https://github.com/Amid68.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dimmable-LED-with-Potentiometer\nThis Arduino project reads an analog value from pin A5 and converts it into a voltage value between 0 and 5 volts. The voltage is then printed to the serial monitor every 500 milliseconds.\n\n## Hardware Setup\n\n![Arduino Setup](setup.jpg)\n\n## Hardware Requirements\n\n- Arduino board (e.g., Uno, Mega)\n- Potentiometer connected to pin A5\n- LED\n- Resistor (appropriate value to limit current to the LED)\n- USB cable for connecting the Arduino to a computer\n\n## Software Requirements\n\n- Arduino IDE\n\n## How it Works\n\n1. The `analogRead()` function reads the voltage value from the analog pin A5. \n2. The value is scaled from a 10-bit (0-1023) range to a voltage range (0-5V) using the formula:\n\n   ```\n   Voltage = (5.0 / 1023.0) * analogRead(ReadPin)\n   ```\n\n3. The calculated voltage is sent to the serial monitor for display.\n4. The reading is repeated every 500 milliseconds.\n\n## **Warning**\n\nWhen using a potentiometer in this setup, **do not reduce the resistance too much**, as this could cause too much current to flow through the LED, potentially **burning it out**. Always ensure a proper current-limiting resistor is used in series with the LED to protect it.\n\n## Usage\n\n1. Upload the code to your Arduino board using the Arduino IDE.\n2. Open the serial monitor to view the real-time voltage readings from pin A5.\n\n## License\n\nThis project is open-source and available for personal or educational use.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famid68%2Fdimmable-led-with-potentiometer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famid68%2Fdimmable-led-with-potentiometer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famid68%2Fdimmable-led-with-potentiometer/lists"}