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; }
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]
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.
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
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
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 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.......
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.
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: 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
The mini printed box for the elettronic!! so cute!
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
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
Where is the code?
yes bro the code is important for this project
@@aryanhighschool7808bro give the program code
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.
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
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]
Excellent project 👍 very good. I like it.👍
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.
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
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.
Awsome machine liked it
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
Puedo utilizar fragmentos del video para un curso? (se va a comercializar el curso) Usaría del minuto 0:14 al 0:47
great work buddy
Did u prepare your own arudino
Can we do this with other colour sensors
Amazing work!
If I use Arduino uno instead of Arduino nano, how should the system's connection and codes be?
Can you please help me?
Bro code for this
interestingengineering.com/video/make-your-very-own-arduino-based-color-candy-sorting-machine?fbclid=IwAR218zBq03LwtIUlU2CS-Zt5OJ3SetoEdObYuyuQbqc_JnUthWsW20Cikjk
Code is where?
Bro where is the code .........
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.
can you give me your code of this project ? please
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.......
sir problem in rotating bottom servo motor please help
Please give me code
Hi mr can you send me the arduino code of this colour sorting
Sir kya aap Tambrind Spoon 🥄 filling machine bana sakte ho
Can't seem to find the code for the color sorting machine
Have you found solution?
Code?
Leider Sketch ist nicht für stepmotor Einleitung mit falschen sketch
Can I get the details of this project
could you please share source code file. its very inspire, cool
Can i get the source code?
Nice job
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.
hello
i need a video of size sorting machine using arduino
can you make it??????????????
Can I order this
What is the really code ?
Code please
very good bro
descansas como si chambearas, donde esta el codigo?
Can i have a code for this, sir?
Good project
Sangat keren 👍👍
Sir plz send Ardunio code
beaucoup de vos création il manque les codes pour les débutants c'est dommage
Bhai code kaha h iska..?
Ada file garber nya ?
Icon..?
Peux t'on avoir le code
Y el codigo donde está el código 😊
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.
i want arduino code of this machine
Bro code u have
love the beat
Hello sir can you please upload video on 3d Medelling on fusion 360 of this project
good
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
Code bro?
i Need code sir?
Kya aap ishe banake mujhe sell kar denge ?
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
hello brother can you sebd me code arduino please?
Need code bro
please ineed a code
Wow
Plywood
Muy interesante, genial
I have source!!
b
ro i need counting]
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.