Slicer Discord
Rotary encoder / Wheel encoder – Modello 3D stampabile da Thingiverse Thingiverse

Rotary encoder / Wheel encoder

4 Download
7 Likes
0 Makes
Vai al Modello
Wheel speed
==========
Why ?
-----
Convert a binary information in a speed and with direction knowledged

### Requirement
1 GPIO (Raspberry pi)
2 endstop sensors
1 spring
3 nails
6 screws (2 by endstop and 2 for spring)

### Print parts
**Wheel**
Diameter : 50mm
4 holes so 4 states 0 and 4 states 1 for a complet revolution

** Main part **
To fix spring, wheel and sensors

** Holder **
To fix main part and spring

### What we want to get on the raspberry GPIO
number of change of state 0 -> 1 -> 0 -> 1 ... by rotation : 8

### Config
You can change settings:
- pin numbers used by 2 endstop sensors (23 & 24 by default)
- wheel diameter (5cm by default)
- number of holes in wheel (4 by default)

### Code part
Create a file "nb_turn_second.py"
Add permissions (chmod +x nb_turn_second.py"
Insert this script inside and run it with "./nb_turn_second.py"

```
#!/usr/bin/python

import RPi.GPIO as GPIO
import time

print "starting..."

pin_id = 23
Fonte
Thingiverse
Cosa serve per stampare: Intermedio Bassa affidabilità
Pezzo unico Viteria richiesta
Supporti 1/3
Assemblaggio 0/3
Impostazioni 1/3
Dimensioni piano 0/3
Post-lavorazione 1/3
Stampante
FDM / FFF
Formato file
STL
Materiale
Post-elaborazione
Viteria
Software
Cura, PrusaSlicer o simile
Ancora nessuna valutazione
Ancora nessun commento – sii il primo!

Modelli simili

6 Suggerimenti
Feed Blog Slicer Calcolatore Ricerca per immagine Invia Contatto Discord ☕ Buy me a coffee
DE EN FR ES IT NL

Aggiungi alla collezione