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 5 Guests are viewing this topic.

Cherryman

Hi, my two cents on the arduino code.

Using the delay function is not always a good option because the Arduino actually stops everything while in "delay".

You might want to use the millis() command and or a timer library.

fr.
Salut, mes deux cents sur le code arduino.
L'utilisation de la fonction de délai n'est pas toujours une bonne option, car l'Arduino arrête réellement tout en "retard".
Vous pouvez utiliser la commande millis () et / ou une bibliothèque de minuterie.





forest

I just did a simple search and look how we are walking in circle around the topic being closer and closer to the solution each year.
Just one example here:

http://overunity.com/6774/tesla-patent-382282-and-all-related-to-his-transformersconverters/msg160918/#msg160918

The big problem is that no scientific labs are interested in investigating such concepts which can dump the profits of corporations and governments .

fr.
J'ai juste fait une recherche simple et regarde comment nous marchons en cercle autour du sujet étant de plus en plus proche de la solution chaque année.
Juste un exemple ici:
http://overunity.com/6774/tesla-patent-382282-and-all-related-to-his-transformersconverters/msg160918/#msg160918
Le gros problème est qu'aucun laboratoire scientifique n'est intéressé à enquêter sur de tels concepts qui peuvent vider les bénéfices des entreprises et des gouvernements.

r2fpl

I notice that with L298n it needs 3 outputs (pin) for 1 coil.
1.right (forward)
2.stop
3.left (back)

It's too much for the MEGA 2560.

It can use two more MEGA 2560 and control the other in the program.

or group coils 3 together then we will need 36 pins.
3 coils switched together at once.

fr.
Je remarque qu'avec L298n il faut 3 sorties (broche) pour 1 bobine.
1. droit (avant)
2.stop
3.left (arrière)
C'est trop pour le MEGA 2560. 
Il peut utiliser deux autres MEGA 2560 pour contrôler l'autre programme ou groupe bobines 3 ensemble alors nous aurons besoin de 36 broches.
3 bobines commutées ensemble à la fois.

Jeg

Hi
The code of Pierre's doesn't look quite the same with what he had described. The poles are consist of 6 coils each and poles are moving around. Sketch shows only two coils per pole that move sequentially. What i would expect is something like:
1 on,
2 on 
3 on
4 on
5 on
6 on
1 off
7 on
2 off
8 on
3 off
9 on
4 off
10 on
...etc
And that is only for one of the six magnetic poles.

If we could estimate the rotations per second of Pierre's drill, then this could reveal his actual current frequency. Looks like way less than 60Hz. What do you think guys?

fr.
Le code de Pierre ne ressemble pas du tout à ce qu'il a décrit. Les pôles sont constitués de 6 bobine chacune et les pôles se déplacent. Croquis montre seulement deux bobines par pôle qui se déplacent séquentiellement. Ce que je m'attendrais à quelque chose comme:
1 on,
2 on 
3 on
4 on
5 on
6 on
1 off
7 on
2 off
8 on
3 off
9 on
4 off
10 on
...etc
Et ce n'est que pour l'un des six pôles magnétiques.
Si nous pouvions estimer les rotations par seconde de l'exercice de Pierre, cela pourrait révéler sa fréquence actuelle. On dirait bien moins que 60Hz. Que pensez-vous les gars?

Cherryman

I tried to made the Arduino code a little more efficient. And easier to modify if there will be changes in the future.
I took out the delay() function as it stops your arduino.

Note: I'm no programmer , so feel free to correct, add or to dismiss this all together.

It compiles on my Arduino Mega, but i'm not sure if it will do what you guys want.

fr. J'ai essayé de rendre le code Arduino un peu plus efficace. Et plus facile à modifier s'il y aura des changements dans le futur.
J'ai retiré la fonction delay () car elle arrête votre Arduino.  Note: Je ne suis pas un programmeur, alors n'hésitez pas à corriger, ajouter ou rejeter tout cela ensemble.
Il compile sur mon Arduino Mega, mais je ne suis pas sûr que ça fera ce que vous voulez.


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

 
  Modded by CM 25 Mar 2018 

  Modded by TK 24 Mar 2018

  altered for 30-slot stator (gotoluc)

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



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

unsigned long timeStart = 0;
unsigned long currentTime = 0;
int waitTime = 0;
bool coilState = HIGH;
int coilSequence[] = { 11, 3, 2, 4, 3, 5, 4, 6, 5, 7, 6, 8, 7, 9, 8, 10, 9, 11, 10, 2 };   // set the firing order
int  x = 0;

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()
{
  for (int x = 0; x < 20;);                                         // loop for going true the coilSequence array
  {
    readAnalog ();                                                     // reads the pot for wait value
    currentTime = millis();                                         // set current time in milli seconds
    if (currentTime - timeStart > waitTime)                 // checks if wait time has passed
    {
      coilState = ! coilState ;                                      // switch state
      coilSet ();                                         
      timeStart = currentTime ;                                  // reset start time
      x++;                                                                // go to the next array number
    }
  }
}


void readAnalog ()
{
  waitTime = map(analogRead(0), 0, 1023, 1, 200);   // reads pot and maps it to a range of 1 to 200 milli seconds
}


void coilSet ()
{
  digitalWrite(coilSequence
  • , coilState), digitalWrite((coilSequence
  • + 10), coilState), digitalWrite((coilSequence
  • + 20), coilState);                // turn the LED on or off and uses the array as defined in coilSequence
    }



    EDIT:  I corrected a little mistake i made.
    fr. EDIT: J'ai corrigé une petite erreur que j'ai faite.