{"id":18577057,"url":"https://github.com/brianlesko/pi-pico-pwm","last_synced_at":"2026-01-23T06:22:53.890Z","repository":{"id":254372086,"uuid":"846328754","full_name":"BrianLesko/pi-pico-pwm","owner":"BrianLesko","description":"use the raspberry pi pico, a microcontroller, to control a servo motor using pulse with modulation. This is the bare minimum code to get PWM working on the pico for a servo motor. Written in purely C/C++. This microcontroller can also work with MicroPython","archived":false,"fork":false,"pushed_at":"2024-08-24T17:04:23.000Z","size":630,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-16T01:11:15.506Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BrianLesko.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-23T01:27:57.000Z","updated_at":"2024-08-24T17:04:26.000Z","dependencies_parsed_at":"2024-11-06T23:30:38.666Z","dependency_job_id":"776d883a-7cae-4602-9298-c450abd7c47b","html_url":"https://github.com/BrianLesko/pi-pico-pwm","commit_stats":null,"previous_names":["brianlesko/pi-pico-pwm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BrianLesko/pi-pico-pwm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLesko%2Fpi-pico-pwm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLesko%2Fpi-pico-pwm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLesko%2Fpi-pico-pwm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLesko%2Fpi-pico-pwm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrianLesko","download_url":"https://codeload.github.com/BrianLesko/pi-pico-pwm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLesko%2Fpi-pico-pwm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28682259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-06T23:27:40.329Z","updated_at":"2026-01-23T06:22:53.875Z","avatar_url":"https://github.com/BrianLesko.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Pico PWM Microcontroller\nControl hardware with low voltage pulse width modulation and the [raspberry pi pico](https://www.raspberrypi.com/products/raspberry-pi-pico-2/), a very cheap and fast microcontroller. Capable of running code in micropython or C/C++, the pico is used here to control a servo motor\n\n\u0026nbsp;\n\n\u003cdiv align=\"center\"\u003e\u003cimg src=\"docs/preview.gif\" width=\"800\"\u003e\u003c/div\u003e\n\n\u0026nbsp;\n\n## Software Dependencies\n- `VS Code`: Integrated development environment.\n- `Pico Extension`: VS Code extension for Pi Pico development.\n- `CMake`: Build system generator.\n- `GNU Arm Embedded Toolchain`: Compiler for ARM Cortex-M microcontrollers.\n- `Pico SDK`: Software Development Kit for Raspberry Pi Pico.\n\n\u0026nbsp;\n\n## Hardware Dependencies\nThe Pi Pico 1 or 2 will work with this code\n\n## Run this project on your own\n```\ngit clone https://github.com/BrianLesko/pi-pico-pwm\ncd repository\nmkdir build\ncd build\ncmake ..\nmake\n# Copy the .uf2 file to the Pico's USB drive \n```\n\n\u0026nbsp;\n\n## Repository Structure\n```\nrepository/\n├── CMakeLists.txt          # CMake configuration file for building the project\n├── build/                  # Directory for build output files\n├── hello_pwm.c             # Main source code file for PWM control\n├── pico_sdk_import.cmake   # CMake file to import the Pico SDK\n└── readme.md               # Project documentation and instructions\n```\n\n\u0026nbsp;\n\n## Topics \n```\nC | PWM | Raspberry Pi Pico | Microcontroller | Embedded Systems \nCMake | Hardware Control | Servo Motor | SDK | Electronics\n```\n\u0026nbsp;\n\n\u003chr\u003e\n\n\u0026nbsp;\n\n\u003cdiv align=\"center\"\u003e\n\n\n\n╭━━╮╭━━━┳━━┳━━━┳━╮╱╭╮        ╭╮╱╱╭━━━┳━━━┳╮╭━┳━━━╮\n┃╭╮┃┃╭━╮┣┫┣┫╭━╮┃┃╰╮┃┃        ┃┃╱╱┃╭━━┫╭━╮┃┃┃╭┫╭━╮┃\n┃╰╯╰┫╰━╯┃┃┃┃┃╱┃┃╭╮╰╯┃        ┃┃╱╱┃╰━━┫╰━━┫╰╯╯┃┃╱┃┃\n┃╭━╮┃╭╮╭╯┃┃┃╰━╯┃┃╰╮┃┃        ┃┃╱╭┫╭━━┻━━╮┃╭╮┃┃┃╱┃┃\n┃╰━╯┃┃┃╰┳┫┣┫╭━╮┃┃╱┃┃┃        ┃╰━╯┃╰━━┫╰━╯┃┃┃╰┫╰━╯┃\n╰━━━┻╯╰━┻━━┻╯╱╰┻╯╱╰━╯        ╰━━━┻━━━┻━━━┻╯╰━┻━━━╯\n  \n\n\n\u0026nbsp;\n\n\n\u003ca href=\"https://twitter.com/BrianJosephLeko\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/BrianLesko/BrianLesko/main/.socials/svg-grey/x.svg\" width=\"30\" alt=\"X Logo\"\u003e\u003c/a\u003e \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u003ca href=\"https://github.com/BrianLesko\"\u003e\u003cimg src=\"https://github.com/BrianLesko/BrianLesko/blob/main/.socials/svg-grey/github.svg\" width=\"30\" alt=\"GitHub\"\u003e\u003c/a\u003e \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u003ca href=\"https://www.linkedin.com/in/brianlesko/\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/BrianLesko/BrianLesko/main/.socials/svg-grey/linkedin.svg\" width=\"30\" alt=\"LinkedIn\"\u003e\u003c/a\u003e\n\nfollow all of these for pizza :)\n\n\u003c/div\u003e\n\n\n\u0026nbsp;\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianlesko%2Fpi-pico-pwm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianlesko%2Fpi-pico-pwm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianlesko%2Fpi-pico-pwm/lists"}