# Qualia S3 Sushi Conveyor Belt

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/127/650/medium800thumb/lcds___displays_long_solo.jpg?1707758745)

_"You ever heard of sashimis? What about sushis?" -Letterkenny_&nbsp;

More and more sushi conveyor belt demos are appearing on thin displays around the internet. This idea seemed perfect for the Adafruit Qualia S3 paired with some bar displays and a side of wasabi. Endlessly scroll plates of sushi on your desk as you countdown the hours to your dinner out at the sushi bar.

https://youtube.com/shorts/6KpIZiimDkk

This project doesn't necessary need an enclosure, but its way more fun with a 3D printed nigiri sushi (remixed from [this model on Thingiverse](https://www.thingiverse.com/thing:6224041)) featuring a cutout for the screen. The rice ball box houses the Qualia with a little scooped opening for a USB power cable.

![lcds___displays_edited_P1440312.jpg](https://cdn-learn.adafruit.com/assets/assets/000/127/647/medium640/lcds___displays_edited_P1440312.jpg?1707757933)

https://youtu.be/V26JlncR9Ss

## Parts
### Adafruit Qualia ESP32-S3 for TTL RGB-666 Displays

[Adafruit Qualia ESP32-S3 for TTL RGB-666 Displays](https://www.adafruit.com/product/5800)
There's a few things everyone loves: ice cream, kittens, and honkin' large TFT screens. We're no strangers to small TFT's - [from our itsy 1.14" color display](https://www.adafruit.com/search?q=1.14+tft) that graces many-a-TFT-Feather to <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/5800)
[Related Guides to the Product](https://learn.adafruit.com/products/5800/guides)
![Overhead shot of TFT driver board connected to a round TFT display, which says, "Hello world!"](https://cdn-shop.adafruit.com/640x480/5800-06.jpg)

### Rectangle Bar RGB TTL TFT Display - 3.7" 240x960

[Rectangle Bar RGB TTL TFT Display - 3.7" 240x960](https://www.adafruit.com/product/5799)
This is a screen for advanced hackers who like the look of a loooooooong rectangular bar TFT screen with tons of pixels. The 3.7" rectangular&nbsp;display has 240x960 18-bit full-color pixels and is an&nbsp; **IPS** &nbsp;display, so the color looks great up to 80 degrees...

In Stock
[Buy Now](https://www.adafruit.com/product/5799)
[Related Guides to the Product](https://learn.adafruit.com/products/5799/guides)
![3.7" TFT 240x960 RGB](https://cdn-shop.adafruit.com/640x480/5799-00.jpg)

### Rectangle Bar RGB TTL TFT Display - 3.2" 320x820 with Cap Touch

[Rectangle Bar RGB TTL TFT Display - 3.2" 320x820 with Cap Touch](https://www.adafruit.com/product/5797)
This is a screen for advanced hackers who like the look of a long rectangular&nbsp;TFT screen with tons of pixels. The 3.2"&nbsp;display has 320x820 18-bit full-color pixels and is an&nbsp; **IPS** &nbsp;display, so the color looks great up to 80 degrees off-axis in any...

In Stock
[Buy Now](https://www.adafruit.com/product/5797)
[Related Guides to the Product](https://learn.adafruit.com/products/5797/guides)
![Capacitive 3.2" 320x820 RGB666 TFT](https://cdn-shop.adafruit.com/640x480/5797-00.jpg)

### Pink and Purple Woven USB A to USB C Cable - 1 meter long

[Pink and Purple Woven USB A to USB C Cable - 1 meter long](https://www.adafruit.com/product/5153)
This cable is not only super-fashionable, with a woven pink and purple Blinka-like pattern, it's also made for USB C for our modernized breakout boards, Feathers, and more.&nbsp;&nbsp;[If you want something just like it but for Micro B, we...](https://www.adafruit.com/product/4111)

Out of Stock
[Buy Now](https://www.adafruit.com/product/5153)
[Related Guides to the Product](https://learn.adafruit.com/products/5153/guides)
![Angled shot of coiled pink and purple USB cable with USB A and USB C connectors.](https://cdn-shop.adafruit.com/640x480/5153-02.jpg)

# Qualia S3 Sushi Conveyor Belt

## 3D Printing

![](https://cdn-learn.adafruit.com/assets/assets/000/127/639/medium800/lcds___displays_edited_P1440254.jpg?1707756617)

The sushi conveyor belt may be assembled with 3D printed parts, described below. It is a remix of the [Sushi Go Nigiri Box model](https://www.thingiverse.com/thing:6224041) by [mderoxtro](https://www.thingiverse.com/mderoxtro).

The case has two parts: a nigiri sushi-shaped lid and a rice ball-shaped box. The nigiri sushi needs to be printed with supports.

The STL files can be downloaded directly here or from Printables.

[sushi_box_stl.zip](https://cdn-learn.adafruit.com/assets/assets/000/127/651/original/sushi_box_stl.zip?1707759744)
[Printables Download](https://www.printables.com/model/762601-qualia-s3-sushi-conveyor-belt)
The nigiri sushi lid needs supports to print properly. You can change the orientation of the piece to stand vertically on its longest side. This results in the fewest amount of supports generated and a nicer layer finish on the top.

![lcds___displays_lidWithSupports.png](https://cdn-learn.adafruit.com/assets/assets/000/127/588/medium640/lcds___displays_lidWithSupports.png?1707504035)

There are two lid models. One is for the 320x820 display and the other is for the 240x960 display.&nbsp;

![lcds___displays_edited_P1440259.jpg](https://cdn-learn.adafruit.com/assets/assets/000/127/640/medium640/lcds___displays_edited_P1440259.jpg?1707756625)

The rice ball box is large enough to house the Qualia S3. There is a slot in the back for a USB cable to plug into the Qualia S3 for power.

![lcds___displays_edited_P1440257.jpg](https://cdn-learn.adafruit.com/assets/assets/000/127/641/medium640/lcds___displays_edited_P1440257.jpg?1707756634)

# Qualia S3 Sushi Conveyor Belt

## Software

![](https://cdn-learn.adafruit.com/assets/assets/000/127/649/medium800thumb/lcds___displays_P1440303.jpg?1707758565)

The Qualia Sushi Conveyor Belt code is available as a pre-compiled .UF2 file for the 3.2" 320x820 display or the 3.7" 240x960 display that you can drag and drop onto your Qualia S3 board.

[3.2" 320x820 UF2](https://github.com/adafruit/Adafruit_Learning_System_Guides/raw/main/Qualia/Qualia_S3_Sushi_Conveyor_Belt/qualia_s3_sushi_conveyor_belt_320x820.uf2)
[3.7" 240x960 UF2](https://github.com/adafruit/Adafruit_Learning_System_Guides/raw/main/Qualia/Qualia_S3_Sushi_Conveyor_Belt/qualia_s3_sushi_conveyor_belt_240x960.uf2)
## Load the UF2
 **Click the link above to download the UF2 file for your display.**

Save it wherever is convenient for you.

![lcds___displays_downloadUF2.png](https://cdn-learn.adafruit.com/assets/assets/000/127/628/medium640/lcds___displays_downloadUF2.png?1707516761)

![](https://cdn-learn.adafruit.com/assets/assets/000/127/582/medium800/lcds___displays_circuitpython_bootloader.jpg?1707493772)

Plug your board into your computer, using a known-good data-sync USB cable, directly, or via an adapter if needed.

Double-click the **reset** button (highlighted in red above), wait about a half a second and then tap reset again.

You will see a new disk drive appear called&nbsp; **TFT\_S3BOOT**.

&nbsp;

Drag the **UF2** file to&nbsp; **TFT\_S3BOOT**.

![lcds___displays_circuitpython_Screenshot_2023-10-03_at_1.54.46_PM.png](https://cdn-learn.adafruit.com/assets/assets/000/127/583/medium640/lcds___displays_circuitpython_Screenshot_2023-10-03_at_1.54.46_PM.png?1707493841)

The code will begin running by scrolling the sushi plates across the screen. The plates are chosen randomly as they appear.

## Advanced Use: PlatformIO
Warning: 

This project was developed using PlatformIO. This makes compiling the code a lot faster than with the Arduino IDE. For instructions on how to setup PlatformIO, [check out this page in the MEMENTO product guide](https://learn.adafruit.com/adafruit-memento-camera-board/usage-with-platformio).

[Using PlatformIO](https://learn.adafruit.com/adafruit-memento-camera-board/usage-with-platformio)
Please note that PlatformIO is for advanced users and is only needed if you want to make a custom build of the project. If you choose to go alone, take this project folder for the sushis:

[Qualia_SushiConveyorBelt.zip](https://cdn-learn.adafruit.com/assets/assets/000/127/581/original/Qualia_SushiConveyorBelt.zip?1707493566)
## How the Code Works
https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Qualia/Qualia_S3_Sushi_Conveyor_Belt/src/main.cpp

The code itself is fairly straightforward. The complication comes from compiling for the different RGB displays. You can choose between the two displays by commenting/uncommenting `#define long_display`. An `#ifdef` is used to import and setup the proper image header file, RGB display initialization and variable values for either the 320x820 or 240x960 display.

In the setup, the initial sushi plate bitmaps are stored in the `BitmapInfo` struct and the background bitmap is drawn to the display. In the loop, the sushi plate bitmaps are scrolled across the display. As the plate farthest to the right goes off screen, a new random plate is chosen and begins to scroll.

## Image Prep

The sushi images were converted to byte arrays using the [image2cpp](https://javl.github.io/image2cpp/) webtool. This lets you upload images in standard formats (in this case **.PNG** files), adjust settings and generate the arrays to include in header files with your code. The sushi plate images are identical for both displays, but the backgrounds differ because of the different resolutions. If you want to convert the images to your own custom byte arrays, they can be accessed in the **.ZIP** folder below.

[sushi_images.zip](https://cdn-learn.adafruit.com/assets/assets/000/127/587/original/sushi_images.zip?1707495933)
# Qualia S3 Sushi Conveyor Belt

## Assembly

![](https://cdn-learn.adafruit.com/assets/assets/000/127/643/medium800/lcds___displays_edited_P1440283.jpg?1707757754)

Plug your display into the 40-pin connector on the Qualia S3 by carefully lifting the black bracket. Place the display ribbon cable into the connector on the Qualia board and gently press the bracket back down to secure the ribbon cable into place.

![lcds___displays_edited_P1440267.jpg](https://cdn-learn.adafruit.com/assets/assets/000/127/644/medium640/lcds___displays_edited_P1440267.jpg?1707757762)

Gently press the display into the lid on the sushi enclosure.

![lcds___displays_edited_P1440284.jpg](https://cdn-learn.adafruit.com/assets/assets/000/127/645/medium640/lcds___displays_edited_P1440284.jpg?1707757770)

Place the Qualia S3 in the box of the sushi enclosure. Plug in a USB cable by running the cable thru the cutout in the box.

![lcds___displays_edited_P1440293.jpg](https://cdn-learn.adafruit.com/assets/assets/000/127/646/medium640/lcds___displays_edited_P1440293.jpg?1707757781)

Now watch the endless plates of sushi scroll all day and night!

![](https://cdn-learn.adafruit.com/assets/assets/000/127/653/medium800thumb/lcds___displays_overhead_2.jpg?1707771856)


## Featured Products

### Adafruit Qualia ESP32-S3 for TTL RGB-666 Displays

[Adafruit Qualia ESP32-S3 for TTL RGB-666 Displays](https://www.adafruit.com/product/5800)
There's a few things everyone loves: ice cream, kittens, and honkin' large TFT screens. We're no strangers to small TFT's - [from our itsy 1.14" color display](https://www.adafruit.com/search?q=1.14+tft) that graces many-a-TFT-Feather to <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/5800)
[Related Guides to the Product](https://learn.adafruit.com/products/5800/guides)
### Rectangle Bar RGB TTL TFT Display - 3.7" 240x960

[Rectangle Bar RGB TTL TFT Display - 3.7" 240x960](https://www.adafruit.com/product/5799)
This is a screen for advanced hackers who like the look of a loooooooong rectangular bar TFT screen with tons of pixels. The 3.7" rectangular&nbsp;display has 240x960 18-bit full-color pixels and is an&nbsp; **IPS** &nbsp;display, so the color looks great up to 80 degrees...

In Stock
[Buy Now](https://www.adafruit.com/product/5799)
[Related Guides to the Product](https://learn.adafruit.com/products/5799/guides)
### Rectangle Bar RGB TTL TFT Display - 3.2" 320x820 with Cap Touch

[Rectangle Bar RGB TTL TFT Display - 3.2" 320x820 with Cap Touch](https://www.adafruit.com/product/5797)
This is a screen for advanced hackers who like the look of a long rectangular&nbsp;TFT screen with tons of pixels. The 3.2"&nbsp;display has 320x820 18-bit full-color pixels and is an&nbsp; **IPS** &nbsp;display, so the color looks great up to 80 degrees off-axis in any...

In Stock
[Buy Now](https://www.adafruit.com/product/5797)
[Related Guides to the Product](https://learn.adafruit.com/products/5797/guides)
### Pink and Purple Woven USB A to USB C Cable - 1 meter long

[Pink and Purple Woven USB A to USB C Cable - 1 meter long](https://www.adafruit.com/product/5153)
This cable is not only super-fashionable, with a woven pink and purple Blinka-like pattern, it's also made for USB C for our modernized breakout boards, Feathers, and more.&nbsp;&nbsp;[If you want something just like it but for Micro B, we...](https://www.adafruit.com/product/4111)

Out of Stock
[Buy Now](https://www.adafruit.com/product/5153)
[Related Guides to the Product](https://learn.adafruit.com/products/5153/guides)

## Related Guides

- [Adafruit Qualia ESP32-S3 for RGB-666 Displays](https://learn.adafruit.com/adafruit-qualia-esp32-s3-for-rgb666-displays.md)
- [Qualia S3 Space Clock](https://learn.adafruit.com/qualia-s3-space-clock.md)
- [Qualia S3 iOS Photo Display with itsaSNAP](https://learn.adafruit.com/qualia-s3-ios-photo-display-with-itsasnap.md)
- [Video Playing 2.1" Round Ornament TFT](https://learn.adafruit.com/2-1-round-ornament-tft.md)
- [Simplifying Qualia CircuitPython Projects](https://learn.adafruit.com/simplifying-qualia-circuitpython-projects.md)
- [Qualia 3D Printed Cases](https://learn.adafruit.com/qualia-3d-printed-cases.md)
- [Qualia S3 Compass](https://learn.adafruit.com/qualia-s3-compass.md)
- [Qualia S3 Fireplace](https://learn.adafruit.com/qualia-s3-fireplace.md)
- [1D Chomper Tabletop Arcade Game](https://learn.adafruit.com/1d-chomper-tabletop-arcade-game.md)
- [CircuitPython Day 2024 Countdown Clock](https://learn.adafruit.com/circuitpython-day-2024-countdown-clock.md)
- [Theme Park Wait Time Display](https://learn.adafruit.com/park-wait-time.md)
- [Adafruit Kegomatic](https://learn.adafruit.com/adafruit-keg-bot.md)
- [Guitar Hero MIDI Controller](https://learn.adafruit.com/guitar-hero-midi-controller.md)
- [CircuitPython Display_Text Library](https://learn.adafruit.com/circuitpython-display-text-library.md)
- [Adafruit INA3221 Breakout](https://learn.adafruit.com/adafruit-ina3221-breakout.md)
