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
800
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
470
Tohoku.Tech #1 「EC-CUBE/AWSの構築をChatGPTに相談してみました」by テンダ
jun2882
0
370
Other Decks in Technology
See All in Technology
クラウドサービス事業者におけるOSS
tagomoris
1
690
開発組織のための セキュアコーディング研修の始め方
flatt_security
3
2.3k
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
6
57k
個人開発から公式機能へ: PlaywrightとRailsをつなげた3年の軌跡
yusukeiwaki
11
3k
株式会社EventHub・エンジニア採用資料
eventhub
0
4.3k
MC906491 を見据えた Microsoft Entra Connect アップグレード対応
tamaiyutaro
1
540
TAMとre:Capセキュリティ編 〜拡張脅威検出デモを添えて〜
fujiihda
2
240
Data-centric AI入門第6章:Data-centric AIの実践例
x_ttyszk
1
400
分解して理解する Aspire
nenonaninu
1
110
バックエンドエンジニアのためのフロントエンド入門 #devsumiC
panda_program
18
7.5k
データ資産をシームレスに伝達するためのイベント駆動型アーキテクチャ
kakehashi
PRO
2
530
CZII - CryoET Object Identification 参加振り返り・解法共有
tattaka
0
360
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.7k
Product Roadmaps are Hard
iamctodd
PRO
50
11k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
174
51k
Measuring & Analyzing Core Web Vitals
bluesmoon
6
240
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
40
2k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
27
1.9k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.8k
Unsuck your backbone
ammeep
669
57k
Building Your Own Lightsaber
phodgson
104
6.2k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
How to Think Like a Performance Engineer
csswizardry
22
1.3k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
4
330
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.