Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```
 


 

╭━━╮╭━━━┳━━┳━━━┳━╮╱╭╮ ╭╮╱╱╭━━━┳━━━┳╮╭━┳━━━╮
┃╭╮┃┃╭━╮┣┫┣┫╭━╮┃┃╰╮┃┃ ┃┃╱╱┃╭━━┫╭━╮┃┃┃╭┫╭━╮┃
┃╰╯╰┫╰━╯┃┃┃┃┃╱┃┃╭╮╰╯┃ ┃┃╱╱┃╰━━┫╰━━┫╰╯╯┃┃╱┃┃
┃╭━╮┃╭╮╭╯┃┃┃╰━╯┃┃╰╮┃┃ ┃┃╱╭┫╭━━┻━━╮┃╭╮┃┃┃╱┃┃
┃╰━╯┃┃┃╰┳┫┣┫╭━╮┃┃╱┃┃┃ ┃╰━╯┃╰━━┫╰━╯┃┃┃╰┫╰━╯┃
╰━━━┻╯╰━┻━━┻╯╱╰┻╯╱╰━╯ ╰━━━┻━━━┻━━━┻╯╰━┻━━━╯

 

X Logo             GitHub             LinkedIn

follow all of these for pizza :)