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
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
@@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; }
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.
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.
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
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]
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
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; }
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.
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.......
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
As this guy seems not to be willing to share his knowledge, this might help: th-cam.com/video/CPUXxuyd9xw/w-d-xo.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
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 🇧🇪
Jajahaha the mini doors are so cool broh, keep going please and congratulations
The mini printed box for the elettronic!! so cute!
Where is the code?
yes bro the code is important for this project
@@aryanhighschool7808bro give the program code
Excellent project 👍 very good. I like it.👍
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
The important element in this project is the code,
share it with the viewers please
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
@@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;
}
@@prakashv5476 that code is having errors
Awsome machine liked it
Hello, great video 😄.
At 7:49, What is the name of the black components you put on the pcb?
Thank you in advance.
Cordially.
@Majeed's Gaming Hello, thank you very much 😁.
Have a nice week 😄.
Cordially.
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.
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.
Puedo utilizar fragmentos del video para un curso? (se va a comercializar el curso) Usaría del minuto 0:14 al 0:47
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.
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
great work buddy
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]
Did u prepare your own arudino
If I use Arduino uno instead of Arduino nano, how should the system's connection and codes be?
Can you please help me?
Amazing work!
Can we do this with other colour sensors
Nice job
Bro code for this
interestingengineering.com/video/make-your-very-own-arduino-based-color-candy-sorting-machine?fbclid=IwAR218zBq03LwtIUlU2CS-Zt5OJ3SetoEdObYuyuQbqc_JnUthWsW20Cikjk
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
Can't seem to find the code for the color sorting machine
Have you found solution?
Code is where?
Leider Sketch ist nicht für stepmotor Einleitung mit falschen sketch
sir problem in rotating bottom servo motor please help
very good bro
Hi mr can you send me the arduino code of this colour sorting
can you give me your code of this project ? please
Bro please send me the full circuit daigram of this sorting bot... 🙏
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;
}
Is this code functional? I want to do the project but the code is not there and I want to know if it works.
Sangat keren 👍👍
Good project
Bro where is the code .........
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.
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.......
Please give me code
Can I get the details of this project
Sir kya aap Tambrind Spoon 🥄 filling machine bana sakte ho
could you please share source code file. its very inspire, cool
descansas como si chambearas, donde esta el codigo?
love the beat
Can I order this
Code?
good
hello
i need a video of size sorting machine using arduino
can you make it??????????????
Can i get the source code?
Ada file garber nya ?
Can i have a code for this, sir?
Muy interesante, genial
Sir plz send Ardunio code
Code please
What is the really code ?
Peux t'on avoir le code
Icon..?
Y el codigo donde está el código 😊
Bro code u have
i want arduino code of this machine
beaucoup de vos création il manque les codes pour les débutants c'est dommage
Bhai code kaha h iska..?
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
Zouheir Benaissa-Yahia Hi. What you did about the code.
Kya aap ishe banake mujhe sell kar denge ?
i Need code sir?
can i get code
bhai koi aise remote control car bano jiske agee koi bhi object aia to vo ruk jai acceliration dene par bhi
Plywood
Hello sir can you please upload video on 3d Medelling on fusion 360 of this project
Code bro?
hello brother can you sebd me code arduino please?
please ineed a code
As this guy seems not to be willing to share his knowledge, this might help:
th-cam.com/video/CPUXxuyd9xw/w-d-xo.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
Need code bro
Wow
b
ro i need counting]
I have source!!
gg play loby
Very bad channel! Does not communicate with visitors at all!
Where is the code?
8:50 tehe
code?
where's the code?
Code?
The code is in the FIRST comment.