LOCODUINO

Parlons Arduino => Vos projets => Discussion démarrée par: microplusmb le novembre 13, 2019, 03:38:39 am

Titre: Besoin Aide pour Moteur 16V pour Petit Manege
Posté par: microplusmb le novembre 13, 2019, 03:38:39 am
Bonjour a vous tous, je suis nouveau ici, alors je vous salut.

J'aurais besoin d'aide pour ceci SVP,  Je suis assez nouveau dans le train HO, ma question est celle ci...

Dans ma maquette de train, j'ai des petit manege de marque faller et IHC, ma question est comment je peut avec ARDUINO, faire fonctionne les maneges par intervale, c'est a dire, comment le peut manipuler les moteurs en sequence de 20 a 30 secondes chaque...

Ma source est les PowerSuply de 16V de train miniature... Merci de votre aide
Titre: Re : Besoin Aide pour Moteur 16V pour Petit Manege
Posté par: CATPLUS le novembre 13, 2019, 06:29:09 am
Bonjour
Je vous conseille de lire ou relire

http://www.locoduino.org/spip.php?page=recherche&recherche=TIMER
http://forum.locoduino.org/index.php?topic=388.0

Cordialement
Marcel
Titre: Re : Besoin Aide pour Moteur 16V pour Petit Manege
Posté par: msport le novembre 13, 2019, 10:31:00 am
Bonjour,
si vous débutez, inspirez vous de l'exemple blink de l'IDE Arduino pour commander un relais ou un FET par la broche 13.

https://www.ebay.fr/itm/5V-1-2-4-8-Channel-Relay-Board-Module-Arduino-Raspberry-Pi-ARM-AVR-DSP-PIC-Lot/254193882669

https://www.ebay.fr/itm/2x-Red-IRF520-MOS-FET-Driver-module-pour-Arduino-IRF-520-de-DC-PWM-9H/223706441213

Si vous utilisez plusieurs relais, alimentez les en 12V (et non 5V, autres bobines) par un 12V commun avec l"Arduino :

https://www.ebay.fr/itm/1-2-4-8-16-12V-Channel-Relay-Module-With-optocoupler-For-PIC-AVR-DSP-ARM-Arduino/173604730014

/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.

  This example code is in the public domain.
 */

// Pin 13 has an LED connected on most Arduino boards.
// Pin 11 has the LED on Teensy 2.0
// Pin 6  has the LED on Teensy++ 2.0
// Pin 13 has the LED on Teensy 3.0
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
}

Vous pouvez abaisser le 16V  à 12V avec un "step down" :
https://www.ebay.fr/itm/LM2596-DC-DC-Step-down-Adjustable-CC-CV-Power-Supply-Module-Converter-1-25V-35V/163372942332