Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
classes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
academy
classes
Commits
df9151ad
Commit
df9151ad
authored
8 months ago
by
Neil Gershenfeld
Browse files
Options
Downloads
Patches
Plain Diff
wip
parent
1016369e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
output_devices/H-bridge/DRV8251A/hello.DRV8251A.RP2040.stepper.py
+6
-2
6 additions, 2 deletions
...evices/H-bridge/DRV8251A/hello.DRV8251A.RP2040.stepper.py
with
6 additions
and
2 deletions
output_devices/H-bridge/DRV8251A/hello.DRV8251A.RP2040.stepper.py
+
6
−
2
View file @
df9151ad
...
...
@@ -17,10 +17,14 @@ from rp2 import PIO,StateMachine,asm_pio
import
machine
,
sys
,
time
,
math
from
machine
import
Pin
,
ADC
#
# overlcock for faster PWM
#
machine
.
freq
(
250_000_000
)
#
# H-bridge settings
#
pwm_freq
=
1
00_000_000
pwm_range
=
500
#
1
00 kHz
pwm_freq
=
2
00_000_000
pwm_range
=
500
#
2
00 kHz
, 2 instructions
pwm_pinA0
=
27
pwm_pinA1
=
28
pwm_pinB0
=
7
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment