{"id":37668106,"url":"https://github.com/jrhahn/pico_pi_dimmer","last_synced_at":"2026-01-16T12:00:50.531Z","repository":{"id":43807050,"uuid":"511669491","full_name":"jrhahn/pico_pi_dimmer","owner":"jrhahn","description":"Remotely adapt brightness of LED stripes ","archived":false,"fork":false,"pushed_at":"2024-01-26T20:43:49.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-01-26T21:37:05.051Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/jrhahn.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}},"created_at":"2022-07-07T20:45:05.000Z","updated_at":"2024-01-26T21:37:05.052Z","dependencies_parsed_at":"2022-07-12T18:19:49.389Z","dependency_job_id":null,"html_url":"https://github.com/jrhahn/pico_pi_dimmer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jrhahn/pico_pi_dimmer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrhahn%2Fpico_pi_dimmer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrhahn%2Fpico_pi_dimmer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrhahn%2Fpico_pi_dimmer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrhahn%2Fpico_pi_dimmer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jrhahn","download_url":"https://codeload.github.com/jrhahn/pico_pi_dimmer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrhahn%2Fpico_pi_dimmer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":"2026-01-16T12:00:32.379Z","updated_at":"2026-01-16T12:00:50.478Z","avatar_url":"https://github.com/jrhahn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dimmer for LED Stripes\nThis will set up a simple REST service on your Pi Pico that allows to set the brightness value remotely. Internally, \nthe PWM output will be scaled by the brightness value. Note that, the brightness should be in the range from 0.0 to 1.0.\n\nThere are two version of this project:\n1. The first version requires the [Pimoroni Wireless Pack](https://shop.pimoroni.com/products/pico-wireless-pack?variant=32369508581459). This is because originally the Pi Pico was not equipped with a Wifi module.\n2. The second version requires a Pi Pico with a Wifi module. \n\n## Version 1: Pi Pico with [Pimoroni Wireless Pack](https://shop.pimoroni.com/products/pico-wireless-pack?variant=32369508581459)\n\n### Hardware requirements\nA Raspberry Pi Pico is required which needs to be attached to a [Pimoroni Wireless Pack](https://shop.pimoroni.com/products/pico-wireless-pack?variant=32369508581459).\n\nFurther, I use the PWM of GPIO Pin 14 and connect it to an [amplifier](https://www.amazon.de/gp/product/B07VRCXGFY/ref=ppx_yo_dt_b_asin_title_o03_s00?ie=UTF8\u0026psc=1). \nMake sure to connect GND of GPIO Pin 14 (Pin 18 on the Pi) to GND of the amplifier. \nObviously, GPIO Pin 14 (Pin 19 on the Pi) needs to be connected to V+ of the amplifier.\nThe LED stripes need to be connected to the amplifier (power supply to input, LED stripes to the output).\n\nI used these [LED stripes](https://www.amazon.de/Pflanzenlampe-Samsung%EF%BC%86Full-Helligkeitsstufe-pflanzenlicht-Zimmerpflanzen/dp/B088QVN89Q/ref=sr_1_5?crid=2IQNDREOYV7LG\u0026keywords=led+pflanzenlampe\u0026qid=1657228824\u0026sprefix=led+pfl%2Caps%2C148\u0026sr=8-5).\nThe power supply output is 24V. \n\n### Setup\n1. Install [pimoroni-pico-v1.18.7-micropython.uf2](https://github.com/pimoroni/pimoroni-pico/releases/tag/v1.18.7) on your Pi Pico.\n2. Save [ppwhttp.py](https://github.com/pimoroni/pimoroni-pico/tree/main/micropython/examples/pico_wireless) on your Pi Pico. \n3. Adapt ```WIFI_SSID``` and ```WIFI_PASS``` in secrets.py and also upload this file to your Pi Pico.\n\nNote: As of today v1.19.x is already available. However, that version contains breaking changes and the examples including the rest server haven't been updated yet.\n\n## Version 2: Pi Pico with Wifi onboard\n\n### Hardware requirements\nSince the Wifi module is integrated on the Pi Pico, there is no need to wire an additional board. Still, the amplifier must be connected as described in the section above.\n\n## Usage\n### Option 1: Browser-based\nSimply enter the IP address of the Pico in your web browser. A simple website should appear that allows you\nto enter a brightness value. As soon as you click on enter you should see the effect on your LED stripes.\n\n### Option 2: REST call\nSimply use e.g. curl on the terminal to send a REST request. Replace ```\u003cPICO_IP_ADDRESS\u003e``` by the Pico's IP address and ```\u003cBRIGHTNESS_VALUE\u003e``` by a value between 0.0 and 1.0.\n\n```bash\ncurl -X POST \u003cPICO_IP_ADDRESS\u003e/set_brightness \\ \n     -H \"Content-Type: application/x-www-form-urlencoded\" \\ \n     -d \"brightness=\u003cBRIGHTNESS_VALUE\u003e\"\n``` \n\n## Application\nA flutter-based client app that is able to control the light dimmer can be found here: [https://github.com/jrhahn/flutter_light_control](https://github.com/jrhahn/flutter_light_control)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrhahn%2Fpico_pi_dimmer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjrhahn%2Fpico_pi_dimmer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrhahn%2Fpico_pi_dimmer/lists"}