動作のしくみ
自己紹介生成のしくみ
- Wi-Fi接続と時刻同期を行う
- SDカードから読み込んだ自分の趣味などの文章を元にChatGPTリクエストを作成 生成するリクエスト - 普通テンションの自己紹介を作って! - ハイテンションな自己紹介を作って!
- ChatGPTのAPIへリクエストを投げて生成された自己紹介文を取得
- 取得した自己紹介文を文単位で分割
- DeepL翻訳のAPIを使って文単位で日本語に翻訳
- 3秒ごとに文を切替て画面に表示する
ポップアップ名刺アピールのしくみ
- [MyCard]ボタンを押すとモーターを回転させ、ウォームギアで名刺の土台を持ち上げる
- 名刺がポップアップされた後にフレキシブルLEDを点灯する
制御用マイコン
- M5Stack Core 2 (タッチパネルディスプレイ搭載、バッテリー内蔵というピッタリ仕様であったので選定)
その他の仕様
- モーターとLED用の単4電池2本
- サイズ:幅137㎜×高さ92㎜
~English~
Mechanism of self-introduction generation
- Wi-Fi connection and time synchronization
- Create a ChatGPT request based on your hobbies and other texts read from the SD card request to generate
- Make a self-introduction with normal tension!
- Make a high-tension self-introduction!
- Get the self-introduction text generated by sending a request to the ChatGPT API
- Divide the acquired self-introduction sentences into sentence units
- Sentence-by-sentence Japanese translation using DeepL translation API
- Switch sentences every 3 seconds and display them on the screen
How pop-up business card appeal works
- Press the [MyCard] button to rotate the motor and lift the base of the business card with the worm gear
- Light up flexible LED after business card is popped up
control microcomputer
- M5 stack core 2 (Selected because it was a perfect specification with a touch panel display and a built-in battery)
Other specifications *2 AAA batteries for motor and LED
- Size: width 137mm x height 92mm