Overunity.com Archives is Temporarily on Read Mode Only!



Free Energy will change the World - Free Energy will stop Climate Change - Free Energy will give us hope
and we will not surrender until free energy will be enabled all over the world, to power planes, cars, ships and trains.
Free energy will help the poor to become independent of needing expensive fuels.
So all in all Free energy will bring far more peace to the world than any other invention has already brought to the world.
Those beautiful words were written by Stefan Hartmann/Owner/Admin at overunity.com
Unfortunately now, Stefan Hartmann is very ill and He needs our help
Stefan wanted that I have all these massive data to get it back online
even being as ill as Stefan is, he transferred all databases and folders
that without his help, this Forum Archives would have never been published here
so, please, as the Webmaster and Creator of these Archives, I am asking that you help him
by making a donation on the Paypal Button above.
You can visit us or register at my main site at:
Overunity Machines Forum



Pierre's 170W in 1600W out Looped Very impressive Build continued & moderated

Started by gotoluc, March 23, 2018, 10:12:45 AM

Previous topic - Next topic

0 Members and 6 Guests are viewing this topic.

pmgr

Quote from: TinselKoala on March 24, 2018, 09:21:14 PM
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?

fr.
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é?

You didn't miscount. That is what I noticed as well and mentioned in my earlier post. I think it is just a "bug". Those last lines should have been inserted at the start, see my previous post #51.
PmgR

fr. Vous n'avez pas mal calculé. C'est ce que j'ai remarqué et mentionné dans mon poste précédent. Je pense que c'est juste un "bug". Ces dernières lignes auraient dû être insérées au début, voir mon poste # 51.

Slider2732

Just a quick note about your changes TK.
The curled brackets are missing in the pins loop.
So it should read:

for (pin = 1; pin <= 31; pin ++)
   { pinMode(pin, OUTPUT); }

fr. Juste une petite note sur vos changements TK.
Les accolades manques dans la boucle des broches.
Donc, il devrait lire:

for (pin = 1; pin <= 31; pin ++)
   { pinMode(pin, OUTPUT); }

TinselKoala

Ya, thanks, you are right the curly brackets should be used even if there is only a single statement in the for loop.

At any rate... here is the sketch modified for Luc's 30 slot stator, with the timing "bug-error-OUSecret" corrected so
that there is a smooth flow around the outputs. I think.

fr. Oui merci, vous avez raison, les accolades doivent être utilisées même s'il n'y a qu'une seule instruction dans la boucle for.
En tout cas ... voici l'esquisse modifiée pour le stator à 30 slots de Luc, avec le timing "bug-error-OUSecret" corrigé donc
qu'il y a un flux fluide autour des sorties. Je pense.


/************************************************
  Pierre's Original Sketch

Modded by TK 24 Mar 2018

altered for 30-slot stator (gotoluc)


TKTest Version using pins 2-11,12-21,22-31

************************************************/

// int stepspeed = 0, rawspeed = 0;  // not used

void setup() {
 
  // initialize all needed digital pins as OUTPUT, plus a couple extras
  int pin = 1;
  for (pin = 1; pin <= 33; pin ++) {
    pinMode(pin, OUTPUT);
    }
   
  pinMode(A0, INPUT);  // speed potentiometer wiper pin
 
}

void loop() {
 
  // rawspeed = analogRead(0); // read speedpot on Analog Pin 0
  // stepspeed = map(rawspeed,0,1023,1,200);  //transforme rawspeed en une valeur de 0 à 200 (millisecondes)
  //
  // (better to read pot after each switch command for real-time speed control, as below)

  digitalWrite(11,LOW), digitalWrite(21,LOW), digitalWrite(31,LOW);      // turn the LED off
  delay(map(analogRead(0),0,1023,1,200));              // wait for stepspeed value in milliseconds
  digitalWrite(3,HIGH),  digitalWrite(13,HIGH), digitalWrite(23,HIGH);   // turn the LED on
  delay(map(analogRead(0),0,1023,1,200));              // wait
  digitalWrite(2,LOW),  digitalWrite(12,LOW),  digitalWrite(22,LOW);     // turn the LED off
  delay(map(analogRead(0),0,1023,1,200));              // wait
  digitalWrite(4,HIGH),  digitalWrite(14,HIGH), digitalWrite(24,HIGH);   // turn the LED on
  delay(map(analogRead(0),0,1023,1,200));              // wait
  digitalWrite(3,LOW),  digitalWrite(13,LOW),  digitalWrite(23,LOW);     // turn the LED off
  delay(map(analogRead(0),0,1023,1,200));              // wait
  digitalWrite(5,HIGH),  digitalWrite(15,HIGH), digitalWrite(25,HIGH);   // turn the LED on
  delay(map(analogRead(0),0,1023,1,200));              // wait
  digitalWrite(4,LOW),  digitalWrite(14,LOW),  digitalWrite(24,LOW);     // turn the LED off
  delay(map(analogRead(0),0,1023,1,200));              // wait
  digitalWrite(6,HIGH),  digitalWrite(16,HIGH), digitalWrite(26,HIGH);   // turn the LED on
  delay(map(analogRead(0),0,1023,1,200));              // wait
  digitalWrite(5,LOW),  digitalWrite(15,LOW),  digitalWrite(25,LOW);     // turn the LED off
  delay(map(analogRead(0),0,1023,1,200));              // wait
  digitalWrite(7,HIGH),  digitalWrite(17,HIGH), digitalWrite(27,HIGH);   // turn the LED on
  delay(map(analogRead(0),0,1023,1,200));              // wait
  digitalWrite(6,LOW),  digitalWrite(16,LOW),  digitalWrite(26,LOW);     // turn the LED off
  delay(map(analogRead(0),0,1023,1,200));              // wait
  digitalWrite(8,HIGH),  digitalWrite(18,HIGH), digitalWrite(28,HIGH);   // turn the LED on
  delay(map(analogRead(0),0,1023,1,200));              // wait
  digitalWrite(7,LOW),  digitalWrite(17,LOW),  digitalWrite(27,LOW);     // turn the LED off
  delay(map(analogRead(0),0,1023,1,200));              // wait
  digitalWrite(9,HIGH),  digitalWrite(19,HIGH), digitalWrite(29,HIGH);   // turn the LED on
  delay(map(analogRead(0),0,1023,1,200));              // wait
  digitalWrite(8,LOW),  digitalWrite(18,LOW),  digitalWrite(28,LOW);     // turn the LED off
  delay(map(analogRead(0),0,1023,1,200));              // wait
  digitalWrite(10,HIGH), digitalWrite(20,HIGH), digitalWrite(30,HIGH);   // turn the LED on
  delay(map(analogRead(0),0,1023,1,200));              // wait
  digitalWrite(9,LOW),  digitalWrite(19,LOW),  digitalWrite(29,LOW);     // turn the LED off
  delay(map(analogRead(0),0,1023,1,200));              // wait
  digitalWrite(11,HIGH), digitalWrite(21,HIGH), digitalWrite(31,HIGH);   // turn the LED on
  delay(map(analogRead(0),0,1023,1,200));              // wait
  digitalWrite(10,LOW), digitalWrite(20,LOW),  digitalWrite(30,LOW);     // turn the LED off
  delay(map(analogRead(0),0,1023,1,200));              // wait
  digitalWrite(2,HIGH), digitalWrite(12,HIGH), digitalWrite(22,HIGH);    // turn the LED on
  delay(map(analogRead(0),0,1023,1,200));             // wait
 
}

gotoluc

That's very kind of you TK. Thanks for helping out :)

Luc

fr. C'est très gentil de votre part TK. Merci de votre aide.



Mem

Hi everyone, does any one knows to what happened to Pierre's You Tube channel? Looks like it's shut down. 

Fr: Salut tout le monde, est-ce que quelqu'un sait ce qui est arrivé aux canal You Tube de Pierre? On dirait que c'est fermé.