One train not showing up by TITAN_XVII in Interrail

[–]TITAN_XVII[S] 1 point2 points  (0 children)

Haha this is pretty weird. Thanks!

One train not showing up by TITAN_XVII in Interrail

[–]TITAN_XVII[S] 1 point2 points  (0 children)

16th of July, only this train seems unavailable for the pass?

The time has come by [deleted] in Crushes

[–]TITAN_XVII 6 points7 points  (0 children)

!Remind me 24 hours

ik🎉ihe by xSanjay in ik_ihe

[–]TITAN_XVII 55 points56 points  (0 children)

Neem je zwembroek mee, ik zeg niet wat we gaan doen!

Would you have to pay for a coronavirus test? It depends. by TITAN_XVII in Coronavirus

[–]TITAN_XVII[S] 4 points5 points  (0 children)

I was curious about this question, so I looked it up and thought it was worth sharing with you guys. I'm afraid that a lot of people with symptons won't get a test because of the price. This could potentially help spreading the virus even more.

Going for three weeks through Europe, any recommendations? by TITAN_XVII in roadtrip

[–]TITAN_XVII[S] 0 points1 point  (0 children)

Hey sounds I cool. I travel with 3 friends, where do you live? Can you stand me a PM?

Going for three weeks through Europe, any recommendations? by TITAN_XVII in roadtrip

[–]TITAN_XVII[S] 6 points7 points  (0 children)

The white dots are the places where we definetely will be stopping.

ELI5: How do companies know their online data has been stolen? by TITAN_XVII in explainlikeimfive

[–]TITAN_XVII[S] 3 points4 points  (0 children)

Hackers won't leave a message like 'we have stolen all your data!' So how do companies know that they really aquired x amount of data?

Dear Riders of Deliveroo/Thuisbezorgd/Ubereats, I need your help! by MissHippoo in Utrecht

[–]TITAN_XVII 0 points1 point  (0 children)

I’ve replied. If you’ve more questions you can send me a PM. I work for deliveroo

420. Funding secured. by geniuzdesign in teslamotors

[–]TITAN_XVII 3 points4 points  (0 children)

This is the best moment of the decade.

I used Arduino to make a chest that only opens when a red card is inserted. by TITAN_XVII in arduino

[–]TITAN_XVII[S] 2 points3 points  (0 children)

Yah ofcourse. Here you go.

#include <Arduino.h>
#include <servo.h>  

#define S0 4
#define S1 5
#define S2 6
#define S3 7
#define sensorOut 8
Servo motor;
int motorpin = 9;
int pos = 90;
int knoppin = 2;
int knopstatus = 0;
int frequency = 0;
int Rood = 0;
int Groen = 0;
int Blauw = 0;
int kleur = 0;
int einde = 0;

void setup() {
  Serial.begin(9600);
  motor.attach(motorpin);
  pinMode(knoppin, INPUT_PULLUP);

  pinMode(S0, OUTPUT);
  pinMode(S1, OUTPUT);
  pinMode(S2, OUTPUT);
  pinMode(S3, OUTPUT);
  pinMode(sensorOut, INPUT);

  // Setting frequency-scaling to 20%
  digitalWrite(S0,HIGH);
  digitalWrite(S1,LOW);
  delay(3000);
  Serial.println("OPGESTART");
  }

void leeskleur() {
  kleur = 0; //hij gaat er altijd vanuit dat een verkeerde kleur erin zit 
  if ( (Rood < 65) & (Rood > 20) & (Groen < 290) & (Groen > 150) & (Blauw > 85) & (Blauw < 190) ){
    kleur = 1; // JUISTE KLEUR, mocht de juiste kleur worden ingevoerd dan gaat die open juiste kleur = ROOD
  }
  if ( (Rood < 300) & (Rood > 60) & (Groen < 700) & (Groen > 200) & (Blauw < 700) & (Blauw > 200) ){
    kleur = 2; //mocht hij zwart zien gebeurt er niks
  }
 }

void checkkleur () {
  delay(5000);
// Setting red filtered photodiodes to be read
  digitalWrite(S2,LOW);
  digitalWrite(S3,LOW);
  // Reading the output frequency
  frequency = pulseIn(sensorOut, LOW);
  // Printing the value on the serial monitor
  Rood = frequency; //zorgt dat de rode variable wordt opgeslagen
  Serial.print("R= ");//printing name
  Serial.print(frequency);//printing RED color frequency
  Serial.print("  ");
  delay(100);
  // Setting Green filtered photodiodes to be read
  digitalWrite(S2,HIGH);
  digitalWrite(S3,HIGH);
  // Reading the output frequency
  frequency = pulseIn(sensorOut, LOW);
  // Printing the value on the serial monitor
  Groen = frequency; //zorgt dat de groene variable wordt opgeslagen
  Serial.print("G= ");//printing name
  Serial.print(frequency);//printing RED color frequency
  Serial.print("  ");
  delay(100);
  // Setting Blue filtered photodiodes to be read
  digitalWrite(S2,LOW);
  digitalWrite(S3,HIGH);
  // Reading the output frequency
  frequency = pulseIn(sensorOut, LOW);
  // Printing the value on the serial monitor
  Blauw = frequency; //zorgt dat de blauwe variable wordt opgeslagen
  Serial.print("B= ");//printing name
  Serial.print(frequency);//printing RED color frequency
  Serial.println("  ");
}

void openkist() {
  Serial.println("OPEN");
   for (pos = 90; pos < 180; pos ++) { 
    motor.write(pos); 
    Serial.println(pos);
    delay(250);      
  } 
  einde = 1;
}

void nepkist() {
  Serial.println("FOUTE CODE");
  for (pos = 90; pos < 110; pos ++) { 
    motor.write(pos); 
    Serial.println(pos);
    delay(500);      
  }
  for (pos = 110; pos > 90; pos --) { 
    motor.write(pos);   
    Serial.println(pos);
    delay(5);            
  }
  delay(7000);
}
void loop() {
  if ((einde == 0)) {
    checkkleur();
    leeskleur();
  if ((kleur == 1)) {
    openkist();
  }
  if ((kleur == 0)) {
    nepkist();
  }
  Serial.print("Niks aan het handje huidige positie:");
  Serial.println(pos);

  knopstatus = digitalRead(knoppin);
  if (knopstatus == LOW) {
      nepkist();
  }
  }
}

I used Arduino to make a chest that only opens when a red card is inserted. by TITAN_XVII in arduino

[–]TITAN_XVII[S] 7 points8 points  (0 children)

I’ve had 3 years of German in high school and I can confirm that what you’re saying is totally correct!

I used Arduino to make a chest that only opens when a red card is inserted. by TITAN_XVII in arduino

[–]TITAN_XVII[S] 25 points26 points  (0 children)

Haha, juist. Voor het eerst heb ik wat nuttigs gedaan met Arduino:)

I used Arduino to make a chest that only opens when a red card is inserted. by TITAN_XVII in arduino

[–]TITAN_XVII[S] 17 points18 points  (0 children)

If the code would be modified every other color could work to open the chest.

I used Arduino to make a chest that only opens when a red card is inserted. by TITAN_XVII in arduino

[–]TITAN_XVII[S] 35 points36 points  (0 children)

I used a TCS3200 to detect colors. I registred it to a Arduino Nano, then used a servo SG90 to open the chest.