Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brianlesko/pi-pico-pwm
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
https://github.com/brianlesko/pi-pico-pwm
Last synced: about 20 hours ago
JSON representation
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
- Host: GitHub
- URL: https://github.com/brianlesko/pi-pico-pwm
- Owner: BrianLesko
- Created: 2024-08-23T01:27:57.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-24T17:04:23.000Z (3 months ago)
- Last Synced: 2024-08-25T18:24:45.645Z (2 months ago)
- Language: CMake
- Size: 615 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Pico PWM Microcontroller
Control 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
## Software Dependencies
- `VS Code`: Integrated development environment.
- `Pico Extension`: VS Code extension for Pi Pico development.
- `CMake`: Build system generator.
- `GNU Arm Embedded Toolchain`: Compiler for ARM Cortex-M microcontrollers.
- `Pico SDK`: Software Development Kit for Raspberry Pi Pico.
## Hardware Dependencies
The Pi Pico 1 or 2 will work with this code## Run this project on your own
```
git clone https://github.com/BrianLesko/pi-pico-pwm
cd repository
mkdir build
cd build
cmake ..
make
# Copy the .uf2 file to the Pico's USB drive
```
## Repository Structure
```
repository/
├── CMakeLists.txt # CMake configuration file for building the project
├── build/ # Directory for build output files
├── hello_pwm.c # Main source code file for PWM control
├── pico_sdk_import.cmake # CMake file to import the Pico SDK
└── readme.md # Project documentation and instructions
```
## Topics
```
C | PWM | Raspberry Pi Pico | Microcontroller | Embedded Systems
CMake | Hardware Control | Servo Motor | SDK | Electronics
```
╭━━╮╭━━━┳━━┳━━━┳━╮╱╭╮ ╭╮╱╱╭━━━┳━━━┳╮╭━┳━━━╮
┃╭╮┃┃╭━╮┣┫┣┫╭━╮┃┃╰╮┃┃ ┃┃╱╱┃╭━━┫╭━╮┃┃┃╭┫╭━╮┃
┃╰╯╰┫╰━╯┃┃┃┃┃╱┃┃╭╮╰╯┃ ┃┃╱╱┃╰━━┫╰━━┫╰╯╯┃┃╱┃┃
┃╭━╮┃╭╮╭╯┃┃┃╰━╯┃┃╰╮┃┃ ┃┃╱╭┫╭━━┻━━╮┃╭╮┃┃┃╱┃┃
┃╰━╯┃┃┃╰┳┫┣┫╭━╮┃┃╱┃┃┃ ┃╰━╯┃╰━━┫╰━╯┃┃┃╰┫╰━╯┃
╰━━━┻╯╰━┻━━┻╯╱╰┻╯╱╰━╯ ╰━━━┻━━━┻━━━┻╯╰━┻━━━╯
follow all of these for pizza :)