Trompbots: verschil tussen versies

Uit TrompBot
Naar navigatie springen Naar zoeken springen
Regel 17: Regel 17:
| style="border-style: solid; border-width: 1px"| [[Bestand:vb1.png|300px]] <br/><br/>[[Bestand:vb2.png|300px]]  
| style="border-style: solid; border-width: 1px"| [[Bestand:vb1.png|300px]] <br/><br/>[[Bestand:vb2.png|300px]]  
| style="border-style: solid; border-width: 1px"| <syntaxhighlight> Programma </syntaxhighlight>
| style="border-style: solid; border-width: 1px"| <syntaxhighlight> Programma </syntaxhighlight>
|}
|}<br/>
==Niek & Sanne==
==Niek & Sanne==
{| style="border-collapse: collapse; border-width: 1px; border-style: solid; border-color: #000"
{| style="border-collapse: collapse; border-width: 1px; border-style: solid; border-color: #000"
Regel 26: Regel 26:
| style="border-style: solid; border-width: 1px"| [[Bestand:vb1.png|300px]] <br/><br/>[[Bestand:vb2.png|300px]]  
| style="border-style: solid; border-width: 1px"| [[Bestand:vb1.png|300px]] <br/><br/>[[Bestand:vb2.png|300px]]  
| style="border-style: solid; border-width: 1px"| <syntaxhighlight> Programma </syntaxhighlight>
| style="border-style: solid; border-width: 1px"| <syntaxhighlight> Programma </syntaxhighlight>
|}
|}<br/>
==Cas & Doortje==
==Cas & Doortje==
{| style="border-collapse: collapse; border-width: 1px; border-style: solid; border-color: #000"
{| style="border-collapse: collapse; border-width: 1px; border-style: solid; border-color: #000"
Regel 35: Regel 35:
| style="border-style: solid; border-width: 1px"| [[Bestand:vb1.png|300px]] <br/><br/>[[Bestand:vb2.png|300px]]  
| style="border-style: solid; border-width: 1px"| [[Bestand:vb1.png|300px]] <br/><br/>[[Bestand:vb2.png|300px]]  
| style="border-style: solid; border-width: 1px"| <syntaxhighlight> Programma </syntaxhighlight>
| style="border-style: solid; border-width: 1px"| <syntaxhighlight> Programma </syntaxhighlight>
|}
|}<br/>
==Linda & Sam==
==Linda & Sam==
{| style="border-collapse: collapse; border-width: 1px; border-style: solid; border-color: #000"
{| style="border-collapse: collapse; border-width: 1px; border-style: solid; border-color: #000"
Regel 44: Regel 44:
| style="border-style: solid; border-width: 1px"| [[Bestand:vb1.png|300px]] <br/><br/>[[Bestand:vb2.png|300px]]  
| style="border-style: solid; border-width: 1px"| [[Bestand:vb1.png|300px]] <br/><br/>[[Bestand:vb2.png|300px]]  
| style="border-style: solid; border-width: 1px"| <syntaxhighlight> Programma </syntaxhighlight>
| style="border-style: solid; border-width: 1px"| <syntaxhighlight> Programma </syntaxhighlight>
|}
|}<br/>
==Jeroen & Stef==
==Jeroen & Stef==
{| style="border-collapse: collapse; border-width: 1px; border-style: solid; border-color: #000"
{| style="border-collapse: collapse; border-width: 1px; border-style: solid; border-color: #000"
Regel 99: Regel 99:
  }
  }
</syntaxhighlight>
</syntaxhighlight>
|}
|}<br/>


==Kim & Fleur==
==Kim & Fleur==
Regel 109: Regel 109:
| style="border-style: solid; border-width: 1px"| [[Bestand:vb1.png|300px]] <br/><br/>[[Bestand:vb2.png|300px]]  
| style="border-style: solid; border-width: 1px"| [[Bestand:vb1.png|300px]] <br/><br/>[[Bestand:vb2.png|300px]]  
| style="border-style: solid; border-width: 1px"| <syntaxhighlight> Programma </syntaxhighlight>
| style="border-style: solid; border-width: 1px"| <syntaxhighlight> Programma </syntaxhighlight>
|}
|}<br/>
==Daan & Eveline==
==Daan & Eveline==


Regel 210: Regel 210:
</syntaxhighlight>
</syntaxhighlight>
|}
|}
 
<br/>
==Noortje & Thijn==
==Noortje & Thijn==
{| style="border-collapse: collapse; border-width: 1px; border-style: solid; border-color: #000"
{| style="border-collapse: collapse; border-width: 1px; border-style: solid; border-color: #000"
Regel 249: Regel 249:
  }
  }
Programma </syntaxhighlight>
Programma </syntaxhighlight>
|}
|}<br/>


==John & Kevin==
==John & Kevin==

Versie van 21 okt 2012 22:39

Trompbots en Trompbot-orkesten gemaakt door leerlingen van het Dr Knippenberg College in Helmond

Orkesten

(Wordt nog verder ingevuld)

Trompbots

Claire & Pim

Tekening Programma
Bestand:Vb1.png

Bestand:Vb2.png
 Programma


Niek & Sanne

Tekening Programma
Bestand:Vb1.png

Bestand:Vb2.png
 Programma


Cas & Doortje

Tekening Programma
Bestand:Vb1.png

Bestand:Vb2.png
 Programma


Linda & Sam

Tekening Programma
Bestand:Vb1.png

Bestand:Vb2.png
 Programma


Jeroen & Stef

Tekening Programma
JenS.png

JenS.png
  #include <Servo.h>   
 Servo motorA;  
 Servo motorB;  
 void setup() 
 {              
   motorA.attach(13); 
   motorB.attach(10);
 }
 void punt() 
 {
   motorA.write(140);        
   delay(1000);               
   motorA.write(120);         
   delay(1000);        
   motorA.write(100);
   delay(1000);   
   motorB.write(170);
   delay(300);
   motorB.write(140);
   delay(300);
   motorB.write(110);
 }
 void streep()
 {
   motorA.write(120);
   delay(25);
   motorA.write(75);
   delay(100);
   motorA.write(120);
   delay(1000);
   motorB.write(120);
   delay(25);
   motorB.write(155);
   delay(100);
   motorB.write(120);
   delay(1000);
 }
 void loop()
 {
   delay(500);
   punt();
   punt();
   punt();
   delay(25);
   streep();
 }


Kim & Fleur

Tekening Programma
Bestand:Vb1.png

Bestand:Vb2.png
 Programma


Daan & Eveline

Tekening Programma
EenD1.png

EenD2.png
// beweeg.ino: Beweeg een servo tussen twee posities
 #include <Servo.h>    // zeg de computer dat we de servo functies willen gebruiken,  
//anders kan hij die niet vinden
 
 Servo motorA;  // definieer een servo met de naam motorA 
 Servo motorB;  // definieer een servo met de naam motorA 
 
 void setup() 
 {                
   motorA.attach(4); // vebind servo met aansluitpen 13
   motorB.attach(10); // vebind servo met aansluitpen 13
   pinMode(5, INPUT_PULLUP); // drukknop, als input
   pinMode(2, OUTPUT);
   motorA.write(0);
   motorB.write(60);    // LED als output

   while ( digitalRead(5) == HIGH ) 
      digitalWrite(2, HIGH);      //  zet dan de uitgang HOOG (lamp aan) 
  digitalWrite(2, LOW);   
 }
 void slag1()
 {
   motorA.write(70);
   motorB.write(180);
   delay(300);
 }
 void slag()
 {
   motorA.write(70);
   delay(100);
   motorA.write(15);
   delay(800);
 }
 void slag2()
 {
   motorB.write(180);
   motorA.write(70);
   delay(100);
   motorB.write(70);
   motorA.write(15);
   delay(500);
 }
 void start()
 {
   motorA.write(15);
   motorB.write(70);
   delay(300);
 }
 
 void slag3()
 {
   motorA.write(70);
   delay(150);
   motorB.write(180);
   motorA.write(15);
   delay(500);
   motorA.write(70);
   motorB.write(70);
   delay(150);
   motorA.write(15);
   delay(500);
 }
 void bas()
 {
   motorA.write(70);
   motorB.write(180);
   delay(300);
   motorA.write(15);
   delay(150)
   motorB.write(70);
   motorA.write(70);
   delay(200);
   motorB.write(180);
   motorA.write(15);
   delay(300);
 }  
 void loop() 
 {
   start();
   delay(200);
   slag3();
   start();
   slag();
   start();
   slag2();
   slag3();
   slag3();
 }


Noortje & Thijn

Tekening Programma
NenT.png
// beweeg.ino: Beweeg een servo tussen twee posities
 #include <Servo.h>  // zeg de computer dat we de servo functies willen gebruiken, 
//anders kan hij die niet vinden
 
 Servo motorA;  // definieer een servo met de naam motorA 
 
 void setup() 
 { 
   pinMode(5, INPUT_PULLUP);   
   motorA.attach(13); // vebind servo met aansluitpen 13
   motorA.write(0);
   while(digitalRead(5) == HIGH){        /// doe niets
   }
 }
 
 void loop() 
 {
  motorA.write(0);          // beweeg naar 30 graden stand
   delay(400);              // Wacht 1 seconden (1000 milliseconden)
  motorA.write(30);         // beweeg naar 30 graden stand
   delay(100 );             // Wacht 1 seconden (1000 milliseconden)
  motorA.write(0);          // beweeg naar 120 graden stand
   delay(400);              // Wacht 1 seconden (1000 milliseconden)
   motorA.write(30);
   delay(100);
   motorA.write(0);         // beweeg naar 120 graden stand
   delay(200);              // Wacht 1 seconden (1000 milliseconden)
   motorA.write(30);
   delay(100);
 }
Programma


John & Kevin

Tekening Programma
JenK.png
 Programma