Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
simplefoc
/
Arduino-FOC-drivers
Public
Notifications
You must be signed in to change notification settings
Fork
106
Star
255
Code
Issues
18
Pull requests
5
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
DO NOT MERGE WIP. Add support for external SPI ADC on rp2040 and rp2350
- #65
#65
Draft
thomasfla
wants to merge 11 commits into
simplefoc:rp2350_current_sense
simplefoc/Arduino-FOC-drivers:rp2350_current_sense
from
thomasfla:rp2350_current_sense
thomasfla/Arduino-FOC-drivers:rp2350_current_sense
Copy head branch name to clipboard
Conversation
Commits
11
(11)
Checks
Files changed
Draft
DO NOT MERGE WIP. Add support for external SPI ADC on rp2040 and rp2350
#65
thomasfla
wants to merge 11 commits into
simplefoc:rp2350_current_sense
simplefoc/Arduino-FOC-drivers:rp2350_current_sense
from
thomasfla:rp2350_current_sense
thomasfla/Arduino-FOC-drivers:rp2350_current_sense
Copy head branch name to clipboard
Commits
Commits on Aug 27, 2025
Add a PIO program for ADC bu79100g, work in progress
thomasfla
committed
39806d8
View commit details
Copy full SHA for 39806d8
Browse repository at this point
add the option to select any trigger pin.
thomasfla
committed
9268cf3
View commit details
Copy full SHA for 9268cf3
Browse repository at this point
add a bit more info and dev status in readme.
thomasfla
committed
3f815f8
View commit details
Copy full SHA for 3f815f8
Browse repository at this point
Commits on Sep 2, 2025
first working version of a PIO to DMA setup without CPU calls. Transmitting 64bits per samples, in a ring buffer from witch the CPU can take the last samples.
thomasfla
committed
cc97db0
View commit details
Copy full SHA for cc97db0
Browse repository at this point
Commits on Sep 3, 2025
add code to read the current from last measurement in buffer.
thomasfla
committed
5e54639
View commit details
Copy full SHA for 5e54639
Browse repository at this point
make interleaving inline, todo optim (2.27us to read and decode the adc values from buffer)
thomasfla
committed
4aa83b6
View commit details
Copy full SHA for 4aa83b6
Browse repository at this point
Commits on Sep 4, 2025
Fix bit order, edge sampling and deinterleaving, First working version, validated on RP2350 with 3 ADCs
thomasfla
committed
b373096
View commit details
Copy full SHA for b373096
Browse repository at this point
Commits on Sep 5, 2025
Optimize de-interleaving (getPhaseCurrents() < 1uS on Rp2350), Unroll the loop, only do abc, only 12bits
thomasfla
committed
2385915
View commit details
Copy full SHA for 2385915
Browse repository at this point
Commits on Sep 8, 2025
Document the internal design in readme
thomasfla
committed
2d8b529
View commit details
Copy full SHA for 2d8b529
Browse repository at this point
Commits on Sep 11, 2025
Make pio number a settable parameter, so we can have multiple motor using the same PIO with different state machine, ans also be compatible with other library that uses other PIOs (encoder for exam…
Show description for ff1108c
thomasfla
committed
ff1108c
View commit details
Copy full SHA for ff1108c
Browse repository at this point
#if defined(ARDUINO_ARCH_RP2040)
thomasfla
committed
488eff6
View commit details
Copy full SHA for 488eff6
Browse repository at this point
You can’t perform that action at this time.