Тёмный

Skittle Sorter 

Dorian McIntire
Подписаться 25 тыс.
Просмотров 1,6 тыс.
50% 1

Arduino

Опубликовано:

 

6 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 5   
@tecnologiajujuy8123
@tecnologiajujuy8123 5 лет назад
what sensor did you use??
@ferhada.oremari6483
@ferhada.oremari6483 6 лет назад
Nice project! Can you share the code?
@DorianMcIntire
@DorianMcIntire 6 лет назад
The code is fairly complex for two reasons: The device communicates using I2C The sensor had to be calibrated to recognize a shiny skittle. The reflectivity of the skittle made identification difficult with adjustments. ----------------------------------------------------#include #include "Adafruit_TCS34725.h" #define redpin 3 #define greenpin 5 #define bluepin 6 #define commonAnode false //SERVO KNOCK OFF #include Servo myservo; Servo myservo1; byte gammatable[256]; Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_50MS, TCS34725_GAIN_4X); void setup() { Serial.begin(9600); Serial.println("Color View Test!"); //SERVO KNOCK OFF myservo.attach(9); myservo1.attach(10); if (tcs.begin()) { Serial.println("Found sensor"); } else { Serial.println("No TCS34725 found ... check your connections"); while (1); // halt! } pinMode(redpin, OUTPUT); pinMode(greenpin, OUTPUT); pinMode(bluepin, OUTPUT); for (int i=0; i115 && r70 && g60 && b135 && r65 && g45 && b105 && r95 && g44 && b70 && r115 && g56 && b85 && r85 && g70 && b
@ferhada.oremari6483
@ferhada.oremari6483 6 лет назад
thanks dear.. and can you send me circuit schematics .
@DorianMcIntire
@DorianMcIntire 6 лет назад
I didn't create a schematic since all the connection information is in the code comments: Red pin on sensor to Arduino pin 3 Green on sensor pin to Arduino pin 5 Blue pin on sensor to Arduino pin 6 Servo 1 connected to pin 9 Servo 2 connected to pin 10 The code does the rest
Далее
Making Professional PCB at Home - cnc WEGSTR
16:35
Просмотров 56 тыс.
Arduino - Single LED Sensing and Emitting Light
8:04
ВЫЖИЛ В ДРЕВНЕМ ЕГИПТЕ!
13:09
Просмотров 288 тыс.
The coolest robot I've ever built!
19:40
Просмотров 4,7 млн
A Permanent Magnet That Turns On and Off
9:55
Просмотров 2,2 млн
Forget About Raspberry Pi! Use Your Old Phone Instead.
9:09
Can I make Titanium Damascus?
14:34
Просмотров 797 тыс.
I Built a Marble Machine that Makes Pixel Art
16:59
Просмотров 409 тыс.
Have you ever seen soldering THIS close?
9:53
Просмотров 494 тыс.
Arduino - Tap And Talk
6:20
Просмотров 41 тыс.
Build A 555 Timer !!!
14:49
Просмотров 13 тыс.
Developing a high fidelity LED Magnet Matrix
15:26
Просмотров 147 тыс.