{"id":22785890,"url":"https://github.com/simonwaldherr/rpi-examples","last_synced_at":"2025-04-15T20:10:23.986Z","repository":{"id":59969590,"uuid":"539652148","full_name":"SimonWaldherr/rpi-examples","owner":"SimonWaldherr","description":"Raspberry Pi Golang Examples","archived":false,"fork":false,"pushed_at":"2024-04-26T15:31:39.000Z","size":18,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T00:41:19.522Z","etag":null,"topics":["examples","go","golang","howto","hx711","pca9685","pcf8574","raspberry","raspberry-pi","raspberrypi","ws2812"],"latest_commit_sha":null,"homepage":"","language":"Go","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/SimonWaldherr.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":"2022-09-21T19:26:04.000Z","updated_at":"2024-04-26T15:31:42.000Z","dependencies_parsed_at":"2024-04-26T16:45:40.932Z","dependency_job_id":"4b907f8f-768f-43c7-9cf9-7ce2efa3d629","html_url":"https://github.com/SimonWaldherr/rpi-examples","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"82b98849bb894d38ce20633aaf833e94fb4c6aaa"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonWaldherr%2Frpi-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonWaldherr%2Frpi-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonWaldherr%2Frpi-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonWaldherr%2Frpi-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SimonWaldherr","download_url":"https://codeload.github.com/SimonWaldherr/rpi-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249145303,"owners_count":21219966,"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":["examples","go","golang","howto","hx711","pca9685","pcf8574","raspberry","raspberry-pi","raspberrypi","ws2812"],"created_at":"2024-12-11T23:08:21.976Z","updated_at":"2025-04-15T20:10:23.963Z","avatar_url":"https://github.com/SimonWaldherr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raspberry Pi Golang Examples\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/simonwaldherr/rpi-examples)](https://goreportcard.com/report/github.com/simonwaldherr/rpi-examples)  \n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)  \n\nIf you liked this project, you may also like one of these projects [rp2040-examples](https://github.com/SimonWaldherr/rp2040-examples), [golang-examples](https://github.com/SimonWaldherr/golang-examples), [golang-benchmarks](https://github.com/SimonWaldherr/golang-benchmarks) or [sql-examples](https://github.com/SimonWaldherr/sql-examples).\n\n## About\n\nThese examples explain how to use different [Raspberry Pi](https://www.raspberrypi.org) accessories and hardware with [Golang](https://golang.org). There will be more examples from time to time.\n\nif you like, feel free to add more examples. Many thanks to all [contributors](https://github.com/SimonWaldherr/rpi-examples/graphs/contributors).\n\n## Install go(lang)\n\nwith [homebrew](http://mxcl.github.io/homebrew/):\n\n```Shell\nsudo brew install go\n```\n\nwith [apt](http://packages.qa.debian.org/a/apt.html)-get:\n\n```Shell\nsudo apt-get install golang\n```\n\n[install Golang manually](https://golang.org/doc/install)\nor\n[compile it yourself](https://golang.org/doc/install/source)\n\n## Get a Pi\n\nof course you also need a Raspberry Pi, normaly you can get one at [Amazon](https://amzn.to/3xDegoT), [BerryBase](https://www.berrybase.de/raspberry-pi/) or [Reichelt](https://www.reichelt.de/raspberry-pi-compute-modul-4-8gb-ram-8gb-emmc-wlan-rpi-cm4w-8gb8gb-p290550.html?\u0026nbc=1).  \nSometimes Raspberrys are unfortunately difficult to obtain, but there is the great website [rpilocator](https://rpilocator.com), which shows very clearly which dealers have the various Raspberry models on stock. \n\n## Examples\n\n### [NAU7802](https://github.com/SimonWaldherr/rpi-examples/tree/master/nau7802) \nThe nau7802 is a chip that makes it easy to query load cells with the RaspberryPi via I2C. \nYou can [buy the Adafruit nau7802-board on Amazon](https://amzn.to/3ChGI1B), or [this one from SparkFun](https://amzn.to/3CkYPnk). \n\n### [HX711](https://github.com/SimonWaldherr/rpi-examples/tree/master/hx711) \nThe hx711 is a chip that makes it possible to query load cells with the RaspberryPi (or other systems, e.g. the Arduino). \nYou can [buy boards with the hx711-chip on Amazon](https://amzn.to/3LyGWFl). \nThere are also complete [sets with a hx711 board and a load cell](https://amzn.to/3xHaFWY). \n\n### [PCA9685](https://github.com/SimonWaldherr/rpi-examples/tree/master/pca9685) \nThe pca9685 is a PWM driver with 12-bit resolution (4096 steps) for up to 16 separately controllable devices with an operating voltage of up to 6V. This makes it possible to control up to 16 PWM outputs with just two pins on the RaspberryPi. \nThe pca9685 is controlled via I2C, which means that several pca9685 can be connected in a row and with up to 62 selectable addresses, up to 992 PWM outputs with 2 pins can be controlled. \nYou can [buy a great board with the pca9685-chip on Amazon](https://amzn.to/3DGVCAm). \n\n### [PCF8574](https://github.com/SimonWaldherr/rpi-examples/tree/master/pcf8574) \nThe PCF8574 is an 8-bit I/O port expander connected via the I2C bus. Anyone who has ever suffered from \"lack of pins\" in one of their applications knows what is meant. Here, too, only two pins are required to control 8 pins (per board). \nThere are some [pcf8574 boards available on Amazon](https://amzn.to/3R7sTaV).\n\n### [WS2812](https://github.com/SimonWaldherr/rpi-examples/tree/master/ws2812) \nThe ws2812 is an \"intelligent\" LED, the chip not only contains 3 LEDs (in the colors red, green and blue), but also an IC which enables the control of the LEDs. The LEDs can be controlled in brightness and combination. The ws2812 light chains are available in a wide variety of variants, they differ in the distance between the LEDs, there are waterproof light chains, different colors of the circuit board, ... \nFor example, Amazon has this [144 \"pixel\" per meter ws2812 light chain with white PCB](https://amzn.to/3Sk0Hmm).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonwaldherr%2Frpi-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonwaldherr%2Frpi-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonwaldherr%2Frpi-examples/lists"}