How to make colour sorting Machine using Arduino

Поділитися
Вставка
  • Опубліковано 2 гру 2024

КОМЕНТАРІ • 94

  • @NeedToDIY
    @NeedToDIY 4 роки тому +2

    The mini printed box for the elettronic!! so cute!

  • @djfago6240
    @djfago6240 3 роки тому +3

    This is so cool. I am a fan of your channel. Going back to school this year to learn industrial automation. With love from Belgium 🇧🇪

  • @diegosuarez5473
    @diegosuarez5473 5 років тому +5

    Jajahaha the mini doors are so cool broh, keep going please and congratulations

  • @florencemuloongo7264
    @florencemuloongo7264 2 роки тому +1

    I'm working on an egg grading machine and I'm using a similar principal but I'm using a loadcell sensor,I'm having challenges stoping and starting the motor depending on the output

  • @Melkano
    @Melkano 5 років тому +36

    Where is the code?

  • @gwharton68
    @gwharton68 4 роки тому +2

    Would be a fun project to build, but without the code for the PCB layout and the code to operate it with it is pretty much a waste.

  • @arduinoprojets4718
    @arduinoprojets4718 5 років тому +22

    The important element in this project is the code,
    share it with the viewers please

    • @prakashv5476
      @prakashv5476 3 роки тому +3

      Reference for coding and wiring of above project is
      interestingengineering.com/video/make-your-very-own-arduino-based-color-candy-sorting-machine?fbclid=IwAR218zBq03LwtIUlU2CS-Zt5OJ3SetoEdObYuyuQbqc_JnUthWsW20Cikjk

    • @arduinoprojets4718
      @arduinoprojets4718 2 роки тому +1

      @@prakashv5476 Sorry, there is nothing in the code that indicates Stepper Motors
      Is Stepper Motors moving like crazy?
      We need an answer from you, thank you
      #include
      #define S0 2
      #define S1 3
      #define S2 4
      #define S3 5
      #define sensorOut 6
      Servo topServo;
      Servo bottomServo;
      int frequency = 0;
      int color=0;
      void setup() {
      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);
      topServo.attach(7);
      bottomServo.attach(8);
      Serial.begin(9600);
      }
      void loop() {
      topServo.write(115);
      delay(500);

      for(int i = 115; i > 65; i--) {
      topServo.write(i);
      delay(2);
      }
      delay(500);

      color = readColor();
      delay(10);
      switch (color) {
      case 1:
      bottomServo.write(50);
      break;
      case 2:
      bottomServo.write(75);
      break;
      case 3:
      bottomServo.write(100);
      break;
      case 4:
      bottomServo.write(125);
      break;
      case 5:
      bottomServo.write(150);
      break;
      case 6:
      bottomServo.write(175);
      break;

      case 0:
      break;
      }
      delay(300);

      for(int i = 65; i > 29; i--) {
      topServo.write(i);
      delay(2);
      }
      delay(200);

      for(int i = 29; i < 115; i++) {
      topServo.write(i);
      delay(2);
      }
      color=0;
      }
      // Custom Function - readColor()
      int readColor() {
      // Setting red filtered photodiodes to be read
      digitalWrite(S2, LOW);
      digitalWrite(S3, LOW);
      // Reading the output frequency
      frequency = pulseIn(sensorOut, LOW);
      int R = frequency;
      // Printing the value on the serial monitor
      Serial.print("R= ");//printing name
      Serial.print(frequency);//printing RED color frequency
      Serial.print(" ");
      delay(50);
      // Setting Green filtered photodiodes to be read
      digitalWrite(S2, HIGH);
      digitalWrite(S3, HIGH);
      // Reading the output frequency
      frequency = pulseIn(sensorOut, LOW);
      int G = frequency;
      // Printing the value on the serial monitor
      Serial.print("G= ");//printing name
      Serial.print(frequency);//printing RED color frequency
      Serial.print(" ");
      delay(50);
      // Setting Blue filtered photodiodes to be read
      digitalWrite(S2, LOW);
      digitalWrite(S3, HIGH);
      // Reading the output frequency
      frequency = pulseIn(sensorOut, LOW);
      int B = frequency;
      // Printing the value on the serial monitor
      Serial.print("B= ");//printing name
      Serial.print(frequency);//printing RED color frequency
      Serial.println(" ");
      delay(50);
      if(R32 & G55){
      color = 1; // Red
      }
      if(G43 & B35){
      color = 2; // Orange
      }
      if(R40 & G40){
      color = 3; // Green
      }
      if(R24 & G30){
      color = 4; // Yellow
      }
      if(R46 & G55){
      color = 5; // Brown
      }
      if (G45 & B26){
      color = 6; // Blue
      }
      return color;
      }

    • @kushwanthbyragoni
      @kushwanthbyragoni Рік тому +2

      @@prakashv5476 that code is having errors

  • @samuelfellows6923
    @samuelfellows6923 5 років тому +1

    err.. has put a fan on the rear of cabinet, but has not drilled additional vent holes? - where is he expecting the air/heat to escape from, the cable hole at the bottom? = if used for a long time, i'd expect the arduino will overheat and then what would he do? ug at it/open the doors to let it cool down, [if installing a fan on a sealed box/chamber = you should make a second vent to allow the air to be displaced (logical/scientific) explanation]

  • @electronic7979
    @electronic7979 5 років тому +2

    Excellent project 👍 very good. I like it.👍

  • @3xAudio
    @3xAudio 4 роки тому +2

    I can't wait to use the colour sensor in more of my projects. so many possibilities. I Like how you shot this video i might learn from it for my future videos and projects.

  • @petiovelev97
    @petiovelev97 4 роки тому +1

    Hello, Can I replace the sensor with an arduino camera like OV7670 VGA camera? Should I use the same modules if i use an arduino camera? My idea is: the camera will take a picture of the object, then it will take a histogram of the picture or another process which takes the color of the object and recognize the color of the object. Everything is the same in process but I only want to change the sensor with camera.

  • @robertocameto487
    @robertocameto487 Рік тому +1

    In the web page, refering to this project, there is a text code which seems to be wrong, because it refers to two servo motors (high and bottom), but the project includes a stepper mototr

  • @kevinhoublon8630
    @kevinhoublon8630 2 роки тому +2

    Hello, great video 😄.
    At 7:49, What is the name of the black components you put on the pcb?
    Thank you in advance.
    Cordially.

    • @kevinhoublon8630
      @kevinhoublon8630 Рік тому

      @Majeed's Gaming Hello, thank you very much 😁.
      Have a nice week 😄.
      Cordially.

  • @Parth_188
    @Parth_188 5 років тому +1

    Awsome machine liked it

  • @estebanyanson
    @estebanyanson Рік тому

    Consulta. De qué manera puedo detectar que se enciende el led rojo de otro aparato sin que influya la luz ambiente?
    Tengo un electrodomestico que cuando termina enciende un led rojo pero no hace zumbido y quiero detectar ese led para hacer el zumbido yo.
    Gracias

  • @jair4666
    @jair4666 2 роки тому +1

    Puedo utilizar fragmentos del video para un curso? (se va a comercializar el curso) Usaría del minuto 0:14 al 0:47

  • @certified-forklifter
    @certified-forklifter 5 років тому +1

    great work buddy

  • @mrindian5455
    @mrindian5455 5 років тому

    Did u prepare your own arudino

  • @sudarshan0507
    @sudarshan0507 2 роки тому

    Can we do this with other colour sensors

  • @panettron
    @panettron 2 роки тому

    Amazing work!

  • @mucahitozdemir2476
    @mucahitozdemir2476 3 роки тому

    If I use Arduino uno instead of Arduino nano, how should the system's connection and codes be?
    Can you please help me?

  • @PASStaCreations
    @PASStaCreations 5 років тому +7

    Bro code for this

    • @prakashv5476
      @prakashv5476 3 роки тому

      interestingengineering.com/video/make-your-very-own-arduino-based-color-candy-sorting-machine?fbclid=IwAR218zBq03LwtIUlU2CS-Zt5OJ3SetoEdObYuyuQbqc_JnUthWsW20Cikjk

  • @learnwithjd8192
    @learnwithjd8192 5 років тому +2

    Code is where?

  • @tharunv1885
    @tharunv1885 5 років тому +2

    Bro where is the code .........

  • @arduinoprojets4718
    @arduinoprojets4718 2 роки тому +2

    Sorry, there is nothing in the code that indicates Stepper Motors
    Is Stepper Motors moving like crazy?
    We need an answer from you, thank you
    #include
    #define S0 2
    #define S1 3
    #define S2 4
    #define S3 5
    #define sensorOut 6
    Servo topServo;
    Servo bottomServo;
    int frequency = 0;
    int color=0;
    void setup() {
    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);
    topServo.attach(7);
    bottomServo.attach(8);
    Serial.begin(9600);
    }
    void loop() {
    topServo.write(115);
    delay(500);

    for(int i = 115; i > 65; i--) {
    topServo.write(i);
    delay(2);
    }
    delay(500);

    color = readColor();
    delay(10);
    switch (color) {
    case 1:
    bottomServo.write(50);
    break;
    case 2:
    bottomServo.write(75);
    break;
    case 3:
    bottomServo.write(100);
    break;
    case 4:
    bottomServo.write(125);
    break;
    case 5:
    bottomServo.write(150);
    break;
    case 6:
    bottomServo.write(175);
    break;

    case 0:
    break;
    }
    delay(300);

    for(int i = 65; i > 29; i--) {
    topServo.write(i);
    delay(2);
    }
    delay(200);

    for(int i = 29; i < 115; i++) {
    topServo.write(i);
    delay(2);
    }
    color=0;
    }
    // Custom Function - readColor()
    int readColor() {
    // Setting red filtered photodiodes to be read
    digitalWrite(S2, LOW);
    digitalWrite(S3, LOW);
    // Reading the output frequency
    frequency = pulseIn(sensorOut, LOW);
    int R = frequency;
    // Printing the value on the serial monitor
    Serial.print("R= ");//printing name
    Serial.print(frequency);//printing RED color frequency
    Serial.print(" ");
    delay(50);
    // Setting Green filtered photodiodes to be read
    digitalWrite(S2, HIGH);
    digitalWrite(S3, HIGH);
    // Reading the output frequency
    frequency = pulseIn(sensorOut, LOW);
    int G = frequency;
    // Printing the value on the serial monitor
    Serial.print("G= ");//printing name
    Serial.print(frequency);//printing RED color frequency
    Serial.print(" ");
    delay(50);
    // Setting Blue filtered photodiodes to be read
    digitalWrite(S2, LOW);
    digitalWrite(S3, HIGH);
    // Reading the output frequency
    frequency = pulseIn(sensorOut, LOW);
    int B = frequency;
    // Printing the value on the serial monitor
    Serial.print("B= ");//printing name
    Serial.print(frequency);//printing RED color frequency
    Serial.println(" ");
    delay(50);
    if(R32 & G55){
    color = 1; // Red
    }
    if(G43 & B35){
    color = 2; // Orange
    }
    if(R40 & G40){
    color = 3; // Green
    }
    if(R24 & G30){
    color = 4; // Yellow
    }
    if(R46 & G55){
    color = 5; // Brown
    }
    if (G45 & B26){
    color = 6; // Blue
    }
    return color;
    }

    • @Dark_v-sl2ks
      @Dark_v-sl2ks 6 місяців тому

      Is this code functional? I want to do the project but the code is not there and I want to know if it works.

  • @huyang8044
    @huyang8044 5 років тому +2

    can you give me your code of this project ? please

  • @narensky8649
    @narensky8649 5 років тому +1

    I make the cutting machine by seeing your video thanks for that but one problem stepper motor and servo motor is not working pls help.....
    And share u r email address to talk about the wire cutting machine
    THANK YOU.......

  • @RaviShankar-lm3xn
    @RaviShankar-lm3xn 2 роки тому

    sir problem in rotating bottom servo motor please help

  • @joysarkar2600
    @joysarkar2600 4 роки тому +3

    Please give me code

  • @mohamedayman8550
    @mohamedayman8550 5 років тому +2

    Hi mr can you send me the arduino code of this colour sorting

  • @ShaikhShaikh-yz2kz
    @ShaikhShaikh-yz2kz 6 місяців тому

    Sir kya aap Tambrind Spoon 🥄 filling machine bana sakte ho

  • @augustinetembo9988
    @augustinetembo9988 2 роки тому +1

    Can't seem to find the code for the color sorting machine

  • @deliageabou4025
    @deliageabou4025 5 років тому +2

    Code?

  • @designartgermanyhamm5394
    @designartgermanyhamm5394 3 роки тому

    Leider Sketch ist nicht für stepmotor Einleitung mit falschen sketch

  • @catherinejohnson9191
    @catherinejohnson9191 9 місяців тому

    Can I get the details of this project

  • @catatanharianinstruktur5887
    @catatanharianinstruktur5887 2 роки тому

    could you please share source code file. its very inspire, cool

  • @nezhaplays
    @nezhaplays 4 роки тому +1

    Can i get the source code?

  • @saravanakumar2765
    @saravanakumar2765 5 років тому +1

    Nice job

  • @popocolocoi6082
    @popocolocoi6082 5 років тому

    Thank you for this content. I believe with this technology, Political issues will be easily addressed, and all the warm-blooded animals will live happily ever after.

  • @ronydebnath6250
    @ronydebnath6250 4 роки тому

    hello
    i need a video of size sorting machine using arduino
    can you make it??????????????

  • @xBot-sn8cx
    @xBot-sn8cx Рік тому

    Can I order this

  • @LeonardoGarciaContreras-oe2er
    @LeonardoGarciaContreras-oe2er 8 місяців тому

    What is the really code ?

  • @udaykumard4261
    @udaykumard4261 3 роки тому +1

    Code please

  • @tomyhardiansyah47
    @tomyhardiansyah47 4 роки тому

    very good bro

  • @Karlos_13
    @Karlos_13 Рік тому

    descansas como si chambearas, donde esta el codigo?

  • @thanghoang0205
    @thanghoang0205 4 роки тому

    Can i have a code for this, sir?

  • @electricalcoder3025
    @electricalcoder3025 4 роки тому

    Good project

  • @alfinmesakhena3802
    @alfinmesakhena3802 Рік тому

    Sangat keren 👍👍

  • @sunowarshaikh6534
    @sunowarshaikh6534 4 роки тому +1

    Sir plz send Ardunio code

  • @elve44
    @elve44 Рік тому

    beaucoup de vos création il manque les codes pour les débutants c'est dommage

  • @prasoonpatel5408
    @prasoonpatel5408 4 роки тому

    Bhai code kaha h iska..?

  • @iwanbadrussamsi5616
    @iwanbadrussamsi5616 5 років тому

    Ada file garber nya ?

  • @Nani-wu5iy
    @Nani-wu5iy 5 років тому

    Icon..?

  • @elve44
    @elve44 4 роки тому

    Peux t'on avoir le code

  • @KevinRamirez-ib9yk
    @KevinRamirez-ib9yk 6 місяців тому

    Y el codigo donde está el código 😊

  • @zouheirbenaissa-yahia6899
    @zouheirbenaissa-yahia6899 5 років тому +1

    Mr innovation .. I want to make your project #colour sorting machine as a project to graduate from the university ... and I need the code of Arduino ... Help me please

    • @Hnejad
      @Hnejad 4 роки тому

      Zouheir Benaissa-Yahia Hi. What you did about the code.

  • @HammadAli-tq7se
    @HammadAli-tq7se 6 місяців тому

    i want arduino code of this machine

  • @gokulff777
    @gokulff777 4 місяці тому

    Bro code u have

  • @AAIschilling
    @AAIschilling 3 роки тому

    love the beat

  • @vrushr3759
    @vrushr3759 4 роки тому

    Hello sir can you please upload video on 3d Medelling on fusion 360 of this project

  • @EasyOne
    @EasyOne 5 років тому

    good

  • @gunterpietzsch3995
    @gunterpietzsch3995 4 роки тому +2

    As this guy seems not to be willing to share his knowledge, this might help:
    ua-cam.com/video/CPUXxuyd9xw/v-deo.html
    The color sensing stuff is the most important part of the code. All other elements like stepper and servo control are pretty well explained in several othe videos.
    Hope this helps

  • @dheerajswaroopsm691
    @dheerajswaroopsm691 3 роки тому

    Code bro?

  • @yongkipradana4571
    @yongkipradana4571 3 роки тому

    i Need code sir?

  • @kishanrathod4477
    @kishanrathod4477 4 роки тому

    Kya aap ishe banake mujhe sell kar denge ?

  • @rakeshmr3303
    @rakeshmr3303 3 роки тому

    can i get code

  • @atulgupta4098
    @atulgupta4098 5 років тому

    bhai koi aise remote control car bano jiske agee koi bhi object aia to vo ruk jai acceliration dene par bhi

  • @zakichahboun4836
    @zakichahboun4836 2 роки тому

    hello brother can you sebd me code arduino please?

  • @اسامهزياد-ي2ر
    @اسامهزياد-ي2ر 4 роки тому

    Need code bro

  • @saadslimati7469
    @saadslimati7469 2 роки тому

    please ineed a code

  • @LuizCamposTutoriais
    @LuizCamposTutoriais 5 років тому

    Wow

  • @Kingpunya
    @Kingpunya 18 днів тому +1

    Plywood

  • @electronicabasicacekit
    @electronicabasicacekit 5 років тому

    Muy interesante, genial

  • @luisdiegocarranza2234
    @luisdiegocarranza2234 2 роки тому

    I have source!!

  • @johndass-jc5fn
    @johndass-jc5fn Рік тому

    b
    ro i need counting]

  • @beneitez6443
    @beneitez6443 3 роки тому

    gg play loby

  • @dimauz1971
    @dimauz1971 5 років тому

    Very bad channel! Does not communicate with visitors at all!

  • @Hnejad
    @Hnejad 4 роки тому +4

    Where is the code?

  • @silabmatthewg.936
    @silabmatthewg.936 5 років тому +2

    code?

  • @slin3x33
    @slin3x33 7 місяців тому

    where's the code?

  • @syazanihusin2720
    @syazanihusin2720 10 місяців тому

    Code?

    • @tonyp4894
      @tonyp4894 2 місяці тому

      The code is in the FIRST comment.