# AfterAI Flaps
![[AfterAI_Flaps_Showing_Make.jpg]]
AfterAI Flaps ([online store](http://shop.afterai.dev)) is a DIY split-flap display. It is extensible, so you can start from a single leader unit first, and connect more followers later.
> [!question]
> Ask in #flaps-questions channel in [AfterAI Discord Channel!](https://discord.gg/DW8mwB8xCx)
>
> [!success] Awards
> Our exhibits of [[AfterAI Flaps]] received the following awards!
> - Make: Editor's Choice Award at [[Maker Faire Bay Area 2024]]
> - Maker of Merit Award at [[Maker Faire Rome 2024]]
## Use Cases
1. [[Yu-Gi-Oh! Life Counter with AfterAI Flaps]]
## How to Assemble AfterAI Flaps
![](http://youtu.be/13bu-LXOGi0)
*The drums of AfterAI Flaps sold at Maker Faire Tokyo 2024 need a bit of instant glue to firmly attach to the shaft of motor.*
> [!note] Rule of Unit ID
> The leftmost unit must have ID 0, the other units must have IDs that increment by one as it goes to right.
## How to Connect Your Device to Leader
AfterAI Flaps Leader offers Wi-Fi connectivity. On start-up, it tries to connect to a local area network. If it succeeds, it joins the LAN. This operation mode is called STA mode. If it fails to connect to a LAN, it fallbacks to AP mode. In this mode, Leader works as a Wi-Fi access point. Also, you can toggle these modes by long-pressing the ESP BOOT button.
```mermaid
stateDiagram-v2
STA: STA Mode
AP: AP Mode
[*] --> STA
STA --> AP: Fallback
STA --> AP: Long-press ESP BOOT
AP --> STA: Long-press ESP BOOT
```
### STA Mode
You can get the current IP address by reading Morse code transmitted as flash of light. A short-press on the ESP BOOT button starts flashing an LED light on the Leader board to communicate the IP address. You can connect to the Leader by accessing the IP address from a device that is connected to the same LAN as the Leader.
![](https://youtu.be/QqlCrIgUWk4)
| Letter | Morse Code |
| ------ | ---------- |
| 0 | `-----` |
| 1 | `.----` |
| 2 | `..---` |
| 3 | `...--` |
| 4 | `....-` |
| 5 | `.....` |
| 6 | `-....` |
| 7 | `--...` |
| 8 | `---..` |
| 9 | `----.` |
| Non-Letter | No Signal Duration in Unit Duration |
| --------------- | ----------------------------------- |
| Between Letters | 3 |
| Between Words | 7 |
### AP Mode
You should be able to find the SSID of the Leader from your device. The SSID is of form `AfterAI_Flaps_XXXXXX`. The IP address of the Leader is `192.168.10.123`.
![[AfterAI_Flaps_AP_SSID_Mac.png]]
## Web Console
The web console consists of five sections.
![[AfterAI Flaps Web Console Sample.png]]
### Clock Mode Instructions
![[AfterAI_Flaps_Clock_Photo_2.png]]
- Connect AfterAI Flaps to your Wi-Fi router so that it can get the current time from the Internet.
- Set values in Wi-Fi Settings and restart the device from Operations.
- Connect to AfterAI Flaps from your computer. The IP address can be obtained by following the instructions in [[#STA Mode]]
- Set Device Mode to clock
## Source Code
The source code is available on GitHub.
### Firmware
- https://github.com/AfterAILab/flaps-esp
- https://github.com/AfterAILab/flaps-avr
### PCB
- https://github.com/AfterAILab/flaps-leader-pcb
- https://github.com/AfterAILab/flaps-follower-pcb
## 3D Models
- https://makerworld.com/en/models/823059?from=search#profileId-766363
# MakerFaire2024 Flyer
![[AfterAI - Maker Faire Bay Area Flyer 2024.pdf]]