{"id":21909378,"url":"https://github.com/pbergstrom90/embeddedarduino","last_synced_at":"2025-06-17T10:35:32.284Z","repository":{"id":238662058,"uuid":"784268052","full_name":"PBergstrom90/EmbeddedArduino","owner":"PBergstrom90","description":"AVR LED Control Project, based around configuring Timers, ADC, GPIO and UART in C. April 2024.","archived":false,"fork":false,"pushed_at":"2024-10-28T15:15:01.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T07:49:41.693Z","etag":null,"topics":["adc","c","embedded","embedded-c","gpio","hardware-registers","timers","uart"],"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/PBergstrom90.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,"zenodo":null}},"created_at":"2024-04-09T14:14:36.000Z","updated_at":"2024-10-28T15:15:06.000Z","dependencies_parsed_at":"2024-05-07T11:27:27.754Z","dependency_job_id":"6a346123-ab21-4c28-a34e-56724ede7c15","html_url":"https://github.com/PBergstrom90/EmbeddedArduino","commit_stats":null,"previous_names":["pbergstrom90/pontus-b-embedded-handin02","pbergstrom90/embeddedarduino"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PBergstrom90/EmbeddedArduino","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PBergstrom90%2FEmbeddedArduino","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PBergstrom90%2FEmbeddedArduino/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PBergstrom90%2FEmbeddedArduino/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PBergstrom90%2FEmbeddedArduino/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PBergstrom90","download_url":"https://codeload.github.com/PBergstrom90/EmbeddedArduino/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PBergstrom90%2FEmbeddedArduino/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260341048,"owners_count":22994582,"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":["adc","c","embedded","embedded-c","gpio","hardware-registers","timers","uart"],"created_at":"2024-11-28T17:17:15.171Z","updated_at":"2025-06-17T10:35:27.268Z","avatar_url":"https://github.com/PBergstrom90.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AVR - Programming hardwareregisters for an Arduinoboard\n\nThis repository contains five different branches, each focusing on specific tasks related to programming AVR hardware registers for Arduinoboards.\n\n## Branches and Tasks\n\n### 1. Deluppgift01-Timer1 (Timer)\n\n#### Instructions:\n\n- Configure TIMER1 to blink an LED with 200 ms on/off cycles.\n- Use GPIO code to control an LED connected to Arduino/Freenove pin 3.\n- Utilize timer compare A interrupt to toggle the LED.\n  \n### 2. Deluppgift02-ADCread (ADC from Potentiometer)\n\n#### Instructions:\n\n- Connect a potentiometer as a voltage divider to pin A0.\n- Set up ADC and read the value via hardware registers.\n- Print the read value and calculated voltage on pin A0 every second via the serial port.\n\n### 3. Deluppgift03-LEDcmd (LED Control from Command Line)\n\n#### Instructions:\n\n- Connect an LED to pin 3 (PWM capable).\n- Implement a configurable timer with Timer1.\n- Create a command interpreter that handles the command `ledpower \u003cpower\u003e \u003ctime\u003e`.\n\n### 4. Deluppgift04-ButtonCounter (Using Counter Mode with Timer1)\n\n#### Instructions:\n\n- Write a counter for the number of button presses.\n- Use Timer1 to measure the input from pin 5.\n- Print the number of button presses every second.\n\n### 5. Deluppgift05-RampLED (Control PWM up and down)\n\n#### Instructions:\n\n- Ramp an LED's power linearly from 0-255 and then down periodically.\n- Control the ramp time via a command sent through the serial port, e.g., `ledramptime 500` milliseconds.\n\n### Main \n\n- Mainbranch is currently synced with \"Deluppgift03-LEDcmd\" and does not represent the full scale of the project.\n- Please select different branches for different parts of the project.\n\n---\n\n## How to Use Each Branch\n\n1. **Clone the Repository**\n    ```bash\n    git clone \u003crepository_url\u003e\n    ```\n  \n2. **Open Project in VS Code**\n    - Navigate to the project directory in your terminal.\n    - Run `code .` to open the project in Visual Studio Code.\n\n3. **PlatformIO Extension**\n    - Make sure you have the PlatformIO extension installed in VS Code.\n    - In the PlatformIO toolbar at the bottom, select the correct board.\n    - Click on the \"Upload\" button (arrow icon) to build and upload the code to the board.\n\n4. **View Serial Monitor Output**\n    - Open the Serial Monitor by clicking on the plug icon in the PlatformIO toolbar at the bottom to view the program output.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbergstrom90%2Fembeddedarduino","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpbergstrom90%2Fembeddedarduino","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbergstrom90%2Fembeddedarduino/lists"}