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
770
Tohoku.Tech #1 「Cursorを使ったRaspberry Piの開発」by ねこまた
Jun Chiba
March 18, 2024
Tweet
Share
More Decks by Jun Chiba
See All by Jun Chiba
DevIO2024_レガシー運用からの脱却 -クラウド活用の実践事例とベストプラクティス-
jun2882
0
460
Tohoku.Tech #1 「EC-CUBE/AWSの構築をChatGPTに相談してみました」by テンダ
jun2882
0
360
Other Decks in Technology
See All in Technology
[TechNight #86] Oracle GoldenGate - 23ai 最新情報&プロジェクトからの学び
oracle4engineer
PRO
1
190
一人から始めたSREチーム3年の歩み - 求められるスキルの変化とチームのあり方 - / The three-year journey of the SRE team, which started all by myself
vtryo
7
5.8k
カスタムインストラクションでGitHub Copilotをカスタマイズ!
07jp27
8
1.1k
消し忘れリソースゼロへ!私のResource Explorer活用法
cuorain
0
140
CNAPPから考えるAWSガバナンスの実践と最適化
nrinetcom
PRO
1
330
ソフトウェアアーキテクトのための意思決定術: Software Architecture and Decision-Making
snoozer05
PRO
17
4.1k
Tokyo RubyKaigi 12 - Scaling Ruby at GitHub
jhawthorn
2
220
Active Directory の保護
eurekaberry
3
1.8k
HCP TerraformとAzure:イオンスマートテクノロジーのインフラ革新 / HCP Terraform and Azure AEON Smart Technology's Infrastructure Innovation
aeonpeople
3
1k
GitLab SelfManagedをCodePipelineのソースに設定する/SetGitLabSelfManagedtoCodePipeline
norihiroishiyama
1
120
さいきょうのアーキテクチャを生み出すセンスメイキング
jgeem
0
290
Autify Company Deck
autifyhq
2
41k
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
182
22k
Rails Girls Zürich Keynote
gr2m
94
13k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.2k
How to train your dragon (web standard)
notwaldorf
89
5.8k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7.1k
Building Better People: How to give real-time feedback that sticks.
wjessup
366
19k
Code Reviewing Like a Champion
maltzj
521
39k
Designing Experiences People Love
moore
139
23k
Six Lessons from altMBA
skipperchong
27
3.6k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Why You Should Never Use an ORM
jnunemaker
PRO
55
9.2k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
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.