Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Tohoku.Tech #1 「Cursorを使ったRaspberry Piの開発」by ねこまた
Search
Jun Chiba
March 18, 2024
Technology
0
330
Tohoku.Tech #1 「Cursorを使ったRaspberry Piの開発」by ねこまた
Jun Chiba
March 18, 2024
Tweet
Share
More Decks by Jun Chiba
See All by Jun Chiba
Tohoku.Tech #1 「EC-CUBE/AWSの構築をChatGPTに相談してみました」by テンダ
jun2882
0
150
Other Decks in Technology
See All in Technology
AOAI をきっかけに 社内の Azure 管理を見直した話
recruitengineers
PRO
1
320
Grafana x PagerDuty Better Together
jacopen
0
110
複雑な構成要素を持つUIとの向き合い方 〜新・支出グラフでの実例〜 / B43 TECH TALK
nakamuuu
0
140
障害対応をちょっとずつよくしていくための 演習の作りかた
heleeen
0
280
AWSに詳しくない人でも始められるコスト最適化ガイド
yuhta28
1
250
【NW X Security JAWS#3】L3-4:AWS環境のIPv6移行に向けて知っておきたいこと
shotashiratori
0
420
Kernel MemoryでAzure OpenAI Serviceとお手軽データソース連携
mitsuzono
1
260
ルーターでプレゼンする
puhitaku
0
450
web-application-security
matsuihidetoshi
0
170
20240418_Google ColabにLLMが搭載されたようなのでPython x データ分析の勉強方法を考えてみる
doradora09
0
140
推しは推せるときに推せ! プロダクトにフィードバックしていこう
nakasho
0
350
JSON攻略法.pdf
miyakemito
8
5.1k
Featured
See All Featured
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
17
1.4k
GraphQLとの向き合い方2022年版
quramy
32
12k
Product Roadmaps are Hard
iamctodd
44
9.7k
Six Lessons from altMBA
skipperchong
21
3k
Design by the Numbers
sachag
274
18k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
2
1.3k
Happy Clients
brianwarren
92
6.4k
Web Components: a chance to create the future
zenorocha
305
41k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
20
1.9k
Become a Pro
speakerdeck
PRO
11
4.5k
Fireside Chat
paigeccino
21
2.6k
The Cult of Friendly URLs
andyhume
74
5.7k
Transcript
Cursorを使ったRaspberry Piの開発 2024.3.14 © necomata Inc. All Rights Reserved.
ねこまたについて Webシステム 開発 モバイルアプリ開発 PoC開発 Network Computing with Machines and
Tablets (as well as smartphones) © necomata Inc. All Rights Reserved.
ねこまたについて(モバイル開発) モバイルで投票できるアプリ。 オンラインで投票できるだけ でなく、券売機とBLE通信し、 投票券を発⾏することもでき ます。 券売機のBLEプログラムも開 発しました。 © necomata
Inc. All Rights Reserved.
ねこまたについて(PoC開発) 複数のステッピングモーターを制御して 遠隔から医療機器を操作する実証実験。 © necomata Inc. All Rights Reserved.
ねこまたのコンセプト © necomata Inc. All Rights Reserved.
CursorでGPTを使ってみる Cursorを使ってRaspberry Piのプログラムを作ってみる © necomata Inc. All Rights Reserved.
https://cursor.sh/ Cursorについて © necomata Inc. All Rights Reserved.
Cursorの費用 GPT4を利⽤したい場合は有償となる © necomata Inc. All Rights Reserved.
CursorでSSH Raspberry PiのIPを指定してSSH接続がおすすめ © necomata Inc. All Rights Reserved.
CursorとGPT GPTを利⽤する エリア © necomata Inc. All Rights Reserved.
CursorでGPTを使ってみる お題 Raspberry PiにLEDとタクトスイッチを繋いで スイッチを押したら光らせる © necomata Inc. All Rights
Reserved.
CursorでGPTプログラムを作らせる ざくっとやりたいことを伝えてみる © necomata Inc. All Rights Reserved.
CursorでGPTプログラムを作らせる 必要なライブラリの インストールを 指定してくることもある © necomata Inc. All Rights Reserved.
CursorでGPTプログラムを作らせる こんな感じでプログラムを 作ってくれる 内容の説明もしてくれる © necomata Inc. All Rights Reserved.
CursorでGPTプログラムを作らせる ターミナルがあるので 追加ライブラリを コピペでインストールできる © necomata Inc. All Rights Reserved.
CursorでGPTプログラムを作らせる 作ってくれたソースコードを⾒てみると、、、いまいち。。。 © necomata Inc. All Rights Reserved.
CursorでGPTプログラムを作らせる もう少し細かくやりたいことを伝えてみる © necomata Inc. All Rights Reserved.
CursorでGPTプログラムを作らせる 違うソースコードを 作ってくれた © necomata Inc. All Rights Reserved.
CursorでGPTプログラムを作らせる 今回はプルアップを 使⽤しているので良い感じ © necomata Inc. All Rights Reserved.
CursorでGPTプログラムを作らせる © necomata Inc. All Rights Reserved.
Cursorに質問してみる ソースコードで 何をしているか わからない ステップがあった とすると、、、 © necomata Inc. All
Rights Reserved.
Cursorの回答について 表⽰している ソースコードを 前提として質問できる。 ソースコード内で Raspberry Piの 使⽤するGPIOの 指定の仕⽅であることを 説明してくれた
© necomata Inc. All Rights Reserved.
ピンの並び順で 指定するのが BOARD GPIOの番号で 指定するのが BCM 今回はGPIO18(12番pin) とGPIO23(16番pin) を使っています。 Cursorが作ったプログラムを動かす準備
© necomata Inc. All Rights Reserved.
1 12 16 GND Cursorが作ったプログラムを動かしてみる データシートを 確認しながら ソースコードに あわせて配線する ©
necomata Inc. All Rights Reserved.
Cursorが作ったプログラムを動かしてみる © necomata Inc. All Rights Reserved.
Cursorに他の質問してみる GPTが作成したソースコード で使⽤しているライブラリに ついて質問してみると ライブラリでできることを 回答してくれた © necomata Inc. All
Rights Reserved.
Cursorに他の質問してみる その他に何ができるのか 知りたかったので、 どんなライブラリがあるか 聞いてみた 主なライブラリと内容を 回答してくれた © necomata Inc.
All Rights Reserved.
Cursorにテストケースを作らせてみる ホワイトボックス、単体テストなどはいけそう。 観点を定義する必要があるテストケースは難しい。 © necomata Inc. All Rights Reserved.
これからのプログラマは AIがあればプログラマはいらなくなるのでは?? © necomata Inc. All Rights Reserved.
プログラマは失業するのか? ⾃動⾞の⽣産をモデルに考えてみる 職⼈が⼿作業で作っていたものが、 どんどん効率化、⾃動化されてきたけれど、、、 © necomata Inc. All Rights Reserved.
プログラマは失業するのか? テストや調整など最終的な作業は⼈の⼿で⾏っている © necomata Inc. All Rights Reserved.
・積極的にGPTを利⽤する。 →指⽰の出し⽅によっては適切なプログラムや回答を得られないので注意!! 適切な結果を得るためには利⽤する側に知識が必要。 異常系の挙動はGPTのソースコードは考慮されていないのでプログラマが考える必要がある。 ・GPTが出⼒したプログラムを理解する →わからない処理はGPTに質問する。 使⽤しているライブラリについて、他にどのような機能があるのかを質問するのも良い。 念の為、公式リファレンスも確認することを推奨します。 ・出⼒されたプログラムに対し、しっかりとしたテストを⾏う!! →GPTを過信せず、プログラマが作成したプログラムと同様にテストを⾏う必要がある。
ϦϦʔε͢ΔϓϩάϥϜΛ୲อ͢ΔͷϓϩάϥϚͰ͋Δ͜ͱΛΕ͍͚ͯͳ͍ʂʂ ねこまた齋藤が考えるAIとの向き合い方 © necomata Inc. All Rights Reserved.
© necomata Inc. All Rights Reserved.