Chess Clock

Chess Clock

thingiverse

https://youtu.be/9qv9F0zIUgI A High-Speed Chess Clock Controlled by Arduino. The speed of the clock can be adjusted using a potentiometer for fast-paced games. The time delay, t=3, allows magnetic fields to build up properly in most stepper motors. Ensure your power supply is accurate and provides 5 volts with 1 or 2 amps. The following Arduino sketch makes it all work. //Nano half step mode //512 >> 360 degrees 1.4 step/degree int Pin0 = 9; int Pin1 = 10; int Pin2 = 11; int Pin3 = 12; int Pin4 = 2; int Pin5 = 3; int Pin6 = 4; int Pin7 = 5; int ClockPin = 2; //choose between two clocks int SpeedPin = 0; //adjust with the potentiometer int t=3; void setup() { pinMode(Pin0, OUTPUT); pinMode(Pin1, OUTPUT); pinMode(Pin2, OUTPUT); pinMode(Pin3, OUTPUT); pinMode(Pin4, OUTPUT); pinMode(Pin5, OUTPUT); pinMode(Pin6, OUTPUT); pinMode(Pin7, OUTPUT); pinMode(ClockPin, INPUT); pinMode(SpeedPin, INPUT); } void loop() { int val = analogRead(ClockPin); int speed = analogRead(SpeedPin); if (val < 400) { digitalWrite(Pin0, LOW); digitalWrite(Pin1, LOW); digitalWrite(Pin2, LOW); digitalWrite(Pin3, HIGH); delay(t); digitalWrite(Pin0, LOW); digitalWrite(Pin1, LOW); digitalWrite(Pin2, HIGH); digitalWrite(Pin3, HIGH); delay(t); digitalWrite(Pin0, LOW); digitalWrite(Pin1, LOW); digitalWrite(Pin2, HIGH); digitalWrite(Pin3, LOW); delay(t); digitalWrite(Pin0, LOW); digitalWrite(Pin1, HIGH); digitalWrite(Pin2, HIGH); digitalWrite(Pin3, LOW); delay(t); digitalWrite(Pin0, LOW); digitalWrite(Pin1, HIGH); digitalWrite(Pin2, LOW); digitalWrite(Pin3, LOW); delay(t); digitalWrite(Pin0, HIGH); digitalWrite(Pin1, HIGH); digitalWrite(Pin2, LOW); digitalWrite(Pin3, LOW); delay(t); digitalWrite(Pin0, HIGH); digitalWrite(Pin1, LOW); digitalWrite(Pin2, LOW); digitalWrite(Pin3, LOW); delay(t); digitalWrite(Pin0, HIGH); digitalWrite(Pin1, LOW); digitalWrite(Pin2, LOW); digitalWrite(Pin3, HIGH); delay(t); delay(speed); } else { digitalWrite(Pin4, LOW); digitalWrite(Pin5, LOW); digitalWrite(Pin6, LOW); digitalWrite(Pin7, HIGH); delay(t); digitalWrite(Pin4, LOW); digitalWrite(Pin5, LOW); digitalWrite(Pin6, HIGH); digitalWrite(Pin7, HIGH); delay(t); digitalWrite(Pin4, LOW); digitalWrite(Pin5, LOW); digitalWrite(Pin6, HIGH); digitalWrite(Pin7, LOW); delay(t); digitalWrite(Pin4, LOW); digitalWrite(Pin5, HIGH); digitalWrite(Pin6, HIGH); digitalWrite(Pin7, LOW); delay(t); digitalWrite(Pin4, LOW); digitalWrite(Pin5, HIGH); digitalWrite(Pin6, LOW); digitalWrite(Pin7, LOW); delay(t); digitalWrite(Pin4, HIGH); digitalWrite(Pin5, HIGH); digitalWrite(Pin6, LOW); digitalWrite(Pin7, LOW); delay(t); digitalWrite(Pin4, HIGH); digitalWrite(Pin5, LOW); digitalWrite(Pin6, LOW); digitalWrite(Pin7, LOW); delay(t); digitalWrite(Pin4, HIGH); digitalWrite(Pin5, LOW); digitalWrite(Pin6, LOW); digitalWrite(Pin7, HIGH); delay(t); delay(speed); } }

Download Model from thingiverse

With this file you will be able to print Chess Clock with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Chess Clock.