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
ゼロから始めるVue.jsコミュニティ貢献 / first-vuejs-community-contribution-link-and-motivation
lmi
1
130
Cypress or Playwright?
rainerhahnekamp
0
130
ServiceNow Knowledge Learning Rise up
manarobot
0
210
KubeConにproposalを送りたい人へのアドバイス
sat
PRO
3
260
SIEMを用いて、セキュリティログ分析の可視化と分析を実現し、PDCAサイクルを回してみた
coconala_engineer
0
340
AOAI をきっかけに 社内の Azure 管理を見直した話
recruitengineers
PRO
1
340
20分で完全に理解するGrafanaダッシュボード
hamadakoji
3
700
競技としてのKaggle、役に立つKaggle
yu4u
5
2k
FrontDoorとWebAppsを組み合わせた際のリダイレクト処理の注意点
kenichirokimura
1
570
Building a RAG-poweredAI chat appwith Python and VS Code
pamelafox
0
110
R3のコードから見る実践LINQ実装最適化・コンカレントプログラミング実例
neuecc
2
300
長期間TiDBを使ってきた話 @ 私たちはなぜNewSQLを使うのかTiDB選定5社が語る選定理由と活用LT / Experiences with TiDB Over Time
chibiegg
3
920
Featured
See All Featured
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
155
14k
Building Flexible Design Systems
yeseniaperezcruz
319
37k
Navigating Team Friction
lara
178
13k
Fantastic passwords and where to find them - at NoRuKo
philnash
37
2.5k
Art, The Web, and Tiny UX
lynnandtonic
289
19k
Why You Should Never Use an ORM
jnunemaker
PRO
51
8.6k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
125
32k
Reflections from 52 weeks, 52 projects
jeffersonlam
345
19k
Building Better People: How to give real-time feedback that sticks.
wjessup
355
18k
The World Runs on Bad Software
bkeepers
PRO
61
6.7k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
60
14k
What’s in a name? Adding method to the madness
productmarketing
PRO
16
2.6k
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.