Storing Cookies (See : http://ec.europa.eu/ipg/basics/legal/cookies/index_en.htm ) help us to bring you our services at overunity.com . If you use this website and our services you declare yourself okay with using cookies .More Infos here:
https://overunity.com/5553/privacy-policy/
If you do not agree with storing cookies, please LEAVE this website now. From the 25th of May 2018, every existing user has to accept the GDPR agreement at first login. If a user is unwilling to accept the GDPR, he should email us and request to erase his account. Many thanks for your understanding

User Menu

Custom Search

Author Topic: Pierre's 170W in 1600W out Looped Very impressive Build continued & moderated  (Read 429948 times)

ARTMOSART

  • Newbie
  • *
  • Posts: 21
luc

ta réalisation et excellente  ,ça fait très plaisir à voir ,bravo.
Mosha

English
your design is excellent, it's a very nice layout, bravo.
« Last Edit: March 24, 2018, 10:11:18 PM by gotoluc »

ariovaldo

  • Sr. Member
  • ****
  • Posts: 374

Update:
https://youtu.be/3-HHaPDOWAM

Star generator. Stargen. lol
Man, that looks really good!!!!

français
Générateur d'étoiles. Stargen  ;D
ça a l'air vraiment bien mon homme!!!!
« Last Edit: March 24, 2018, 11:06:54 PM by gotoluc »

MichelM

  • Newbie
  • *
  • Posts: 28
You can clearly hear the rhythm from the relays in the first beginning of the second movie. Or at 8 min. 29 sec. first film. It sounds like a multi cylinder engine running on idle.
The frequency is absolutely below 10 Hertz.

seaad,
totally agree with that!
I just tested the Arduino program I posted in my # 35.
At this rate, there is no visible blinking of the led. We perceive a constant light.
So, I share your opinion, the meter Pierre used does not measure the frequency of the current, but rather must measure the frequency of the pulses.
If this is the case, the current frequency of his device should be only 5 Hz.
At this frequency, each relay is contacted every 200 ms only.

I just set my program at 5 Hz, and the flashing is identical to that of the leds in Pierre's video.


Français
tout à fait d'accord avec cela !
Je viens de tester le programme Arduino que j'ai posté dans mon # 35.
A ce rythme, il n'y a plus de clignotement perceptible de la led. On perçoit une lumière constante.
Donc, je partage votre avis, le voltmètre de Pierre ne mesure pas la fréquence du courant, mais doit plutôt mesurer la fréquence des impulsions.
Si c'est le cas, la fréquence du courant de son dispositif doit être de 5 Hz seulement.
A cette fréquence, chaque relais n'est sollicité que toutes les 200 ms.

Je viens de régler mon programme à 5 Hz, et le clignotement est identique à celui des leds de Pierre.
« Last Edit: March 24, 2018, 11:12:27 PM by gotoluc »

seaad

  • Sr. Member
  • ****
  • Posts: 311
 MichelM
 :)
 8) 8)  200ms! That gives the short on time to the relays: 200/12 = 16.7 ms.

So the Microwave Oven runs on the "trash" pulses ??

Fr: 200ms! Cela donne un temps court de fonctionnement du relais: 200/12 = 16,7 ms.
Donc, le four micro-ondes fonctionne sur les impulsions "merde" ??
« Last Edit: March 25, 2018, 09:30:42 AM by seaad »

gotoluc

  • elite_member
  • Hero Member
  • ******
  • Posts: 3096
To everyone
I have some good news which I've been holding on for some days until we had it tested and confirmed to work.
Forum member Chet made arrangements with slider2732 (member of our group) to write an Arduino switching sequence program for me since I don't know how to do that.
However, Pierre sent me his program he used in his demonstrated device. So I sent the program to slider2732 for testing. He was happy to report it was a much simpler program then he was writing.  He loaded it in his Mega 2560 and the program worked right away.
He even made a demo video to show it working: https://www.youtube.com/watch?v=fPZn3CcdVVc

Pierre requested I share the program with serious builders only. This will be your gift from Pierre once you get to the point of needing it.
So please stop trying to figure out how the Mega 2560 Arduino will work since we have already confirmed it works.
If you want to receive the program, then you have to build it to the point that only the program is needed. Once I see your video demo to confirm you are ready then I will send you the program.
Please don't ask for it otherwise. I am only following Pierre's request.

Regards
Luc

français
À tout le monde
J'ai quelques bonnes nouvelles que j'ai tenues pendant quelques jours jusqu'à ce que nous l'ayons testé et confirmé fonctionnel.
Le membre du forum Chet a fait des arrangements avec slider2732 (membre de notre groupe) pour écrire un programme de séquence de commutation Arduino pour moi car je ne sais pas comment faire.
Cependant, Pierre m'a envoyé son programme qu'il a utilisé dans son appareil démontré. J'ai donc envoyé le programme à slider2732 pour le tester. Il était heureux de rapporter que c'était un programme beaucoup plus simple qu'il essayait d'écrire. Il a chargé le programme dans son Mega 2560 et sa fonctionné tout de suite.

Il a même fait une vidéo de démonstration pour le montrer fonctionner: https://www.youtube.com/watch?v=fPZn3CcdVVc

Pierre a demandé que je partage le programme avec des constructeurs sérieux seulement. Ce sera votre cadeau de Pierre une fois que vous en aurez besoin.
Alors s'il vous plaît arrêter d'essayer de comprendre comment le Mega 2560 Arduino va fonctionner puisque nous avons déjà confirmé que cela fonctionne.
Si vous voulez recevoir le programme, vous devez construire au point que seul le programme est nécessaire. Une fois que je vois votre vidéo démo pour confirmer que vous êtes prêt, je vous enverrai le programme.
S'il vous plaît ne le demandez pas autrement. Je ne fais que suivre la demande de Pierre.
Cordialement
Luc

Mem

  • Jr. Member
  • **
  • Posts: 75
To everyone
I have some good news which I've been holding on for some days until we had it tested and confirmed to work.
Forum member Chet made arrangements with slider2732 (member of our group) to write an Arduino switching sequence program for me since I don't know how to do that.
However, Pierre sent me his program he used in his demonstrated device. So I sent the program to slider2732 for testing. He was happy to report it was a much simpler program then he was writing.  He loaded it and the program worked right away.
He even made a demo video to show it working: https://www.youtube.com/watch?v=fPZn3CcdVVc

Pierre requested I share the program with serious builders only. This will be your gift from Pierre once you get to the point of needing it.
So please stop trying to figure out how the Mega 2560 Arduino will work since we have already confirmed it works.
If you want to receive the program, then you have to build it to the point that only the program is needed. Once I see your video demo to confirm you are ready then I will send you the program.
Please don't ask for it otherwise. I am only following Pierre's request.

Regards
Luc

français
À tout le monde
J'ai quelques bonnes nouvelles que j'ai tenues pendant quelques jours jusqu'à ce que nous l'ayons testé et confirmé fonctionnel.
Le membre du forum Chet a fait des arrangements avec slider2732 (membre de notre groupe) pour écrire un programme de séquence de commutation Arduino pour moi car je ne sais pas comment faire.
Cependant, Pierre m'a envoyé son programme qu'il a utilisé dans son appareil démontré. J'ai donc envoyé le programme à slider2732 pour le tester. Il était heureux de rapporter que c'était un programme beaucoup plus simple qu'il écrivait. Il l'a chargé et le programme a fonctionné tout de suite.

Il a même fait une vidéo de démonstration pour le montrer fonctionner: https://www.youtube.com/watch?v=fPZn3CcdVVc

Pierre a demandé que je partage le programme avec des constructeurs sérieux seulement. Ce sera votre cadeau de Pierre une fois que vous en aurez besoin.
Alors s'il vous plaît arrêter d'essayer de comprendre comment le Mega 2560 Arduino va fonctionner puisque nous avons déjà confirmé que cela fonctionne.
Si vous voulez recevoir le programme, vous devez le construire au point que seul le programme est nécessaire. Une fois que je vois votre démo vidéo pour confirmer que vous êtes prêt, je vous enverrai le programme.
S'il vous plaît ne le demandez pas autrement. Je ne fais que suivre la demande de Pierre.
Cordialement
Luc


Luc,
Wow Pierre is truly a noble man.

français
Wow Pierre est vraiment un homme noble.
« Last Edit: March 24, 2018, 11:19:07 PM by gotoluc »

pmgr

  • Full Member
  • ***
  • Posts: 184
    • Stop organ harvesting from Falun Gong practitioners
Pierre just posted a video of his code: https://www.youtube.com/watch?v=TACAVCU2fIY

Looks like his potentiometer value is mapped to a range from x=1 to 10ms. He sets three outputs high at a time and then issues a delay(x) and then turns the next three coils on, delay(x), turn the first three coils off, etc.

Each relay stays on for 3*x ms, then remains off for 33*x ms. Switching 12 succeeding relays in sequence takes 36*x ms. His program describes one cycle (of the three per full rotation), then repeats.

loop {
1 on 13 on 25 on
delay(x)
(bug, see below: bold lines below should actually go here)
2 on 14 on 26 on
delay(x)
1 off 13 off 25 off
delay(x)
3 on 15 on 27 on
delay(x)
2 off 14 off 26 off
delay(x)
etc..


delay(x)
12 on 24 on 36 on
delay(x)
11 off 23 off 35 off
delay(x)
12 off 24 off 36 off
delay (x)
}

I do note he might have a bug in his code wrapping the loop: this last line should have been positioned after the very first two lines :
1 on 13 on 25 on
delay(x)
12 off 24 off 36 off
delay (x)

2 on 14 on 26 on
delay(x)

But hey, maybe this is what causes overunity  ;)  (just kidding).

PmgR

français

Pierre vient de poster une vidéo de son code: https://www.youtube.com/watch?v=TACAVCU2fIY
On dirait que sa valeur de potentiomètre est mappée sur une plage de x = 1 à 10ms. Il règle trois sorties à la fois, puis émet un retard (x), puis active les trois bobines suivantes, retarde (x), éteint les trois premières bobines, etc.
Chaque relais  reste allumé pendant 3 * x ms, puis reste éteint pendant 33 * x ms. La commutation de 12 relais successifs en séquence prend 36 * x ms. Son programme décrit un cycle (des trois par rotation complète), puis répète.
(bug, voir ci-dessous: les lignes en gras ci-dessous devraient effectivement aller ici)
Je note qu'il pourrait avoir un bug dans son code qui encapsule la boucle: cette dernière ligne aurait dû être positionnée après les deux premières lignes:
Mais bon, c'est peut-être ce qui cause la surunité ;) (je plaisante).
« Last Edit: March 25, 2018, 01:25:41 AM by gotoluc »

gotoluc

  • elite_member
  • Hero Member
  • ******
  • Posts: 3096
More news
I just checked with Pierre to see if the program can now go public and he replied YES! so here it is.

français
Plus de nouvelles
Je viens de vérifier avec Pierre pour voir si le programme peut maintenant être rendu public et il a répondu OUI! donc c'est ici.

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

  modified 8 May 2014
  by Scott Fitzgerald
 */


// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin 13 as an output.

   pinMode(1, OUTPUT);
    pinMode(2, OUTPUT);
   pinMode(3, OUTPUT);
    pinMode(4, OUTPUT);
   pinMode(5, OUTPUT);
    pinMode(6, OUTPUT);
     pinMode(7,OUTPUT);
   pinMode(8, OUTPUT);
    pinMode(9, OUTPUT);
   pinMode(10, OUTPUT);
    pinMode(11, OUTPUT);
   pinMode(12, OUTPUT);
    pinMode(13, OUTPUT);
     pinMode(14,OUTPUT);
   pinMode(15, OUTPUT);
    pinMode(16, OUTPUT);
    pinMode(17, OUTPUT);
    pinMode(18, OUTPUT);
   pinMode(19, OUTPUT);
    pinMode(20, OUTPUT);
   pinMode(21, OUTPUT);
    pinMode(22, OUTPUT);
     pinMode(23,OUTPUT);
   pinMode(24, OUTPUT);
    pinMode(25, OUTPUT);
   pinMode(26, OUTPUT);
    pinMode(27, OUTPUT);
   pinMode(28, OUTPUT);
    pinMode(29, OUTPUT);
     pinMode(30,OUTPUT);
   pinMode(31, OUTPUT);
    pinMode(32, OUTPUT);
      pinMode(33, OUTPUT);
    pinMode(34, OUTPUT);
     pinMode(35,OUTPUT);
   pinMode(36, OUTPUT);
    pinMode(37, OUTPUT);
}

int x = 0;

// the loop function runs over and over again forever
void loop(){
 int y= analogRead(0); // transforme x en une valeur de 0 à 20 (millisecondes)
  x= map(y,0,1000 ,1,100);



  digitalWrite(1,HIGH), digitalWrite(13,HIGH), digitalWrite(25,HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(x);              // wait for a second
  digitalWrite(2,HIGH), digitalWrite(14,HIGH), digitalWrite(26,HIGH); // turn the LED on (HIGH is the voltage level)
  delay(x);              // wait for a second
  digitalWrite(1,LOW),  digitalWrite(13,LOW),  digitalWrite(25,LOW);     // turn the LED off by making the voltage LOW
  delay(x);              // wait for a second
  digitalWrite(3,HIGH), digitalWrite(15,HIGH), digitalWrite(27,HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(x);              // wait for a second
  digitalWrite(2,LOW),  digitalWrite(14,LOW),  digitalWrite(26,LOW);     // turn the LED off by making the voltage LOW
  delay(x);              // wait for a second
  digitalWrite(4,HIGH), digitalWrite(16,HIGH), digitalWrite(28,HIGH); // turn the LED on (HIGH is the voltage level)
  delay(x);              // wait for a second
  digitalWrite(3,LOW),  digitalWrite(15,LOW),  digitalWrite(27,LOW);     // turn the LED off by making the voltage LOW
  delay(x);              // wait for a second
  digitalWrite(5,HIGH), digitalWrite(17,HIGH), digitalWrite(29,HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(x);              // wait for a second
  digitalWrite(4,LOW),  digitalWrite(16,LOW),  digitalWrite(28,LOW);     // turn the LED off by making the voltage LOW
  delay(x);              // wait for a second
  digitalWrite(6,HIGH), digitalWrite(18,HIGH), digitalWrite(30,HIGH); // turn the LED on (HIGH is the voltage level)
  delay(x);              // wait for a second
  digitalWrite(5,LOW),  digitalWrite(17,LOW),  digitalWrite(29,LOW);     // turn the LED off by making the voltage LOW
  delay(x);              // wait for a second
  digitalWrite(7,HIGH), digitalWrite(19,HIGH), digitalWrite(31,HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(x);              // wait for a second
  digitalWrite(6,LOW),  digitalWrite(18,LOW),  digitalWrite(30,LOW);     // turn the LED off by making the voltage LOW
  delay(x);              // wait for a second
  digitalWrite(8,HIGH), digitalWrite(20,HIGH), digitalWrite(32,HIGH); // turn the LED on (HIGH is the voltage level)
  delay(x);              // wait for a second
  digitalWrite(7,LOW),  digitalWrite(19,LOW),  digitalWrite(31,LOW);     // turn the LED off by making the voltage LOW
  delay(x);              // wait for a second
  digitalWrite(9,HIGH), digitalWrite(21,HIGH), digitalWrite(33,HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(x);              // wait for a second
  digitalWrite(8,LOW),  digitalWrite(20,LOW),  digitalWrite(32,LOW);     // turn the LED off by making the voltage LOW
  delay(x);              // wait for a second
  digitalWrite(10,HIGH), digitalWrite(22,HIGH), digitalWrite(34,HIGH); // turn the LED on (HIGH is the voltage level)
  delay(x);              // wait for a second
  digitalWrite(9,LOW),  digitalWrite(21,LOW),  digitalWrite(33,LOW);     // turn the LED off by making the voltage LOW
  delay(x);              // wait for a second
  digitalWrite(11,HIGH), digitalWrite(23,HIGH), digitalWrite(35,HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(x);              // wait for a second
  digitalWrite(10,LOW),  digitalWrite(22,LOW),  digitalWrite(34,LOW);     // turn the LED off by making the voltage LOW
  delay(x);              // wait for a second
  digitalWrite(12,HIGH), digitalWrite(24,HIGH), digitalWrite(36,HIGH); // turn the LED on (HIGH is the voltage level)
  delay(x);              // wait for a second
  digitalWrite(11,LOW),  digitalWrite(23,LOW),  digitalWrite(35,LOW);     // turn the LED off by making the voltage LOW
  delay(x);              // wait for a second
  digitalWrite(12,LOW),  digitalWrite(24,LOW),  digitalWrite(36,LOW);     // turn the LED off by making the voltage LOW
  delay(x);              // wait for a second


 
    }

Magluvin

  • Hero Member
  • *****
  • Posts: 5884
seaad,
totally agree with that!
I just tested the Arduino program I posted in my # 35.
At this rate, there is no visible blinking of the led. We perceive a constant light.
So, I share your opinion, the meter Pierre used does not measure the frequency of the current, but rather must measure the frequency of the pulses.
If this is the case, the current frequency of his device should be only 5 Hz.
At this frequency, each relay is contacted every 200 ms only.

I just set my program at 5 Hz, and the flashing is identical to that of the leds in Pierre's video.


Français
tout à fait d'accord avec cela !
Je viens de tester le programme Arduino que j'ai posté dans mon # 35.
A ce rythme, il n'y a plus de clignotement perceptible de la led. On perçoit une lumière constante.
Donc, je partage votre avis, le voltmètre de Pierre ne mesure pas la fréquence du courant, mais doit plutôt mesurer la fréquence des impulsions.
Si c'est le cas, la fréquence du courant de son dispositif doit être de 5 Hz seulement.
A cette fréquence, chaque relais n'est sollicité que toutes les 200 ms.

Je viens de régler mon programme à 5 Hz, et le clignotement est identique à celui des leds de Pierre.

Nice find. I wondered about that also. If the actual freq of the led run were 60 hz we wouldnt see it as we 'see' it. Im following a bit but have so much other stuff going on that I cant think deeply on this at the moment.  I hope it all works out for everyone. ;)
Not sure why it wouldnt be allowed for all to see and have, but Id like to see the arduino sketch. Not a lot of people do arduino programing and if it were available, others that are proficient with the programing may have an opportunity to possibly enhance or make mods in the future as this project develops, once they have a clear understanding of the original sunk in.

Mags

français
Belle trouvaille. Je me demandais à ce sujet aussi. Si la fréquence réelle de la led était de 60 hz nous ne le verrions pas comme nous le «voyons». Je suis en train de suivre un peu mais j'ai tellement d'autres choses que je ne peux pas vraiment y penser en ce moment. J'espère que tout fonctionne pour tout le monde. ;)
Je ne sais pas pourquoi il ne serait pas permis à tous de voir et d'avoir, mais j'aime voir le croquis arduino. Peu de gens font de la programmation en Arduino et si elle était disponible, d'autres qui maîtrisent la programmation pourraient avoir l'opportunité d'améliorer ou de faire des mods à l'avenir au fur et à mesure que ce projet se développera, une fois qu'ils auront compris.
« Last Edit: March 25, 2018, 01:01:20 AM by gotoluc »

seaad

  • Sr. Member
  • ****
  • Posts: 311
In MichelM s  film https://www.youtube.com/watch?v=8moN-nDHvzU&feature=youtu.be

he shows how one energized (interleaved) coil is shorted for a short while in each
step. Because the windings is interleaved in neighbor slots we probably also can expect
some transformer effect.

 Is it this short shortcut that makes the magnetic field seems to be "flowing" seen from the output coils view ??

Fr:
Dans le film de MichelM https://www.youtube.com/watch?v=8moN-nDHvzU&feature=youtu.be
il montre comment une bobine excitée (entrelacée) est court-circuitée pendant un court moment dans chaque
étape. Parce que les enroulements sont entrelacés dans des fentes voisinne, nous pouvons également nous attendre
un effet de transformateur.
Est-ce ce court-circuit qui fait que le champ magnétique semble "coulent" vu de la bobines de sortie?

Arne

PS: even Figuera talks in his patent about "and always in contact with more than one
contact, rotates a brush “O" "
« Last Edit: March 25, 2018, 01:10:11 AM by gotoluc »

stargate22

  • Newbie
  • *
  • Posts: 14
« Last Edit: March 25, 2018, 01:27:49 AM by gotoluc »

Slider2732

  • Full Member
  • ***
  • Posts: 119
Am glad Pierre has posted the code...that's the right way forward and a good honest gesture  :D

Btw, my own version of the code is in the other thread, a few pages back. It was likely missed because, being a new member, the post was held back for moderator approval and the thread was moving quickly.
But now that the real code is available, excellent !

Oh, have just seen Stargate's post above.
It seems that Pierre has based it on the Blink sketch, a simple method to flash an LED on and off and the usual first program that people will upload to their Arduino. Scott Fitzgerald being the author of that famous sketch and Pierre has left a nod in an appreciative direction to that author for the start point of his own program.
Really, it's a big extraction of that sketch (Arduino language for program code), with the output pins all being listed and then the individual switchings on and off of the LEDs themselves. He also has a section that runs every loop, that sees where a variable pot is positioned, to change the speed of running if needed. 

français
Je suis content que Pierre ait posté le code ... c'est la bonne voie à suivre et un bon geste honnête  :D
Ma propre version du code est dans l'autre sujet, quelques pages en arrière. Il a probablement été manqué parce que, étant un nouveau membre, le poste a été retenu pour l'approbation du modérateur et le sujet se déplaçait rapidement. Mais maintenant que le vrai code est disponible, excellent!
Oh, viens de voir le post de Stargate ci-dessus. Il semble que Pierre l'ait basé sur le croquis de Blink, une méthode simple pour allumer et éteindre une LED et le premier programme habituel que les gens vont télécharger sur leur Arduino. Scott Fitzgerald étant l'auteur de ce célèbre sketch et Pierre a laissé un signe de tête dans une direction appréciative à cet auteur pour le point de départ de son propre programme. Vraiment, c'est une grande extraction de cette esquisse (langage Arduino pour le code de programme), avec les broches de sortie qui sont toutes listées, puis les commutations individuelles des LED elles-mêmes. Il a également une section qui exécute chaque boucle, qui voit où un pot variable est positionné, pour changer la vitesse de course si nécessaire.
« Last Edit: March 25, 2018, 03:29:09 AM by gotoluc »

TinselKoala

  • Hero Member
  • *****
  • Posts: 13958
That's right, there is nothing remarkable in that sketch, it does essentially exactly the same thing that Slider's sketches do.

BUT... there seems to be something special about the timing. Is this an error or is it deliberate?

The sketch basically switches 12 groups of 3 LEDs on and off in overlapping sequence. There is a timing interval between each group On or Off command.

Group 1 is turned ON, TWO timing intervals pass, Group 1 is turned OFF.
Group 2 is turned ON... THREE timing intervals pass, group 2 is turned OFF.
Group 3 is turned ON... THREE intervals pass, Group 3 is turned OFF.
Group 4 is turned ON... THREE intervals pass, Group 4 is turned OFF.
Group 5 is turned ON... THREE intervals pass, Group 5 is turned OFF.
Group 6 is turned ON... THREE intervals pass, Group 6 is turned OFF.
and so on until...
Group 12 is turned ON... TWO intervals pass, Group 12 is turned OFF.

So Groups 1 and 12 are only on for TWO timing intervals, the other 10 groups are on for THREE timing intervals.

Is this deliberate? Did I miscount?

français
C'est vrai, il n'y a rien de remarquable dans ce croquis, il fait essentiellement exactement la même chose que les croquis de Slider.
MAIS ... il semble y avoir quelque chose de spécial à propos du timing. Est-ce une erreur ou est-ce délibéré?
Le  croquis bascule 12 groupes de 3 LED allumés et éteints dans une séquence de chevauchement. Il y a un intervalle de temps entre chaque commande On ou Off du groupe.
Le groupe 1 est activé, DEUX intervalles de synchronisation passent, le groupe 1 est désactivé.
Le groupe 2 est activé ... TROIS intervalles de synchronisation passent, le groupe 2 est désactivé.
Le groupe 3 est activé ... TROIS intervalles passent, le groupe 3 est désactivé.
Le groupe 4 est allumé ... Trois intervalles passent, le groupe 4 est désactivé.
Le groupe 5 est activé ... TROIS intervalles passent, le groupe 5 est désactivé.
Le groupe 6 est allumé ... Trois intervalles passent, le groupe 6 est désactivé.
et ainsi de suite jusqu'à ...
Le groupe 12 est activé ... DEUX intervalles passent, le groupe 12 est désactivé.
Ainsi, les groupes 1 et 12 ne sont activés que pour DEUX intervalles de temps, les 10 autres groupes sont activés pour TROIS intervalles de temps.
Est-ce délibéré? Ai-je mal compté?
« Last Edit: March 25, 2018, 03:38:10 AM by gotoluc »

TinselKoala

  • Hero Member
  • *****
  • Posts: 13958
Here's Pierre's sketch altered for Luc's 30-slot stator. I followed the original pattern but with 10 instead of 12 pins between each group member.
Please check my work! 

Now we have 10 groups of 3 output pins, in overlapping sequence.

I've preserved the odd timing of the original (groups 1 and 10 only on for 2 timing intervals instead of 3.)

I also compressed the pin declarations into a for loop and changed some variable names and comments to make it clearer.

français
Voici le croquis de Pierre modifiée pour le stator à 30 emplacements de Luc. J'ai suivi le modèle original mais avec 10 broches au lieu de 12 entre chaque membre du groupe.
S'il vous plaît vérifier mon travail!
Maintenant, nous avons 10 groupes de 3 broches de sortie, en séquence de chevauchement.
J'ai conservé le timing étrange de l'original (groupes 1 et 10 seulement sur 2 intervalles de temps au lieu de 3.)
J'ai également compressé les déclarations de broche dans une boucle for et changé quelques noms de variables et commentaires pour le rendre plus clair.

/*
  Pierre's Original Sketch
 
 Modded by TK 24 Mar 2018
 
 altered for 30-slot stator (gotoluc)

 Speed control pot: connect wiper to Analog 0, legs of pot to +5v and GND
 
 
 
 */
 
int stepspeed = 0, rawspeed = 0;

void setup() {
 
  // initialize all needed digital pins as OUTPUT
  int pin = 1;
  for (pin = 1; pin <= 31; pin ++)
    pinMode(pin, OUTPUT);
  pinMode(A0, INPUT);
 
}

void loop() {
 
  rawspeed = analogRead(0); // read speedpot on Analog Pin 0
  stepspeed = map(rawspeed,0,1023,1,100);  //transforme rawspeed en une valeur de 0 à 100 (millisecondes)

  digitalWrite(1,HIGH), digitalWrite(11,HIGH), digitalWrite(21,HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(2,HIGH), digitalWrite(12,HIGH), digitalWrite(22,HIGH); // turn the LED on (HIGH is the voltage level)
  delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(1,LOW),  digitalWrite(11,LOW),  digitalWrite(21,LOW);     // turn the LED off by making the voltage LOW
  delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(3,HIGH), digitalWrite(13,HIGH), digitalWrite(23,HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(2,LOW),  digitalWrite(12,LOW),  digitalWrite(22,LOW);     // turn the LED off by making the voltage LOW
  delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(4,HIGH), digitalWrite(14,HIGH), digitalWrite(24,HIGH); // turn the LED on (HIGH is the voltage level)
  delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(3,LOW),  digitalWrite(13,LOW),  digitalWrite(23,LOW);     // turn the LED off by making the voltage LOW
  delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(5,HIGH), digitalWrite(15,HIGH), digitalWrite(25,HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(4,LOW),  digitalWrite(14,LOW),  digitalWrite(24,LOW);     // turn the LED off by making the voltage LOW
  delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(6,HIGH), digitalWrite(16,HIGH), digitalWrite(26,HIGH); // turn the LED on (HIGH is the voltage level)
  delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(5,LOW),  digitalWrite(15,LOW),  digitalWrite(25,LOW);     // turn the LED off by making the voltage LOW
  delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(7,HIGH), digitalWrite(17,HIGH), digitalWrite(27,HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(6,LOW),  digitalWrite(16,LOW),  digitalWrite(26,LOW);     // turn the LED off by making the voltage LOW
  delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(8,HIGH), digitalWrite(18,HIGH), digitalWrite(28,HIGH); // turn the LED on (HIGH is the voltage level)
  delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(7,LOW),  digitalWrite(17,LOW),  digitalWrite(27,LOW);     // turn the LED off by making the voltage LOW
  delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(9,HIGH), digitalWrite(19,HIGH), digitalWrite(29,HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(8,LOW),  digitalWrite(18,LOW),  digitalWrite(28,LOW);     // turn the LED off by making the voltage LOW
  delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(10,HIGH), digitalWrite(20,HIGH), digitalWrite(30,HIGH); // turn the LED on (HIGH is the voltage level)
  delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(9,LOW),  digitalWrite(19,LOW),  digitalWrite(29,LOW);     // turn the LED off by making the voltage LOW
  delay(stepspeed);              // wait for stepspeed value in milliseconds
 // digitalWrite(11,HIGH), digitalWrite(21,HIGH), digitalWrite(31,HIGH);   // turn the LED on (HIGH is the voltage level)
 // delay(stepspeed);              // wait for stepspeed value in milliseconds
  digitalWrite(10,LOW),  digitalWrite(20,LOW),  digitalWrite(30,LOW);     // turn the LED off by making the voltage LOW
  delay(stepspeed);              // wait for stepspeed value in milliseconds
 
}
« Last Edit: March 25, 2018, 05:29:38 AM by gotoluc »

TinselKoala

  • Hero Member
  • *****
  • Posts: 13958
It would be nice if Stefan could enable the
"code" BBCode tag.....

fr. Ce serait bien si Stefan pouvait activer le
"code" BBCode tag.....
« Last Edit: March 25, 2018, 05:32:25 AM by gotoluc »