Welcome! Log In Create A New Profile

Advanced

commande Servo

Posted by Papyray 
commande Servo
October 28, 2015 05:35AM
Bonjour
Je voudrai juste commander un servo avec Repetier et ramps 1.4
quel code envoyer avec Repetier?
J'ai essaié M280 P0 S60 (ou autre chiffre) Le servo ne bronche pas
J'ai essaié M430 P0 S60 (ou autre chiffre) Idem
Les broches servo sont alimentées en 5v par une alim exterieure a l'arduino 2560
La carte fonctionne bien .
Ou est L'erreur ?
Merci pour vos réponses.
Papyray
Re: commande Servo
October 28, 2015 06:15AM
Bonjour,

Connecte tout sur l'arduino/ramps, déjà.
Ensuite, le servo est-il déclaré dans ton firmware ?

++JM

Edited 1 time(s). Last edit at 10/28/2015 06:15AM by J-Max.
Re: commande Servo
October 28, 2015 10:34AM
Et les masses sont elles communes ?
Si ce n'est pas le cas, c'est normal que cela ne fonctionne pas
Re: commande Servo
October 28, 2015 11:27AM
oui, les masses sont communes.
Re: commande Servo
October 28, 2015 11:53AM
la fin de configuration.h :


// Number of servos
//
// If you select a configuration below, this will receive a default value and does not need to be set manually
// set it manually if you have more servos than extruders and wish to manually control some
// leaving it undefined or defining as 0 will disable the servo subsystem
// If unsure, leave commented / disabled
//
#define NUM_SERVOS 3 // Servo index starts with 0 for M280 command

// Servo Endstops
//
// This allows for servo actuated endstops, primary usage is for the Z Axis to eliminate calibration or bed height changes.
// Use M206 command to correct for switch height offset to actual nozzle height. Store that setting with M500.
//
#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles

#include "Configuration_adv.h"
#include "thermistortables.h"

#endif //__CONFIGURATION_H
Re: commande Servo
October 28, 2015 12:06PM
Peut être qu'il n'est pas bien déclaré dans pins.h.


Projet : Delta Reverse, CoreXY
Google+ : [plus.google.com]
Youtube : [www.youtube.com]
Re: commande Servo(resolu)
October 29, 2015 03:51AM
Bonjour,
Merci pour vos reponses, j'ai resolu mon problème....
D'après la tres (peu) nombeuse doc, le cablage est:
noir ou brun negatif, rouge postif, autre couleur data
en fait sur le sevo c'est le contraire :
Jaune negatif, rouge positif , brun data
Il suffisait de tourner le connecteur
Encore merci
PS. Je ne m'aventure pas dans pin.h ! C'est d'une simplicité......
Sorry, only registered users may post in this forum.

Click here to login