todbot / qtpy-knob Goto Github PK
View Code? Open in Web Editor NEWQT Py Media Knob using rotary encoder & neopixel ring
QT Py Media Knob using rotary encoder & neopixel ring
Noticed a couple of things when using the specified Bourns PEC11-4215F-S24 encoder:
Otherwise, it's a fantastic project and very easy to make. Yes, I used a Seeeduino XIAO, too
I made the central part of the diffuser thinner so the lock nut would fasten. Excuse the OpenSCAD, it's all I know:
bbox = [ 49.988811, 49.994404, 2.000000 ];
minima = [ -25.000000, -24.997202, 2.700000 ];
difference() {
translate([-bbox.x/2, -bbox.y/2, 0])translate(-minima)import("qtpyknob-diffuser.stl");
translate([0,0,0.8])cylinder(d=bbox.x/2, h=bbox.z);
}
For the D-shaft cutout, a blob of Blu Tack of just the right size mostly fixes the issue.
Thank you for this piece of code and great idea.
Just a suggestion to avoid "-" into python file name and user "_" instead.
This permit to never rename the original file from the project and have a code.py like this:
import qtpy_knob_simple
#import qtpy_knob_scroller
#import qtpy_knob
PS: I have both QT-Py and Seeduino XIAO in the same form factor... my QT-Py is more precious because it has reset button, Stemma-QT pin, RGB. So I wanted to rename the pin for XIAO use... but there is no need, your code works out of the box on the same physical pin with the same code. Only the through hole seems smaller on the XIAO so it does not fit perfectly flush. Did I mention it does also kind of work without soldering!!!
le.
main.py output:
Traceback (most recent call last):
File "main.py", line 30, in
RuntimeError: Pins must be sequential GPIO pins
Code done running.
Press any key to enter the REPL. Use CTRL-D to reload.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.