Vérification OK, téléversement OK et pourtant arduino pas OK

Bonjour,
Pour apprendre l'utilisation d'un arduino, je me suis fait une machine à cocktail qui fonctionne bien. Dans mon premier programme, j'ai défini les pins avec leur numéro, exemple

// Blue Hawaian

if (b == 'g')
{
digitalWrite(VERT, LOW);
digitalWrite(ROUGE_bas, HIGH);
digitalWrite(2, LOW); //Sucre
delay(1266);
digitalWrite(2, HIGH);
delay(500); //
digitalWrite(4, LOW); //RHUM
delay(2532);
digitalWrite(4, HIGH);
delay(500);
digitalWrite(8, LOW); //ananas
delay(5064);
digitalWrite(8, HIGH);
delay(500);
digitalWrite(9, LOW); //coco
delay(2532);
digitalWrite(9, HIGH);
delay(500);
digitalWrite(11, LOW); //curacao
delay(1266);
digitalWrite(11, HIGH);
delay(1500);
digitalWrite(ROUGE_bas, LOW);
digitalWrite(VERT, HIGH); //led verte s'allume
b = 0;

et donc les recettes de cocktail sont définies en rapport avec le n° de pin. Et ca fonctionne bien.
J'ai voulu améliorer mon code en associant une boisson à un pin de façon à pouvoir changer de numéro de pin associé à une boisson sans avoir à changer chaque recette de boisson. (const char Orange = 2 par exemple).
Je fais la vérification, c'est OK, je téléverse c'est OK. J'utilise le moniteur série et je rentre par exemple "h" pour simuler un blue hawaian mais il ne se passe rien.
Débutant, j'ai dû me tromper quelque part mais je ne trouve pas car, en plus, je n'ai pas de message d'erreur pour me guider. Merci d'avance à ceux qui prendront le temps de regarder et si possible à trouver mon erreur.

#include <SoftwareSerial.h>
SoftwareSerial HC06(0, 1); //rx/tx

//defintion des pompes et pin


const char Rhum = 2;       //pompe1
const char Ambre = 3;      //pompe2
const char Orgeat = 4;      //pompe3
const char Citron = 5;     //pompe4
const char Vodka = 6;      //pompe5
const char Cointreau = 7;  //pompe6
const char Ananas = 8;    //pompe7
const char Coco = 9;      //pompe8
const char Sprite = 10;    //pompe9
const char Curacao = 11;     //pompe10
const char Orange = 12;    //pompe11
const char Cranberry = A2;  // pompe12
const char Sucre = A1;      //pomp13

//eclairage
const char ROUGE_bas = A3;
const char VERT = A5;


void setup()
{
  pinMode(Rhum, OUTPUT);
  pinMode(Ambre, OUTPUT);
  pinMode(Orgeat, OUTPUT);
  pinMode(Citron, OUTPUT);
  pinMode(Vodka, OUTPUT);
  pinMode(Cointreau, OUTPUT);
  pinMode(Ananas, OUTPUT);
  pinMode(Coco, OUTPUT);
  pinMode(Sprite, OUTPUT);
  pinMode(Curacao, OUTPUT);
  pinMode(Orange, OUTPUT);
  pinMode(Cranberry, OUTPUT);
  pinMode(Sucre, OUTPUT);
  
  pinMode(ROUGE_bas, OUTPUT);
  pinMode(VERT, OUTPUT);

  Serial.begin(9600); // bluetooth en 9600

  digitalWrite(Rhum, HIGH);
  digitalWrite(Orgeat, HIGH);
  digitalWrite(Curacao, HIGH);
  digitalWrite(Sucre, HIGH);
  digitalWrite(Ambre, HIGH);
  digitalWrite(Vodka, HIGH);
  digitalWrite(Cointreau, HIGH);
  digitalWrite(Citron, HIGH);
  digitalWrite(Sprite, HIGH);
  digitalWrite(Cranberry, HIGH);
  digitalWrite(Orange, HIGH);
  digitalWrite(Ananas, HIGH);
  digitalWrite(Coco, HIGH);
  //lumieres
  digitalWrite(ROUGE_bas, LOW);
  digitalWrite(VERT, HIGH);

}

void loop()
{

  while (Serial.available() == 0);
  char b = Serial.read();

  //Balalaika, blue Lagoon, Blue Hawaiian, Caipirissima, Caipiroska, Cosmopolitan, Sex On The beach, Cuban Island, Coinka, Kamikaze, LeMans, Libertine, Margarita
  // Maitai, Mojito, Pina Colada, TiPunch, Aloha, Virgin Colada, Virgin Mojito

  // Balalaika

  if (b == "d")
  {
    digitalWrite(VERT, LOW); //led verte eteinte
    digitalWrite(ROUGE_bas, HIGH); // led basse rouge s'allume
    digitalWrite(Citron, LOW);
    delay(1266);
    digitalWrite(Citron, HIGH);
    delay(500);
    digitalWrite(Vodka, LOW);
    delay(1899);
    digitalWrite(Vodka, HIGH);
    delay(500);
    digitalWrite(Cointreau, LOW);
    delay(1266);
    digitalWrite(Cointreau, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH); //led verte s'allume
    b = 0;

  }
  //Blue lagoon
  if (b == "a")
  {
    digitalWrite(VERT, LOW); //led verte eteinte
    digitalWrite(ROUGE_bas, HIGH); // led basse rouge s'allume
    digitalWrite(Citron, LOW);
    delay(1583);
    digitalWrite(Citron, HIGH);
    delay(500);
    digitalWrite(Vodka, LOW);
    delay(3165);
    digitalWrite(Vodka, HIGH);
    delay(500);
    digitalWrite(Sprite, LOW);
    delay(1899);
    digitalWrite(Sprite, HIGH);
    delay(500);
    digitalWrite(Curacao, LOW);
    delay(1899);
    digitalWrite(Curacao, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH); //led verte s'allume
    b = 0;

  }
  //Blue Hawaian
  if (b == "h")
  {
    digitalWrite(VERT, LOW); //led verte eteinte
    digitalWrite(ROUGE_bas, HIGH); // led basse rouge s'allume
    digitalWrite(Rhum, LOW);
    delay(3165);
    digitalWrite(Rhum, HIGH);
    delay(500);
    digitalWrite(Ananas, LOW);
    delay(3165);
    digitalWrite(Ananas, HIGH);
    delay(500);
    digitalWrite(Coco, LOW);
    delay(1583);
    digitalWrite(Coco, HIGH);
    delay(500);
    digitalWrite(Curacao, LOW);
    delay(950);
    digitalWrite(Curacao, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH); //led verte s'allume
    b = 0;

  }
  // Caipirissima

  if (b == "e")
  {
    digitalWrite(VERT, LOW); //led verte eteinte
    digitalWrite(ROUGE_bas, HIGH); // led basse rouge s'allume
    digitalWrite(Sucre, LOW);
    delay(633);
    digitalWrite(Sucre, HIGH);
    delay(500);
    digitalWrite(Citron, LOW);
    delay(3165);
    digitalWrite(Citron, HIGH);
    delay(500);
    digitalWrite(Rhum, LOW);
    delay(3798);
    digitalWrite(Rhum, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH); //led verte s'allume
    b = 0;

  }
  //Caipiroska
  if (b == "f")
  {
    digitalWrite(VERT, LOW); //led verte eteinte
    digitalWrite(ROUGE_bas, HIGH); // led basse rouge s'allume
    digitalWrite(Sucre, LOW);
    delay(317);
    digitalWrite(Sucre, HIGH);
    delay(500);
    digitalWrite(Citron, LOW);
    delay(3165);
    digitalWrite(Citron, HIGH);
    delay(500);
    digitalWrite(Vodka, LOW);
    delay(3798);
    digitalWrite(Vodka, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH); //led verte s'allume
    b = 0;

  }
  /*
    // ChiChi

    if (b == "Q")
    {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Vodka, LOW);
    delay(3165);
    digitalWrite(Vodka, HIGH);
    delay(500);
    digitalWrite(Ananas, LOW);
    delay(3956);
    digitalWrite(Ananas, HIGH);
    delay(1500);
    digitalWrite(Coco, LOW);
    delay(2374);
    digitalWrite(Coco, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH); //led verte s'allume
    b = 0;

    }
  */
  //Cosmo
  if (b == "z")
  {
    digitalWrite(VERT, LOW); //led verte eteinte
    digitalWrite(ROUGE_bas, HIGH); // led basse rouge s'allume
    digitalWrite(Vodka, LOW);
    delay(2532);
    digitalWrite(Vodka, HIGH);
    delay(500);
    digitalWrite(Cointreau, LOW);
    delay(1899);
    digitalWrite(Cointreau, HIGH);
    delay(500);
    digitalWrite(Cranberry, LOW);
    delay(2532);
    digitalWrite(Cranberry, HIGH);
    delay(500);
    digitalWrite(Citron, LOW);
    delay(950);
    digitalWrite(Citron, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH); //led verte s'allume
    b = 0;

  }

  // SexOnTheBeach

  if (b == "k")
  {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Vodka, LOW);
    delay(2849);
    digitalWrite(Vodka, HIGH);
    delay(500);
    digitalWrite(Cointreau, LOW);
    delay(950);
    digitalWrite(Cointreau, HIGH);
    delay(500);
    digitalWrite(Cranberry, LOW);
    delay(2849);
    digitalWrite(Cranberry, HIGH);
    delay(500);
    digitalWrite(Orange, LOW);
    delay(2849);
    digitalWrite(Orange, HIGH);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH); //led verte s'allume
    b = 0;

  }
  // Cuban island

  if (b == "g")
  {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Rhum, LOW);
    delay(1266);
    digitalWrite(Rhum, HIGH);
    delay(500);
    digitalWrite(Vodka, LOW);
    delay(1266);
    digitalWrite(Vodka, HIGH);
    delay(1500);
    digitalWrite(Cointreau, LOW);
    delay(1266);
    digitalWrite(Cointreau, HIGH);
    delay(1500);
    digitalWrite(Citron, LOW);
    delay(1266);
    digitalWrite (Citron, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH); //led verte s'allume
    b = 0;

  }
  /* Daiquiri

    if (b == "h")
    {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Sucre, LOW);
    delay(633);
    digitalWrite(Sucre, HIGH);
    delay(500);
    digitalWrite(Citron, LOW);
    delay(1266);
    digitalWrite(Citron, HIGH);
    delay(500);
    digitalWrite(Rhum, LOW);
    delay(4684);
    digitalWrite(Rhum, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH); //led verte s'allume
    b = 0;

    }
  */
  // Coinka

  if (b == "i")
  {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Citron, LOW);
    delay(2532);
    digitalWrite(Citron, HIGH);
    delay(500);
    digitalWrite(Vodka, LOW);
    delay(1899);
    digitalWrite(Vodka, HIGH);
    delay(500);
    digitalWrite(Cointreau, LOW);
    delay(1899);
    digitalWrite(Cointreau, HIGH);
    delay(500);
    digitalWrite(Ananas, LOW);
    delay(1266);
    digitalWrite(Ananas, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH); //led verte s'allume
    b = 0;
  }

  // Kamikaze

  if (b == "l")
  {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Citron, LOW);
    delay(1899);
    digitalWrite(Citron, HIGH);
    delay(500);
    digitalWrite(Vodka, LOW);
    delay(1899);
    digitalWrite(Vodka, HIGH);
    delay(500);
    digitalWrite(Cointreau, LOW);
    delay(1899);
    digitalWrite(Cointreau, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH); //led verte s'allume
    b = 0;
  }

  // LeMAns

  if (b == "m")
  {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Vodka, LOW);
    delay(950);
    digitalWrite(Vodka, HIGH);
    delay(500);
    digitalWrite(Cointreau, LOW);
    delay(1583);
    digitalWrite(Cointreau, HIGH);
    delay(500);
    digitalWrite(Sprite, LOW);
    delay(6963);
    digitalWrite(Sprite, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH); //led verte s'allume
    b = 0;
  }

  // Libertine

  if (b == "n")
  {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Vodka, LOW);
    delay(2532);
    digitalWrite(Vodka, HIGH);
    delay(500);
    digitalWrite(Ananas, LOW);
    delay(3165);
    digitalWrite(Ananas, HIGH);
    delay(500);
    digitalWrite(Coco, LOW);
    delay(1582);
    digitalWrite(Coco, HIGH);
    delay(500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH); //led verte s'allume
    b = 0;
  }
  //Margarita
  if (b == "o")
  {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Citron, LOW);
    delay(1266);
    digitalWrite(Citron, HIGH);
    delay(500);
    digitalWrite(Rhum, LOW);
    delay(2342);
    digitalWrite(Rhum, HIGH);
    delay(500);
    digitalWrite(Cointreau, LOW);
    delay(1899);
    digitalWrite(Cointreau, HIGH);
    delay(500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH); //led verte s'allume
    b = 0;

  }
  // MAitai

  if (b == "j")
  {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Rhum, LOW);          //rhum blanc
    delay(1952);
    digitalWrite(Rhum, HIGH);
    delay(500);
    digitalWrite(Ambre, LOW);          //rhum ambre
    delay(1952);
    digitalWrite(Ambre, HIGH);
    delay(500);
    digitalWrite(Cointreau, LOW);          //Cointreau
    delay(1583);
    digitalWrite(Cointreau, HIGH);
    delay(500);
    digitalWrite(Sucre, LOW);          //sucre
    delay(1055);
    digitalWrite(Sucre, HIGH);
    delay(500);
    digitalWrite(Citron, LOW);          //citron vert
    delay(1583);
    digitalWrite(Citron, HIGH);
    delay(500);
    digitalWrite(Orgeat, LOW);          //Curacao
    delay(1583);
    digitalWrite(Orgeat, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH); //led verte s'allume
    b = 0;
  }
  /* MOJITO partie 1

    if (b == "p")
    {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Sucre, LOW);          //SUCRE
    delay(2500);
    digitalWrite(Sucre, HIGH);
    delay(500);
    digitalWrite(Citron, LOW);          //CITRON
    delay(1266);
    digitalWrite(Citron, HIGH);
    delay(500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH);
    b = 0;
    }
  */

  // MOJITO partie 2

  if (b == "p")
  {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Rhum, LOW);
    delay(3165);
    digitalWrite(Rhum, HIGH);
    delay(500);
    digitalWrite(Sprite, LOW);
    delay(9495);
    digitalWrite(Sprite, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH);
    b = 0;
  }

  // Pina Colada

  if (b == "q")
  {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Rhum, LOW);
    delay(1700);
    digitalWrite(Rhum, HIGH);
    delay(500);
    digitalWrite(Ambre, LOW);
    delay(1700);
    digitalWrite(Ambre, HIGH);
    delay(500);
    digitalWrite(Coco, LOW);
    delay(2922);
    digitalWrite(Coco, HIGH);
    delay(500);
    digitalWrite(Ananas, LOW);
    delay(5843);
    digitalWrite(Ananas, HIGH);
    delay(500);
    digitalWrite(Sucre, LOW);
    delay(633);
    digitalWrite(Sucre, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH);
    b = 0;
  }

  //Ti Punch
  if (b == "s")
  {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Sucre, LOW);
    delay(633);
    digitalWrite(Sucre, HIGH);
    delay(500);
    digitalWrite(Citron, LOW);
    delay(317);
    digitalWrite(Citron, HIGH);
    delay(500);
    digitalWrite(Rhum, LOW);  //RHUM
    delay(3798);
    digitalWrite(Rhum, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH);
    b = 0;
  }

  // Virgin Colada

  if (b == "1")
  {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Orange, LOW);
    delay(3798);
    digitalWrite(Orange, HIGH);
    delay(500);
    digitalWrite(Ananas, LOW);
    delay(4431);
    digitalWrite(Ananas, HIGH);
    delay(500);
    digitalWrite(Coco, LOW);
    delay(4431);
    digitalWrite(Coco, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH); //led verte s'allume
    b = 0;

  }
  // Virgin mOJITO

  if (b == "2")
  {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Sucre, LOW);
    delay(633);
    digitalWrite(Sucre, HIGH);
    delay(500);
    digitalWrite(Citron, LOW);
    delay(3165);
    digitalWrite(Citron, HIGH);
    delay(1500);
    digitalWrite(Sprite, LOW);
    delay(9400);
    digitalWrite(Sprite, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH); //led verte s'allume
    b = 0;

  }


  // Aloha

  if (b == "t")
  {
    digitalWrite(VERT, LOW); //led verte eteinte
    digitalWrite(ROUGE_bas, HIGH); // led basse rouge s'allume
    digitalWrite(Citron, LOW);
    delay(633);
    digitalWrite(Citron, HIGH);
    delay(500);
    digitalWrite(Ananas, LOW);
    delay(2532);
    digitalWrite(Ananas, HIGH);
    delay(500);
    digitalWrite(Coco, LOW);  //
    delay(1266);
    digitalWrite(Coco, HIGH);
    delay(1500);
    digitalWrite(Orange, LOW);
    delay(2532);
    digitalWrite(Orange, HIGH);
    delay(500);
    digitalWrite(Ambre, LOW);
    delay(2345);
    digitalWrite(Ambre, HIGH);
    delay(500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH);
    b = 0;

  }







  // Jus Orange

  if (b == "5")
  {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Orange, LOW);
    delay(12660);
    digitalWrite(Orange, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH);
    b = 0;
  }

  // Jus Ananas

  if (b == "3")
  {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Ananas, LOW);
    delay(12660);
    digitalWrite(Ananas, HIGH);
    delay(1500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH);
    b = 0;
  }

  // sPRITE
  if (b == "4")
  {
    digitalWrite(VERT, LOW);
    digitalWrite(ROUGE_bas, HIGH);
    digitalWrite(Sprite, LOW);
    delay(12660);
    digitalWrite(Sprite, HIGH);
    delay(500);
    digitalWrite(ROUGE_bas, LOW);
    digitalWrite(VERT, HIGH);
    b = 0;

  }
  // Testin and maintenance options

  // Set-up SiropSucre

  if (b == "A")
  {
    digitalWrite(Sucre, LOW);          //pompe 4
    delay(2500);
    digitalWrite(Sucre, HIGH);
    delay(1500);
    b = 0;

  }

  // Set-up Citron

  if (b == "B")
  {
    digitalWrite(Citron, LOW);          //pompe 8
    delay(2500);
    digitalWrite(Citron, HIGH);
    delay(1500);
    b = 0;
  }

  // Set-up Rhum

  if (b == "C")
  {
    digitalWrite(Rhum, LOW);          //pompe 1
    delay(2500);
    digitalWrite(Rhum, HIGH);
    delay(1500);
    b = 0;
  }
  // Set-up Orgeat

  if (b == "K")
  {
    digitalWrite(Orgeat, LOW);          //pompe 2
    delay(2500);
    digitalWrite(Orgeat, HIGH);
    delay(1500);
    b = 0;
  }
  // Set-up Vodka
  if (b == "E")
  {
    digitalWrite(Vodka, LOW);          //pompe 6
    delay(2500);
    digitalWrite(Vodka, HIGH);
    delay(1500);
    b = 0;
  }

  // Set-up Cointreau
  if (b == "F")
  {
    digitalWrite(Cointreau, LOW);          //pompe 7
    delay(2500);
    digitalWrite(Cointreau, HIGH);
    delay(1500);
    b = 0;
  }

  // Set-up JusAnanas
  if (b == "G")
  {
    digitalWrite(Ananas, LOW);          //pompe 12
    delay(2500);
    digitalWrite(Ananas, HIGH);
    delay(1500);
    b = 0;
  }
  // Set-up LAitCoco
  if (b == "H")
  {
    digitalWrite(Coco, LOW);          //pompe 13
    delay(2500);
    digitalWrite(Coco, HIGH);
    delay(1500);
    b = 0;
  }

  // Set-up sprite
  if (b == "M")
  {
    digitalWrite(Sprite, LOW);          //pompe 10
    delay(2500);
    digitalWrite(Sprite, HIGH);
    delay(1500);
    b = 0;
  }
  // A cURACAO(abo)
  if (b == "J")
  {
    digitalWrite(Curacao, LOW);          // pompe3
    delay(2500);
    digitalWrite(Curacao, HIGH);
    delay(500);
    b = 0;

  }
  //A jus orange(aor)
  if (b == "I")
  {
    digitalWrite(Orange, LOW);          //orange pompe 11
    delay(2500);
    digitalWrite(Orange, HIGH);
    delay(500);
    b = 0;

  }
  //A cranberry (acl)
  if (b == "L")
  {
    digitalWrite(Cranberry, LOW);         //  pompe 10
    delay(2500);
    digitalWrite(Cranberry, HIGH);
    delay(500);
    b = 0;

  }
  //A Rhum Ambre
  if (b == "D")
  {
    digitalWrite(Ambre, LOW);       //  pompe 5
    delay(2500);
    digitalWrite(Ambre, HIGH);
    delay(500);
    b = 0;

  }
  /*A 15ml
    if (b == 'S')
    {
    digitalWrite(Rhum, LOW);          //test 15 ml  pompe 1
    delay(9495);
    digitalWrite(Rhum, HIGH);
    delay(500);
    b = 0;
    }
  */
  // Cleaning

  // Clean SiropSucre

  if (b == "O")
  {
    digitalWrite(Sucre, LOW);          //pompe 4
    delay(8000);
    digitalWrite(Sucre, HIGH);
    delay(1500);
    b = 0;

  }

  // Clean Citron

  if (b == "P")
  {
    digitalWrite(Citron, LOW);          //pompe 8
    delay(8000);
    digitalWrite(Citron, HIGH);
    delay(1500);
    b = 0;
  }

  // Clean Rhum

  if (b == "Q")
  {
    digitalWrite(Rhum, LOW);          //pompe 1
    delay(6000);
    digitalWrite(Rhum, HIGH);
    delay(1500);
    b = 0;
  }
  // Clean Orgeat

  if (b == "Y")
  {
    digitalWrite(Orgeat, LOW);          //pompe 2
    delay(8000);
    digitalWrite(Orgeat, HIGH);
    delay(1500);
    b = 0;
  }
  // Clean Vodka
  if (b == "S")
  {
    digitalWrite(Vodka, LOW);          //pompe 6
    delay(6000);
    digitalWrite(Vodka, HIGH);
    delay(1500);
    b = 0;
  }

  // Clean Cointreau
  if (b == "T")
  {
    digitalWrite(Cointreau, LOW);          //pompe 7
    delay(6000);
    digitalWrite(Cointreau, HIGH);
    delay(1500);
    b = 0;
  }

  // Clean JusAnanas
  if (b == "U")
  {
    digitalWrite(Ananas, LOW);          //pompe 12
    delay(8000);
    digitalWrite(Ananas, HIGH);
    delay(1500);
    b = 0;
  }
  // Clean LAitCoco
  if (b == "V")
  {
    digitalWrite(Coco, LOW);          //pompe 13
    delay(8000);
    digitalWrite(Coco, HIGH);
    delay(1500);
    b = 0;
  }

  // Clean sprite
  if (b == "9")
  {
    digitalWrite(Sprite, LOW);          //pompe 10
    delay(6000);
    digitalWrite(Sprite, HIGH);
    delay(1500);
    b = 0;
  }
  // Clean cURACAO(abo)
  if (b == "X")
  {
    digitalWrite(Curacao, LOW);          // pompe3
    delay(6000);
    digitalWrite(Curacao, HIGH);
    delay(500);
    b = 0;

  }
  //Clean jus orange(aor)
  if (b == "W")
  {
    digitalWrite(Orange, LOW);          //orange pompe 11
    delay(9000);
    digitalWrite(Orange, HIGH);
    delay(500);
    b = 0;

  }
  //Clean cranberry (acl)
  if (b == "Z")
  {
    digitalWrite(Cranberry, LOW);         //  pompe 10
    delay(8000);
    digitalWrite(Cranberry, HIGH);
    delay(500);
    b = 0;

  }
  //Clean Rhum Ambre
  if (b == "R")
  {
    digitalWrite(Ambre, LOW);       //  pompe 5
    delay(6000);
    digitalWrite(Ambre, HIGH);
    delay(500);
    b = 0;

  }

  delay(100);


}

Votre hc06 est connecté sur 0 et 1? Autant utiliser Serial alors (Mais Dans tous les cas débrancher lors du téléchargement)

Sinon les caractères c’est entre simple apostrophe


if (b == "d") // pas bon…
  {

Alors que c’était ok dans l’ancien code

Un switch ou des else serait une bonne option à considérer

Et oui bien sûr, simple apostrophe...
La double apostrophe est restée par erreur quand j'ai voulu remplacer une lettre par un trigramme qui reprendrait les 3 premières lettres du cocktail réalisé. Mais ca n'a pas marché, je vais continuer à apprendre. Encore un grand merci.

Oui on ne peut pas utiliser == pour comparer 2 cStrings. Soit il faudrait utiliser la classe String (Mais ça peut générer des erreurs suivant comment c’est utilisé) soit utiliser les fonctions de comparaison comme strcmp()