Pololu micro maestro Arduino library doesn't work

Hello Guys, I am newbie about Arduino Sketches and library, I have to connect Pololu micro Maestro 6 servos to Arduino micro via serial connection, but when I include library Pololumaestro.h into Arduino IDE 1.8.1 it does not become orange, remain black and obviously does not recognize whe I try to upload sketch in Arduino Micro, any idea to make library works ?

Thanks for your answers

Cyborgmax :o

t does not become orange, remain black

Get a crayon. Color on the screen. That will be as useful as the IDE's color coding.

You need to post a link to the library that you may not have properly downloaded and installed, and your code, along with whatever error messages you are seeing.

@cyborgmax, post the program you are trying (and please use the code button </>) and also post the error messages that you get.

Also post a link to the Pololu page where you got the library.

The absence of coloured text may not matter.

…R

the code is this :

Ultima modifica il 26/12/2014
Applicazione realizzata da Adriano Gandolfo
Sito http://www.adrirobot.it
Blog http://it.emcelettronica.com/author/adrirobot/

This example code is in the public domain.
#################################################################### */

//Gestione Arduino Esplora
#include <Esplora.h>:
//Gestione Micro Mestro
#include <PMCtrl.h>
#include <SoftwareSerial.h>
//Definizione pin gestione Micro Maestro
#define rxPin 11
#define txPin 3
//Impostazione Parametri di collegamento con Micro Mestro
PMCtrl servoCtrl (rxPin, txPin, 9600); //RX, TX, Baud

//Definizione delle varibili utilizzate
//Assegnazione canali servomotori
const int servo0 = 0;
const int servo1 = 1;
//Definizione delle posizioni minime e massime
// per i due assi
const int MAX_W = 2224;
const int MIN_W = 598;
const int MAX_H = 1808;
const int MIN_H = 495;
//Definizione delle variabili della posizione
//assunta dal Joystick
int xPos = 0;
int yPos = 0;

void setup ()
{
//Imposta la velocità dei due servomotori
servoCtrl.setServoSpeed (100, servo0, 12);
servoCtrl.setServoSpeed (100, servo1, 12);
//Sposta i servomotori nella posizione di riposo
servoCtrl.goHome(12);
}

void loop ()
{
//Assegna a XValue e YValue i valori letti dal Joystick
int xValue = Esplora.readJoystickX();
int yValue = Esplora.readJoystickY();
//Utilizzo del comando map http://arduino.cc/en/reference/map
//per adattare i valori letti nel range dei servomotori
xPos = map( xValue, 512, -512, MIN_W,MAX_W);
yPos = map( yValue, 512, -512, MIN_H,MAX_H);
//Invia alla scheda MicroMestro le posizioni dei due servomotori
servoCtrl.setTarget (xPos, servo0, 12);
servoCtrl.setTarget (yPos, servo1, 12);
delay (50); //Pausa tra gli aggiornamenti dei valori letti
}


it is not for Arduino Micro, but for Explora, I am trying to modify it and the library which remain black is PMCtrl.h

I downloaded it correctly in Arduino library, that is Pololu library distribute by Pololu for Micro Maestro,
I receive back an upload error about PMCtrl.h library when I try to upload sketch in Arduino Micro.

PMCtrl-master.zip (17.8 KB)

I downloaded the zip file in your link. The zip file contains a folder called PMCtrl-master. I renamed it to PMCtrl. The IDE failed to find the library. So, I looked in the PMCtrl folder, and found that it contained a folder called PMCtrl, where the source and examples live. I cut them, went up a level, and pasted them. Then, I deleted the empty PMCtrl folder. I restarted the IDE, and now PMCtrl turns orange.

Great :) , if it is true I will try as well, I will be back to you very soon .

THANKS IT WORKS !!!