Build a SUPER SMART Chessboard! Play online or against Raspberry Pi

00:20:48
https://www.youtube.com/watch?v=Z92TdhsAWD4

摘要

TLDRIn this DIY project by Lewis of DIY Machines, you are guided to construct a smart chessboard that allows both local and online play. This innovative chessboard features 3D printed components and electronic parts such as a Raspberry Pi, Arduino Nano, and LED strips. It facilitates real-time play using actual chess pieces with minimal delay between remote players. The board provides assistance by suggesting moves and ensuring rules compliance while offering a computer opponent for single-player mode, powered by a Raspberry Pi. All components, except electronics, are 3D printable, and the board is USB-powered, allowing for both indoor and outdoor use. Detailed assembly instructions include 3D printing advice, LED wiring, and soldering guides. Software setup involves installing Raspberry Pi OS, relevant Python scripts, chess refereeing logic, and a chess engine. PCB Way sponsors this educational project, which aims to foster creativity and technical skills among enthusiasts.

心得

  • 🎨 Entirely 3D printable board, apart from electronics.
  • 🖥️ Powered by Raspberry Pi for challenging gameplay.
  • 🕹️ Facilitates both local and remote chess matches.
  • 💡 LEDs provide visual game status cues and aesthetics.
  • 🔌 USB powered for portable play.
  • 🔧 Minimal components required for assembly.
  • 🌐 Online play capability with another board.
  • 🤖 Built-in computer opponent.
  • 📦 Complete component list available online.
  • 🎓 Educational project supported by PCB Way.

时间轴

  • 00:00:00 - 00:05:00

    The introduction outlines a DIY project to create a smart chessboard capable of local and remote play via the internet, using real chess pieces. This innovative board has single-player mode features, such as rule checking, move suggestions, and an option to play against a computer, powered by a Raspberry Pi. It’s 3D printable, upgradable with LEDs for immersive visual effects, and runs on USB power, enabling both indoor and outdoor play. The project is sponsored by PCB Way and uses a minimal component list, including LEDs, Raspberry Pi, Arduino Nano, and other electronic parts.

  • 00:05:00 - 00:10:00

    The video progresses into the construction phase, involving 3D printing and assembling the chessboard's main parts with wood-infused PLA, requiring no supports. The construction stages include attaching LEDs in a zigzag pattern, mindful of directional arrows for seamless connectivity. Once LEDs are positioned, the video advises on connecting tactile switches on a printed panel in a correct sequence to ensure functionality. The board's control panel assembly includes careful wire management, linking each button and connecting to an Arduino Nano, which tests continuity and functionality.

  • 00:10:00 - 00:15:00

    Further assembly involves integrating LED strips for control panel backlighting and ensuring connectivity with the Arduino Nano. A simple test script checks these setups. The project also incorporates an external USB power connection, with wiring blocks organizing the power distribution to various components. Additional LED strips are installed for illuminating board coordinates. The creator expresses gratitude to supporters for enabling project development, including Patreon contributors and provided filaments. Instructions lead to coding Arduino Nano, setting up Raspberry Pi, and installing required software.

  • 00:15:00 - 00:20:48

    Finally, the chessboard's wiring is completed by connecting the remaining electronics such as an OLED display and a logic-level converter, necessary for interfacing the Raspberry Pi. Dupont connectors make customizing connections easy. Added software extends game utility, featuring remote interaction and AI gameplay. The creator invites viewers to replicate the project, offering 3D printable chess pieces and directing to more DIY projects. The video concludes with sponsor acknowledgments to PCB Way, underlining their PCB prototyping services and offering bonuses for new members.

显示更多

思维导图

视频问答

  • What are the required components for building the smart chessboard?

    You'll need filament for 3D printing, LEDs, a Raspberry Pi, micro SD card, OLED screen, Arduino Nano, a logic level converter, tactile switches, wiring blocks, a USB board, and some bolts.

  • Can this chessboard be used for online play?

    Yes, you can build two boards and connect them digitally to play online with another person.

  • What is the role of the Raspberry Pi in the chessboard?

    The Raspberry Pi powers the computer opponent and runs the necessary software for gameplay.

  • Are the printed chess pieces required for playing?

    You can print your own chess pieces or use the creator's design for a small donation.

  • How is the chessboard powered?

    It is powered by USB and can be connected to a mains power source or a USB battery pack for portable play.

  • Do the LEDs have a functional role besides aesthetics?

    Yes, the LEDs communicate game information and highlight the chess pieces.

  • What software is needed for the chessboard to function?

    You'll need to install the Raspberry Pi OS, Python scripts, Max Chess, and the Stockfish chess engine.

  • Is it possible to print the board entirely using 3D printing?

    Yes, except for the electronic components, the chessboard is fully 3D printable.

  • How can the chessboard assist in gameplay?

    It can check if you play by the rules, suggest moves, and offer a challenging computer opponent.

  • Where can I find the project files and component list?

    Links to the 3D printable files and parts list are available in the video description and on the project page on the creator's website.

查看更多视频摘要

即时访问由人工智能支持的免费 YouTube 视频摘要!
字幕
en
自动滚动:
  • 00:00:00
    hello i'm lewis and this is diy machines
  • 00:00:04
    and in this project i'll show you how
  • 00:00:06
    you can build your own smart chessboard
  • 00:00:08
    for both local and online remote play
  • 00:00:12
    though this board has a great single
  • 00:00:14
    player mode
  • 00:00:16
    if you build two and bond them together
  • 00:00:17
    digitally you can then
  • 00:00:19
    send one to a friend or loved one so
  • 00:00:21
    that you can play chess together
  • 00:00:23
    over the internet with real chess pieces
  • 00:00:25
    and only a few seconds delay
  • 00:00:28
    it's a great way to share some time and
  • 00:00:30
    to connect with people
  • 00:00:31
    who are physically distant
  • 00:00:35
    this 3d printable chessboard has plenty
  • 00:00:37
    of tricks up his sleeve
  • 00:00:39
    such as checking that you play by the
  • 00:00:41
    rules and
  • 00:00:42
    warning you when you don't it can also
  • 00:00:45
    suggest
  • 00:00:46
    your next best move if you want
  • 00:00:49
    it also contains a formidable computer
  • 00:00:52
    opponent
  • 00:00:53
    to play against thanks to the internal
  • 00:00:55
    raspberry pi
  • 00:00:58
    and i think it looks super cool when
  • 00:01:00
    played in the evenings
  • 00:01:02
    except for the electronics it is
  • 00:01:04
    entirely 3d printable
  • 00:01:06
    the leds beneath the playing surface
  • 00:01:09
    communicate
  • 00:01:10
    a lot of information about the game to
  • 00:01:12
    you whilst
  • 00:01:13
    also creating a very cool effect by
  • 00:01:16
    underlighting our chess pieces
  • 00:01:18
    the clear ones were printed on my elegu
  • 00:01:21
    resin printer
  • 00:01:22
    and look great the others are printed on
  • 00:01:25
    a traditional
  • 00:01:26
    ftm printer the smart chessboard is
  • 00:01:28
    powered by usb
  • 00:01:30
    you can plug it into the mains when
  • 00:01:32
    you're indoors
  • 00:01:33
    but can also enjoy many hours of
  • 00:01:36
    untethered play
  • 00:01:38
    outside or on your coffee table using a
  • 00:01:41
    common usb battery pack
  • 00:01:45
    this project has been kindly sponsored
  • 00:01:47
    by pcb way
  • 00:01:48
    a great place to source your own pcbs
  • 00:01:51
    more about that later
  • 00:01:52
    as feature rich as the smart chessboard
  • 00:01:55
    is
  • 00:01:56
    it's actually made from very few
  • 00:01:57
    components you'll need some filament for
  • 00:02:00
    the 3d printed parts
  • 00:02:01
    as well as some leds you'll need the
  • 00:02:04
    sort where you get
  • 00:02:05
    30 per meter on the roll a raspberry pi
  • 00:02:07
    and micro sd card
  • 00:02:09
    oled screen an arduino nano a logic
  • 00:02:12
    level converter
  • 00:02:13
    10 six millimeter push buttons two
  • 00:02:16
    wiring blocks
  • 00:02:17
    a usb dip board and some bolts
  • 00:02:20
    as always you'll find a list to all of
  • 00:02:22
    these parts and where you can find them
  • 00:02:24
    online
  • 00:02:25
    down below this video and on this
  • 00:02:27
    project's page at my website
  • 00:02:29
    we will need to start by printing the
  • 00:02:31
    four main parts of the base assembly
  • 00:02:33
    i printed mine in a wood infused pla
  • 00:02:36
    and added a brim to help with the bed
  • 00:02:38
    adhesion
  • 00:02:39
    i put links to where you can find the 3d
  • 00:02:41
    printable files in the description below
  • 00:02:45
    there is no need for support when
  • 00:02:46
    printing these parts
  • 00:02:48
    or any of the others for this project
  • 00:02:51
    once printed they are then simply glued
  • 00:02:53
    together
  • 00:02:55
    ensure that they are pressed together
  • 00:02:56
    firmly whilst the glue sets
  • 00:02:58
    the last one is best added from
  • 00:03:02
    underneath
  • 00:03:06
    next we will add the leds to the main
  • 00:03:08
    surface of our chessboard
  • 00:03:10
    for this you're going to need to cut
  • 00:03:12
    eight lengths of eight leds from your
  • 00:03:14
    roll
  • 00:03:15
    cut straight through the center of the
  • 00:03:17
    solder pads don't worry if you find that
  • 00:03:19
    one of your cuts has solder on the joint
  • 00:03:21
    you can still cut through this just like
  • 00:03:23
    the others now with our lengths of leds
  • 00:03:26
    cut
  • 00:03:27
    you should add some solder to the three
  • 00:03:29
    pads at both ends of each strip
  • 00:03:31
    this will make attaching wires to these
  • 00:03:33
    much easier
  • 00:03:34
    later we will wire our leds
  • 00:03:38
    in a zigzag pattern going back and forth
  • 00:03:41
    across the surface of the chessboard
  • 00:03:43
    you'll need to pay close attention to
  • 00:03:45
    the arrows on both pieces
  • 00:03:48
    i've put some arrows here on the 3d
  • 00:03:49
    print which need to match up with the
  • 00:03:52
    arrows that you'll find
  • 00:03:53
    going along the strip of your leds the
  • 00:03:56
    arrows found on our strips of leds
  • 00:03:59
    represents the direction that the data
  • 00:04:01
    takes as it moves
  • 00:04:02
    from one pixel through to the next to
  • 00:04:05
    the first strip
  • 00:04:06
    in the bottom right corner we'll add a
  • 00:04:07
    set of three 28 centimeter long wires
  • 00:04:11
    they can be trimmed in length later you
  • 00:04:14
    can then slide the strip
  • 00:04:15
    into position being careful not to catch
  • 00:04:18
    any of the leds
  • 00:04:19
    as we continue to zigzag up through the
  • 00:04:21
    chessboard
  • 00:04:22
    we'll use five centimeter long wires to
  • 00:04:25
    join each of the returns
  • 00:04:27
    i found it easiest to prepare 21 of
  • 00:04:29
    these wires
  • 00:04:30
    before adding them to the board keep
  • 00:04:33
    repeating this
  • 00:04:34
    for the remainder of your strips
  • 00:04:35
    remembering to pay attention
  • 00:04:37
    to the directional arrows on the printed
  • 00:04:39
    board and your leds
  • 00:04:41
    and be careful with your shoulder joints
  • 00:04:48
    when you find yourself at the end of the
  • 00:04:50
    last led strip
  • 00:04:52
    attach a couple of 16 centimeter long
  • 00:04:54
    wires to only the
  • 00:04:56
    5 volt and ground connections
  • 00:04:59
    you can then go ahead and print the four
  • 00:05:01
    sections of the playing surface
  • 00:05:03
    and pop those into place temporarily
  • 00:05:08
    by the way if you prefer to follow a
  • 00:05:11
    wiring diagram
  • 00:05:12
    as you go through the electronics then
  • 00:05:14
    you'll find a link to this one that i've
  • 00:05:15
    prepared
  • 00:05:16
    down below the video but don't worry
  • 00:05:18
    i'll continue to step through the
  • 00:05:20
    remainder of the electronics now
  • 00:05:22
    next we'll turn our attention to the
  • 00:05:24
    main control panel
  • 00:05:26
    i printed mine in both gray and white
  • 00:05:28
    filament and changed color after just
  • 00:05:31
    five layers
  • 00:05:33
    after you 3d printed one of your own we
  • 00:05:35
    can glue into position
  • 00:05:36
    10 of the small tactile switches you'll
  • 00:05:39
    need to orientate the switches
  • 00:05:41
    so the legs run from side to side along
  • 00:05:44
    the top and along the bottom like so
  • 00:05:47
    take care when gluing the switches from
  • 00:05:49
    behind that none of the glue finds its
  • 00:05:51
    way to the front
  • 00:05:53
    once dry we can then set about to
  • 00:05:55
    connect all of the ground connections
  • 00:05:57
    of our 10 switches together in series
  • 00:06:00
    one after another start by connecting a
  • 00:06:04
    13 centimeter long wire to this leg
  • 00:06:06
    on the switch for a1 we'll then use
  • 00:06:10
    several shorter lengths of wire to
  • 00:06:12
    banning hop between
  • 00:06:13
    each of the switches connecting their
  • 00:06:15
    grounds together
  • 00:06:16
    use a 5 centimeter wire to go around
  • 00:06:18
    this first return
  • 00:06:20
    and an eight centimeter wire to go
  • 00:06:22
    around the second return
  • 00:06:25
    to be able to connect each of our
  • 00:06:27
    buttons to the arduino
  • 00:06:29
    we'll need to add one more wire to each
  • 00:06:31
    of them
  • 00:06:32
    now you can either label these as you go
  • 00:06:34
    along or use the continuity feature of a
  • 00:06:36
    multimeter
  • 00:06:37
    to figure out later solder an additional
  • 00:06:40
    wire to each of the buttons
  • 00:06:42
    following the suggested lengths shown
  • 00:06:44
    here once these have all been attached
  • 00:06:47
    you can thread them through these hoops
  • 00:06:49
    to help keep your work nice and tidy
  • 00:06:53
    now we can take our arduino nano and
  • 00:06:56
    begin to connect to it the work which
  • 00:06:57
    we've done so far
  • 00:06:59
    if you decided to use a multimeter
  • 00:07:01
    instead of labeling your wires earlier
  • 00:07:03
    you need to set it to its continuity
  • 00:07:05
    mode and then connect one probe to the
  • 00:07:07
    common ground
  • 00:07:09
    and then the other probe to an unused
  • 00:07:11
    button wire
  • 00:07:12
    you can then press each of the buttons
  • 00:07:14
    in turn until you find
  • 00:07:16
    the one which will be shown by a reading
  • 00:07:18
    on your multimeter
  • 00:07:19
    and more than likely a beeping noise
  • 00:07:23
    okay let's start connecting our buttons
  • 00:07:25
    to the arduino
  • 00:07:27
    the button a1 connects to pin d5
  • 00:07:31
    button b2 to pin d6
  • 00:07:34
    button c3 to d7 button d4
  • 00:07:38
    goes to arduino's d8 button
  • 00:07:41
    e5 to d9
  • 00:07:44
    f6 to d10
  • 00:07:47
    g7 to d11
  • 00:07:51
    h8 to d12
  • 00:07:56
    the wire coming from ok is connected to
  • 00:07:58
    a1
  • 00:08:01
    and the wire coming from hint is
  • 00:08:03
    connected to d3
  • 00:08:05
    then the button's common ground wire can
  • 00:08:07
    be connected to any of the three ground
  • 00:08:09
    connections
  • 00:08:10
    on the arduino next up is the back
  • 00:08:13
    lighting for our control panel
  • 00:08:15
    for this you should prepare and tin free
  • 00:08:18
    strips of two leds
  • 00:08:20
    solder a trio of 15 centimeter long
  • 00:08:22
    wires to the first led strip
  • 00:08:25
    then eight centimeters led strip four
  • 00:08:27
    and a half centimeters
  • 00:08:28
    led strip and the final 14 centimeters
  • 00:08:32
    after you have printed the led's mount
  • 00:08:34
    we can then pass the first pair through
  • 00:08:37
    and stick in place with its
  • 00:08:38
    self-adhesive backing
  • 00:08:40
    repeat this back and forth controlling
  • 00:08:42
    the arrows on the print match the arrows
  • 00:08:44
    on the led strips
  • 00:08:52
    to connect these leds to our arduino the
  • 00:08:54
    center digital wire heading into the
  • 00:08:56
    first strip
  • 00:08:57
    is to be connected to d4 we can also
  • 00:09:00
    take the opportunity now
  • 00:09:02
    to connect the data in wire going in at
  • 00:09:04
    the bottom of our chessboard to our leds
  • 00:09:07
    to pin a5 on the arduino nano
  • 00:09:16
    whilst we have our soldering iron still
  • 00:09:18
    hot we can add some additional wires to
  • 00:09:21
    the arduino
  • 00:09:22
    sold at a 15 centimeter long wire to
  • 00:09:24
    each of the arduino serial pins
  • 00:09:26
    these are marked as tx1 for transmit and
  • 00:09:29
    rx0
  • 00:09:31
    for receive attach a 7 centimeter long
  • 00:09:33
    wire to both the 5 volt
  • 00:09:35
    and one of the unused ground connections
  • 00:09:41
    we can now glue the led assembly for our
  • 00:09:43
    control panel
  • 00:09:44
    onto the rear of the buttons you'll find
  • 00:09:47
    a notch in one
  • 00:09:48
    and a protrusion in the other which are
  • 00:09:49
    there to help you align them
  • 00:09:52
    just use some glue of your choice to
  • 00:09:54
    seal them firmly together
  • 00:09:56
    to bring together all the five volt
  • 00:09:58
    connections and all the ground
  • 00:10:00
    connections
  • 00:10:00
    we can use our two wiring blocks you'll
  • 00:10:03
    need to connect
  • 00:10:04
    both the 5 volt power lines coming from
  • 00:10:06
    either ends of our chessboard leds
  • 00:10:09
    the 5 volt line from the arduino nano
  • 00:10:11
    and the 5 volts from the control panel
  • 00:10:13
    leds
  • 00:10:14
    to one of our blocks and to the other
  • 00:10:17
    block connect both the negative ends of
  • 00:10:19
    our chessboard leds
  • 00:10:20
    the arduino nano and our control panel
  • 00:10:23
    leds
  • 00:10:24
    before we can fix this part in place you
  • 00:10:27
    should thread the 14 centimeter wires
  • 00:10:29
    coming from the end of our control panel
  • 00:10:31
    led run
  • 00:10:32
    through this little tunnel at the end of
  • 00:10:34
    our board
  • 00:10:38
    you can now fix the control panel in
  • 00:10:40
    place
  • 00:10:41
    using four of your m3x6 bolts
  • 00:10:48
    we now find ourselves a great place to
  • 00:10:51
    test both the buttons
  • 00:10:52
    and the leds which we have installed so
  • 00:10:54
    far to do this
  • 00:10:56
    we'll upload a simple test script to the
  • 00:10:58
    arduino nano
  • 00:11:00
    temporarily and see what happens
  • 00:11:08
    your computer's usb power supply and the
  • 00:11:11
    arduino nano
  • 00:11:12
    are not able to provide enough power to
  • 00:11:15
    light all of these leds at their full
  • 00:11:17
    brightness
  • 00:11:18
    so the code will limit their brightness
  • 00:11:20
    for now but don't worry
  • 00:11:22
    they will be much brighter later next up
  • 00:11:24
    is adding the ability
  • 00:11:26
    to power our chessboard from outside the
  • 00:11:28
    board using a usb
  • 00:11:29
    connection you'll need to solder a 12
  • 00:11:32
    centimeter wire to both the ground and
  • 00:11:35
    power connection on your usb
  • 00:11:36
    board this can then be held in place
  • 00:11:40
    by two m3 by 6 bolts
  • 00:11:46
    now you can connect the positive and
  • 00:11:48
    ground wire coming from our usb board
  • 00:11:51
    to their respective terminal blocks
  • 00:11:53
    along with the otherwise
  • 00:11:55
    we can now connect an external usb power
  • 00:11:58
    supply to our board using our new port
  • 00:12:01
    and you should find all the leds light
  • 00:12:03
    up just as they did the first time
  • 00:12:05
    around
  • 00:12:07
    to illuminate the coordinates around the
  • 00:12:09
    edge of our chessboard
  • 00:12:10
    we can add a couple more strips of eight
  • 00:12:12
    leds
  • 00:12:14
    these strips are going to need to turn
  • 00:12:15
    around a very tight corner on your board
  • 00:12:18
    so use a two two and a half and a three
  • 00:12:20
    centimeter wire to join the two together
  • 00:12:22
    this will help later on when you put
  • 00:12:24
    them in place
  • 00:12:27
    once you've added these you can join the
  • 00:12:29
    first one to our wires coming through
  • 00:12:31
    the tunnel
  • 00:12:32
    next to our control panel
  • 00:12:36
    pass the strips carefully through the
  • 00:12:38
    tunnel in the first trench
  • 00:12:40
    go around the corner and then pass the
  • 00:12:42
    far strip through the other tunnel
  • 00:12:45
    you can then use some glue to help keep
  • 00:12:47
    your leds
  • 00:12:48
    roughly level and in line with the
  • 00:12:50
    squares of the chessboard
  • 00:12:52
    reconnecting the usb power supply to the
  • 00:12:55
    outside of the board
  • 00:12:56
    will allow you to check the leds again
  • 00:12:59
    and this time
  • 00:13:00
    you should see that these ones that
  • 00:13:01
    we've added around the outside of our
  • 00:13:03
    board
  • 00:13:03
    join in with the animation great work so
  • 00:13:06
    far
  • 00:13:07
    now quickly before we continue i want to
  • 00:13:10
    take a moment
  • 00:13:10
    to thank all the awesome people who've
  • 00:13:13
    helped make both this project
  • 00:13:14
    and all my other projects possible here
  • 00:13:16
    on youtube
  • 00:13:18
    first off are the patrons of diy
  • 00:13:20
    machines
  • 00:13:22
    their kind and generous support is used
  • 00:13:24
    towards funding the electronics
  • 00:13:26
    in designing and prototyping these
  • 00:13:28
    projects
  • 00:13:30
    thank you their support has proven very
  • 00:13:32
    crucial
  • 00:13:33
    over the last year and i am and always
  • 00:13:35
    will be grateful for it
  • 00:13:37
    i also want to thank everybody at 3d
  • 00:13:39
    jake
  • 00:13:40
    for kindly providing the filament needed
  • 00:13:42
    to bring this project to life
  • 00:13:44
    now before we start adding the brains in
  • 00:13:47
    the form of the raspberry pi
  • 00:13:48
    to our project we need to upload the
  • 00:13:51
    correct
  • 00:13:52
    final code to our arduino nano
  • 00:14:02
    for the next stage we will install the
  • 00:14:04
    raspberry pi operating system
  • 00:14:06
    onto our micro sd card then we'll boot
  • 00:14:09
    this on the raspberry pi
  • 00:14:11
    so that we can install the python
  • 00:14:12
    scripts along with
  • 00:14:14
    max chess which will be there to referee
  • 00:14:16
    your game
  • 00:14:17
    and stockfish which is the open source
  • 00:14:19
    chess engine which you can play against
  • 00:14:21
    locally now as more people build more of
  • 00:14:24
    these chessboards
  • 00:14:26
    and play with them it's incredibly
  • 00:14:28
    likely that the code is going to evolve
  • 00:14:30
    and improve over time because of this
  • 00:14:33
    i've written out these software steps
  • 00:14:35
    over on my website
  • 00:14:37
    this way futureme can keep up to date as
  • 00:14:40
    the project improves
  • 00:14:42
    so head over there follow the steps of
  • 00:14:44
    setting up the software on your
  • 00:14:45
    raspberry pi
  • 00:14:46
    once you've done that jump back here and
  • 00:14:49
    we'll finish off the last with the
  • 00:14:51
    [Music]
  • 00:14:56
    wiring um
  • 00:14:58
    all that remains now is to connect the
  • 00:15:00
    last of our electronics together
  • 00:15:03
    and uh you then we can start playing
  • 00:15:04
    chess on our chessboard
  • 00:15:06
    you can now connect the wire coming from
  • 00:15:08
    tx1 on our arduino
  • 00:15:11
    to the pin b1 and the wire rx0
  • 00:15:14
    to the pin b2 add a new
  • 00:15:17
    seven centimeter long wire between vb
  • 00:15:20
    and our five volt power block
  • 00:15:24
    and the ground pin and the ground power
  • 00:15:26
    block
  • 00:15:30
    attach some new 12 centimeter long wires
  • 00:15:33
    to
  • 00:15:34
    v8 a1 and a2 on the shifter
  • 00:15:37
    and you'll also need to use just a small
  • 00:15:40
    length of wire
  • 00:15:41
    to join oe to va both on the same board
  • 00:15:44
    in this case
  • 00:15:46
    if you want to learn a bit more about
  • 00:15:48
    using the txs01080
  • 00:15:51
    logic level converter for your own
  • 00:15:53
    projects
  • 00:15:54
    then i recently made a short mini video
  • 00:15:57
    on it
  • 00:15:57
    which you can find up here or a link to
  • 00:16:00
    in the description down below
  • 00:16:02
    turning our attention to the oled
  • 00:16:04
    display attached four
  • 00:16:06
    12 centimeter long wires to the four
  • 00:16:08
    points labeled as
  • 00:16:09
    scl sda vcc
  • 00:16:12
    and ground the only thing left to
  • 00:16:15
    connect now
  • 00:16:16
    is our raspberry pi i'm going to be
  • 00:16:19
    putting a
  • 00:16:19
    dupont style connector onto the ends of
  • 00:16:22
    the wires
  • 00:16:22
    and then using that to connect it to the
  • 00:16:24
    pi this is very easy
  • 00:16:26
    and cheap for you to make yourself and
  • 00:16:28
    i've made another video to show you
  • 00:16:30
    just how easy that is but if you don't
  • 00:16:33
    want to
  • 00:16:34
    or if you have a raspberry pi which
  • 00:16:36
    doesn't have any headers already
  • 00:16:38
    pre-soldered to it
  • 00:16:39
    then you can solder your wires directly
  • 00:16:41
    to the pins
  • 00:16:42
    once you've finished adding all the
  • 00:16:44
    female metal connectors to your wires
  • 00:16:46
    we'll start to insert them into the
  • 00:16:48
    plastic housing
  • 00:16:50
    for this you'll need one which measures
  • 00:16:51
    five by two and
  • 00:16:53
    a single one on its own now the order
  • 00:16:55
    that we insert them does matter
  • 00:16:57
    so i'll step you through which wire
  • 00:16:59
    wants to sit in which channel now
  • 00:17:02
    when looking from the back the top left
  • 00:17:04
    one should be the wire coming from va
  • 00:17:06
    on the logic converter the next one down
  • 00:17:09
    should be the sda wire from our screen
  • 00:17:13
    followed by the scl wire from the screen
  • 00:17:17
    then
  • 00:17:18
    we skip a pin and connect a new wire
  • 00:17:20
    here to the block of ground wires
  • 00:17:27
    on the other side at the top we'll use
  • 00:17:29
    another new wire to connect to the
  • 00:17:31
    volt block
  • 00:17:34
    followed by the screen's vcc wire
  • 00:17:38
    we then skip the third hole but then
  • 00:17:40
    connect the wire coming from a2
  • 00:17:42
    on our logic level converter and this
  • 00:17:46
    is followed by the converters a1 wire
  • 00:17:51
    the remaining ground wire for our screen
  • 00:17:53
    is added
  • 00:17:54
    to its own dupont housing
  • 00:17:58
    fit your raspberry pi inside of the
  • 00:18:00
    chessboard
  • 00:18:01
    using the four m two and a half bolts
  • 00:18:06
    use two entry bolts to hold your logic
  • 00:18:09
    level converter in place
  • 00:18:12
    the screen is then arranged inside its
  • 00:18:14
    3d printed panel from behind
  • 00:18:16
    and held in place with some glue
  • 00:18:23
    [Music]
  • 00:18:26
    the larger dupont connector is then
  • 00:18:28
    fitted so that the wire going to the 5
  • 00:18:30
    volt power block
  • 00:18:31
    is connected to the pi's 5 volt in the
  • 00:18:34
    top right corner
  • 00:18:36
    the lone ground wire for the screen is
  • 00:18:38
    to be connected to the 7th pin down
  • 00:18:40
    on the outside edge just two below our
  • 00:18:43
    larger connector
  • 00:18:45
    the panel itself can then be screwed
  • 00:18:47
    onto the chessboard
  • 00:18:48
    with the last of our m3 bolts
  • 00:18:53
    the last parts which we need to add to
  • 00:18:55
    our chessboard
  • 00:18:56
    are these 3d printed coordinate labels
  • 00:18:59
    these are simply printed and then glued
  • 00:19:01
    into position
  • 00:19:20
    and there you go that's your chessboard
  • 00:19:22
    project complete
  • 00:19:24
    you can now print some pieces of your
  • 00:19:26
    own if you'd like to support the channel
  • 00:19:28
    you can find the pieces that i've used
  • 00:19:30
    available for a small donation
  • 00:19:32
    over on my website or in the description
  • 00:19:34
    below
  • 00:19:36
    don't forget to check out some of the
  • 00:19:37
    other projects such as this hidden shelf
  • 00:19:40
    edge clock
  • 00:19:41
    and if you've enjoyed it please consider
  • 00:19:43
    subscribing
  • 00:19:44
    or sharing this project with someone who
  • 00:19:46
    may like to build one of their own
  • 00:19:48
    otherwise until next time ciao for now
  • 00:19:52
    one quick thing before i go that's to
  • 00:19:55
    say thank you to pcb way for sponsoring
  • 00:19:57
    this video
  • 00:19:58
    personally i'm currently learning to
  • 00:19:59
    create my first pcbs
  • 00:20:01
    and they have been great to work with
  • 00:20:03
    whilst i get to the grips of this
  • 00:20:05
    if you've wanted to have a go yourself
  • 00:20:07
    at creating a pcb
  • 00:20:08
    or if you already know what you're doing
  • 00:20:11
    now there's a great time
  • 00:20:12
    to try ordering some from pcb way
  • 00:20:15
    usually
  • 00:20:15
    they offer 10 pcbs for 5
  • 00:20:18
    but if you're a new member they'll give
  • 00:20:20
    you a five dollar bonus
  • 00:20:22
    effectively getting your first pcbs for
  • 00:20:24
    free
  • 00:20:25
    try them out at pcbway.com you'll also
  • 00:20:28
    find
  • 00:20:29
    a list of the parts on my website
  • 00:20:33
    to power all of these leds at full
  • 00:20:35
    brightness
  • 00:20:36
    so they will light up in a slightly
  • 00:20:38
    lesser
  • 00:20:39
    amount no and install the python
  • 00:20:43
    programs that i've covered
  • 00:20:46
    um
标签
  • 3D printing
  • chess
  • DIY
  • Raspberry Pi
  • smart chessboard
  • LED lights
  • Arduino Nano
  • online play
  • electronics
  • tutorial