This week I worked on defining my final project idea and started to getting used to the documentation process.
Over the weekend, I accompanied my daughter as she played with Bead Art at the mall. She accidentally mixed all the colors together, making them extremely difficult to separate. Afterward, I researched online and found that many people enjoy Perler Bead Art, yet there currently isn't a small mechanical device available to sort the colors. So, I decided to try making a Perler Bead color sorter to help more players efficiently and quickly sort their beads.
This week, I learned how to modify the HTML content and Git Operations, also sketch the idea on paper
TCS3200 Connections:
GND: Connect to Arduino GND
VCC: Connect to Arduino 5V
OUT: Connect to a digital pin on Arduino (e.g., D2)
S0: Connect to another digital pin on Arduino (e.g., D3)
S1: Connect to another digital pin on Arduino (e.g., D4)
S2: Connect to another digital pin on Arduino (e.g., D5)
S3: Connect to another digital pin on Arduino (e.g., D6)
LED: Connect to Arduino 5V
Servo Motor Connections:
GND: Connect to Arduino GND
VCC: Connect to Arduino 5V
PWM: Connect to a digital pin on Arduino (e.g., D9)
void setup() {
myServo.attach(9); // Attach the servo to pin D9
// Initialize TCS3200 pins
pinMode(2, INPUT); // OUT pin
pinMode(3, OUTPUT); // S0 pin
pinMode(4, OUTPUT); // S1 pin
pinMode(5, OUTPUT); // S2 pin
pinMode(6, OUTPUT); // S3 pin
}
void loop() {
// Add code to read color from TCS3200
// For example, if color detected is red:
myServo.write(20); // Turn servo to 20 degrees for red
delay(1000); // Wait for a second
// Repeat for other colors
}