Maintenance: Project Hub will be unavailable on Monday 24 (9AM to 6PM CET) while we deploy critical improvements

Lichess Link

Link an Arduino Uno with WiFi to the lichess. org API to play online chess the old fashioned way.

Jan 19, 2021

12498 views

3 respects

Components and supplies

1

Arduino UNO Wifi Rev.2

1

16 * 2 LCD Shield

Project description

Code

Lichess Link Repository

Download the lichess-link.ino from the following github repository and upload it to your arduino uno.

Downloadable files

Lichess link schematic

Fit the adafruit RGB LCD shield on to your Arduino uno wifi rev 2!

Lichess link schematic

Lichess link schematic

Fit the adafruit RGB LCD shield on to your Arduino uno wifi rev 2!

Lichess link schematic

Comments

Only logged in users can leave comments

Anonymous user

2 years ago

I want to build your project for my younger son, who loves chess. Today, I started to research your project in earnest. Some problems (yes, I realize your project is an alpha version): 1. Looks like the Arduino UNO Wifi Rev.2 board has been retired. Instead, the current approach seems to be a regular UNO board + an ESP8266 ESP-01 module board. How about updating your project for that configuration? I'm curious to see how you would handle the LCD in that case. 2. I'd shoot myself if I had to repeatedly cycle through the alphabet for each character to enter. You must find an easier (i.e. more contemporary) way of entering characters. * How about voice recognition? Your project seems like a perfect application for it. A very limited set of distinct sounds in the letters and numbers. After the software recognizes a desired move, the player would only need to push a button to accept that move or push a button to reject that move and try again. Seriously looking forward to the next version of your project!!! You have a great idea!!!

Anonymous user

2 years ago

You're right about the Arduino UNO Wifi Rev.2 board; I have no idea what I was looking at.

kzra

2 years ago

Thanks for the interest. I didn't know that the board was getting retired. I still see the board listed for sale on the Arduino website (i'm based in the UK): https://store.arduino.cc/arduino-uno-wifi-rev2. Primarily, the reason I chose this board was simplicity. I like that this project only requires the Uno board and an LCD shield to get up and running. Also, the project doesn't require soldering to be made portable. It wouldn't be too difficult to modify the project for a Wifi module board. In terms of software it would be useful if the module was compliant with the Wifi NINA library so you don't have to rewrite the HTTP requests with a different library. That said, the Wifi NINA library is very similar to the Ethernet and Wifi libraries and many of the function calls are the same (https://www.arduino.cc/en/Reference/WiFiNINA). The alphanumeric input method could definitely be improved. From experience, it is completely feasible to play full games with the current input method (you get quite quick with a bit of practice), but I really like your idea of using voice recognition. This would require a fair bit of hardware development. In the same way, if you were able to use a speaker to announce the opponent's move it would make the project more accessible for those who are visually impaired (and playing on a tactile chess set). Unfortunately i'm fairly swamped with other work projects right now, but this is something I might look into in the distant future. If you decide to build the project and make some of these modifications, please post them! And good luck.

Anonymous user

3 years ago

Hey, did you faced a problem with the lichess api? If I just use your code i get "Unexpected response: HTTP/1.1 400 Bad Request Bad Request!" maybe you have an idea here. Anyway thank you for this nice project!

Anonymous user

4 years ago

I want to build your project for my younger son, who loves chess. Today, I started to research your project in earnest. Some problems (yes, I realize your project is an alpha version): 1. Looks like the Arduino UNO Wifi Rev.2 board has been retired. Instead, the current approach seems to be a regular UNO board + an ESP8266 ESP-01 module board. How about updating your project for that configuration? I'm curious to see how you would handle the LCD in that case. 2. I'd shoot myself if I had to repeatedly cycle through the alphabet for each character to enter. You must find an easier (i.e. more contemporary) way of entering characters. * How about voice recognition? Your project seems like a perfect application for it. A very limited set of distinct sounds in the letters and numbers. After the software recognizes a desired move, the player would only need to push a button to accept that move or push a button to reject that move and try again. Seriously looking forward to the next version of your project!!! You have a great idea!!!

kzra

2 years ago

Thanks for the interest. I didn't know that the board was getting retired. I still see the board listed for sale on the Arduino website (i'm based in the UK): https://store.arduino.cc/arduino-uno-wifi-rev2. Primarily, the reason I chose this board was simplicity. I like that this project only requires the Uno board and an LCD shield to get up and running. Also, the project doesn't require soldering to be made portable. It wouldn't be too difficult to modify the project for a Wifi module board. In terms of software it would be useful if the module was compliant with the Wifi NINA library so you don't have to rewrite the HTTP requests with a different library. That said, the Wifi NINA library is very similar to the Ethernet and Wifi libraries and many of the function calls are the same (https://www.arduino.cc/en/Reference/WiFiNINA). The alphanumeric input method could definitely be improved. From experience, it is completely feasible to play full games with the current input method (you get quite quick with a bit of practice), but I really like your idea of using voice recognition. This would require a fair bit of hardware development. In the same way, if you were able to use a speaker to announce the opponent's move it would make the project more accessible for those who are visually impaired (and playing on a tactile chess set). Unfortunately i'm fairly swamped with other work projects right now, but this is something I might look into in the distant future. If you decide to build the project and make some of these modifications, please post them! And good luck.

Anonymous user

2 years ago

You're right about the Arduino UNO Wifi Rev.2 board; I have no idea what I was looking at.