mirror of
https://forge.apps.education.fr/blender-edutech/blender-edutech-tutoriels.git
synced 2024-01-27 09:42:33 +01:00
Ajout des fichiers de fabrication ad hoc
This commit is contained in:
parent
a2b0a732af
commit
9dac4e71d7
BIN
labyrinthe/6-jumeaux/impression3d/bille-9.stl
Normal file
BIN
labyrinthe/6-jumeaux/impression3d/bille-9.stl
Normal file
Binary file not shown.
BIN
labyrinthe/6-jumeaux/impression3d/coin-70.5.stl
Normal file
BIN
labyrinthe/6-jumeaux/impression3d/coin-70.5.stl
Normal file
Binary file not shown.
BIN
labyrinthe/6-jumeaux/impression3d/coin-70.stl
Normal file
BIN
labyrinthe/6-jumeaux/impression3d/coin-70.stl
Normal file
Binary file not shown.
BIN
labyrinthe/6-jumeaux/impression3d/coin-71.stl
Normal file
BIN
labyrinthe/6-jumeaux/impression3d/coin-71.stl
Normal file
Binary file not shown.
BIN
labyrinthe/6-jumeaux/impression3d/entretoise-capteur_imu.stl
Normal file
BIN
labyrinthe/6-jumeaux/impression3d/entretoise-capteur_imu.stl
Normal file
Binary file not shown.
BIN
labyrinthe/6-jumeaux/impression3d/poche.stl
Normal file
BIN
labyrinthe/6-jumeaux/impression3d/poche.stl
Normal file
Binary file not shown.
BIN
labyrinthe/6-jumeaux/impression3d/serre-cable_moteur.stl
Normal file
BIN
labyrinthe/6-jumeaux/impression3d/serre-cable_moteur.stl
Normal file
Binary file not shown.
BIN
labyrinthe/6-jumeaux/impression3d/serre_cable.stl
Normal file
BIN
labyrinthe/6-jumeaux/impression3d/serre_cable.stl
Normal file
Binary file not shown.
@ -12,13 +12,14 @@ import pyfirmata
|
||||
|
||||
# Communication avec la carte Arduino
|
||||
# carte = pyfirmata.Arduino('COM3') # Windows
|
||||
carte = pyfirmata.Arduino('/dev/ttyACM0') # GNU/Linux
|
||||
carte = pyfirmata.Arduino('/dev/ttyACM1') # GNU/Linux
|
||||
print("Communication Carte Arduino établie")
|
||||
|
||||
servo = carte.get_pin('d:9:s') # Servo sur broche D9
|
||||
|
||||
try :
|
||||
while True: # Boucle infinie
|
||||
print ("Angle :", servo.read())
|
||||
angle = int(input("Entrer un angle entre 10 et 170) : ")) # Demande à l’utilisateur d’entrer la valeur de l’angle
|
||||
if angle < 10 : # Si la valeur entrée est inférieure à 10° on bloque le servo moteur à 10°
|
||||
angle = 10
|
||||
|
Loading…
Reference in New Issue
Block a user