Submit Search
Upload
IoT Raspberry_pi sensor application plan for agriculture
•
3 likes
•
523 views
Kaz Furukawa
Follow
LED点灯、温度センサー、モーター制御を動かす
Read less
Read more
Technology
Report
Share
Report
Share
1 of 17
Recommended
ハードウエアの会社ですがクラウドサービスを開発してみた
ハードウエアの会社ですがクラウドサービスを開発してみた
Naotaka Saito
おうちハックとライフログを表示するダッシュボードを作っている話
おうちハックとライフログを表示するダッシュボードを作っている話
Shigeyuki Takeuchi
precise agriculture using internet of things
precise agriculture using internet of things
vinod sukhadeve
Precision Agriculture with Sensors and Technologies from IoT - INForum 2016
Precision Agriculture with Sensors and Technologies from IoT - INForum 2016
José Camacho
SMART FARMING USING IOT
SMART FARMING USING IOT
IAEME Publication
Internet of Things based approach to Agriculture Monitoring
Internet of Things based approach to Agriculture Monitoring
Ciby Punnamparambil
Smart city and agriculture
Smart city and agriculture
SenZations Summer School
Will SCADA Systems Survive? The Future of Distributed Management Systems
Will SCADA Systems Survive? The Future of Distributed Management Systems
Tibbo
Recommended
ハードウエアの会社ですがクラウドサービスを開発してみた
ハードウエアの会社ですがクラウドサービスを開発してみた
Naotaka Saito
おうちハックとライフログを表示するダッシュボードを作っている話
おうちハックとライフログを表示するダッシュボードを作っている話
Shigeyuki Takeuchi
precise agriculture using internet of things
precise agriculture using internet of things
vinod sukhadeve
Precision Agriculture with Sensors and Technologies from IoT - INForum 2016
Precision Agriculture with Sensors and Technologies from IoT - INForum 2016
José Camacho
SMART FARMING USING IOT
SMART FARMING USING IOT
IAEME Publication
Internet of Things based approach to Agriculture Monitoring
Internet of Things based approach to Agriculture Monitoring
Ciby Punnamparambil
Smart city and agriculture
Smart city and agriculture
SenZations Summer School
Will SCADA Systems Survive? The Future of Distributed Management Systems
Will SCADA Systems Survive? The Future of Distributed Management Systems
Tibbo
Internet of things for agriculture
Internet of things for agriculture
KG2
Agri-IoT: A Semantic Framework for Internet of Things-enabled Smart Farming A...
Agri-IoT: A Semantic Framework for Internet of Things-enabled Smart Farming A...
Andreas Kamilaris
IoT in Agriculture
IoT in Agriculture
Tibbo
IOT based smart security and monitoring devices for agriculture
IOT based smart security and monitoring devices for agriculture
sneha daise paulson
Connected Agricultural services and internet of things..
Connected Agricultural services and internet of things..
Atul Khiste
IoT for Agriculture - Drones / UAV
IoT for Agriculture - Drones / UAV
Start and Growth
Use Of I.T. In Agriculture
Use Of I.T. In Agriculture
PARTH THAKAR
WWCT ラズパイ Bluemix 講習資料
WWCT ラズパイ Bluemix 講習資料
Masaya Fujita
Raspberry Pi and WebIOPi
Raspberry Pi and WebIOPi
hiro345
Blueberrypi
Blueberrypi
Net Kanayan
SIerによるSIerのためのRaspberry Pi 入門4 (タイムラプス、Lチカ)
SIerによるSIerのためのRaspberry Pi 入門4 (タイムラプス、Lチカ)
catmoney
ラズパイ × Bluemix IoTハンズオンセミナー
ラズパイ × Bluemix IoTハンズオンセミナー
softlayerjp
ラズパイでネット対応 学習リモコンをつくろう!
ラズパイでネット対応 学習リモコンをつくろう!
Masayuki KaToH
iot.ymyzk.com の紹介
iot.ymyzk.com の紹介
Yusuke Miyazaki
Raspberry pi + piface=home electronics-security
Raspberry pi + piface=home electronics-security
Yamauchi isamu
自宅サーバーを立てる話
自宅サーバーを立てる話
naba0123
Raspberry Pi しかないときのIoTハンズオンチュートリアル
Raspberry Pi しかないときのIoTハンズオンチュートリアル
Kohei Nishikawa
20171206 d3 health_tech発表資料
20171206 d3 health_tech発表資料
dcubeio
簡便な大型幅広デジタルサイネージシステムとその自動運用システム
簡便な大型幅広デジタルサイネージシステムとその自動運用システム
Takashi Yamanoue
いまさら聞けないRaspberry Pi ~ センサーとクラウド編
いまさら聞けないRaspberry Pi ~ センサーとクラウド編
Kazumi IWANAGA
クラウド時代のネットワーク再入門
クラウド時代のネットワーク再入門
Naoto MATSUMOTO
RaspberryPiでWebサーバーを建てよう
RaspberryPiでWebサーバーを建てよう
Hideo Yasumoto
More Related Content
Viewers also liked
Internet of things for agriculture
Internet of things for agriculture
KG2
Agri-IoT: A Semantic Framework for Internet of Things-enabled Smart Farming A...
Agri-IoT: A Semantic Framework for Internet of Things-enabled Smart Farming A...
Andreas Kamilaris
IoT in Agriculture
IoT in Agriculture
Tibbo
IOT based smart security and monitoring devices for agriculture
IOT based smart security and monitoring devices for agriculture
sneha daise paulson
Connected Agricultural services and internet of things..
Connected Agricultural services and internet of things..
Atul Khiste
IoT for Agriculture - Drones / UAV
IoT for Agriculture - Drones / UAV
Start and Growth
Use Of I.T. In Agriculture
Use Of I.T. In Agriculture
PARTH THAKAR
Viewers also liked
(7)
Internet of things for agriculture
Internet of things for agriculture
Agri-IoT: A Semantic Framework for Internet of Things-enabled Smart Farming A...
Agri-IoT: A Semantic Framework for Internet of Things-enabled Smart Farming A...
IoT in Agriculture
IoT in Agriculture
IOT based smart security and monitoring devices for agriculture
IOT based smart security and monitoring devices for agriculture
Connected Agricultural services and internet of things..
Connected Agricultural services and internet of things..
IoT for Agriculture - Drones / UAV
IoT for Agriculture - Drones / UAV
Use Of I.T. In Agriculture
Use Of I.T. In Agriculture
Similar to IoT Raspberry_pi sensor application plan for agriculture
WWCT ラズパイ Bluemix 講習資料
WWCT ラズパイ Bluemix 講習資料
Masaya Fujita
Raspberry Pi and WebIOPi
Raspberry Pi and WebIOPi
hiro345
Blueberrypi
Blueberrypi
Net Kanayan
SIerによるSIerのためのRaspberry Pi 入門4 (タイムラプス、Lチカ)
SIerによるSIerのためのRaspberry Pi 入門4 (タイムラプス、Lチカ)
catmoney
ラズパイ × Bluemix IoTハンズオンセミナー
ラズパイ × Bluemix IoTハンズオンセミナー
softlayerjp
ラズパイでネット対応 学習リモコンをつくろう!
ラズパイでネット対応 学習リモコンをつくろう!
Masayuki KaToH
iot.ymyzk.com の紹介
iot.ymyzk.com の紹介
Yusuke Miyazaki
Raspberry pi + piface=home electronics-security
Raspberry pi + piface=home electronics-security
Yamauchi isamu
自宅サーバーを立てる話
自宅サーバーを立てる話
naba0123
Raspberry Pi しかないときのIoTハンズオンチュートリアル
Raspberry Pi しかないときのIoTハンズオンチュートリアル
Kohei Nishikawa
20171206 d3 health_tech発表資料
20171206 d3 health_tech発表資料
dcubeio
簡便な大型幅広デジタルサイネージシステムとその自動運用システム
簡便な大型幅広デジタルサイネージシステムとその自動運用システム
Takashi Yamanoue
いまさら聞けないRaspberry Pi ~ センサーとクラウド編
いまさら聞けないRaspberry Pi ~ センサーとクラウド編
Kazumi IWANAGA
クラウド時代のネットワーク再入門
クラウド時代のネットワーク再入門
Naoto MATSUMOTO
RaspberryPiでWebサーバーを建てよう
RaspberryPiでWebサーバーを建てよう
Hideo Yasumoto
Solnik secure enclaveprocessor-pacsec-final-jp
Solnik secure enclaveprocessor-pacsec-final-jp
PacSecJP
みんなのブログ紹介
みんなのブログ紹介
Sanae Taniguchi
ESP8266をはじめよう
ESP8266をはじめよう
Kei Yoshimura
Python, RaspberryPi, Arduinoで作る消費電力モニタリングシステム
Python, RaspberryPi, Arduinoで作る消費電力モニタリングシステム
Junichi Kakisako
2015/05/23 シニア技術者プログラム第3弾 「第二回IoT勉強会&交流会」 15:00~15:20 Arduinoで簡単回路作成実演
2015/05/23 シニア技術者プログラム第3弾 「第二回IoT勉強会&交流会」 15:00~15:20 Arduinoで簡単回路作成実演
aitc_jp
Similar to IoT Raspberry_pi sensor application plan for agriculture
(20)
WWCT ラズパイ Bluemix 講習資料
WWCT ラズパイ Bluemix 講習資料
Raspberry Pi and WebIOPi
Raspberry Pi and WebIOPi
Blueberrypi
Blueberrypi
SIerによるSIerのためのRaspberry Pi 入門4 (タイムラプス、Lチカ)
SIerによるSIerのためのRaspberry Pi 入門4 (タイムラプス、Lチカ)
ラズパイ × Bluemix IoTハンズオンセミナー
ラズパイ × Bluemix IoTハンズオンセミナー
ラズパイでネット対応 学習リモコンをつくろう!
ラズパイでネット対応 学習リモコンをつくろう!
iot.ymyzk.com の紹介
iot.ymyzk.com の紹介
Raspberry pi + piface=home electronics-security
Raspberry pi + piface=home electronics-security
自宅サーバーを立てる話
自宅サーバーを立てる話
Raspberry Pi しかないときのIoTハンズオンチュートリアル
Raspberry Pi しかないときのIoTハンズオンチュートリアル
20171206 d3 health_tech発表資料
20171206 d3 health_tech発表資料
簡便な大型幅広デジタルサイネージシステムとその自動運用システム
簡便な大型幅広デジタルサイネージシステムとその自動運用システム
いまさら聞けないRaspberry Pi ~ センサーとクラウド編
いまさら聞けないRaspberry Pi ~ センサーとクラウド編
クラウド時代のネットワーク再入門
クラウド時代のネットワーク再入門
RaspberryPiでWebサーバーを建てよう
RaspberryPiでWebサーバーを建てよう
Solnik secure enclaveprocessor-pacsec-final-jp
Solnik secure enclaveprocessor-pacsec-final-jp
みんなのブログ紹介
みんなのブログ紹介
ESP8266をはじめよう
ESP8266をはじめよう
Python, RaspberryPi, Arduinoで作る消費電力モニタリングシステム
Python, RaspberryPi, Arduinoで作る消費電力モニタリングシステム
2015/05/23 シニア技術者プログラム第3弾 「第二回IoT勉強会&交流会」 15:00~15:20 Arduinoで簡単回路作成実演
2015/05/23 シニア技術者プログラム第3弾 「第二回IoT勉強会&交流会」 15:00~15:20 Arduinoで簡単回路作成実演
More from Kaz Furukawa
Civic techforum2019
Civic techforum2019
Kaz Furukawa
Civictech x PBL
Civictech x PBL
Kaz Furukawa
SERVICE DESIGN THINKING LAB. "Peer economy"
SERVICE DESIGN THINKING LAB. "Peer economy"
Kaz Furukawa
非エンジニアのためのIT勉強会 ハイブリッドフレームワーク
非エンジニアのためのIT勉強会 ハイブリッドフレームワーク
Kaz Furukawa
筑西プロジェクト農業×IT
筑西プロジェクト農業×IT
Kaz Furukawa
How to build a STRONG project team.
How to build a STRONG project team.
Kaz Furukawa
全国地方銀行分析
全国地方銀行分析
Kaz Furukawa
Machine Learning, Deep Learning how to use in civic tehnology
Machine Learning, Deep Learning how to use in civic tehnology
Kaz Furukawa
経営情報学会 社会連携PBL研究部会 シビックテックとPBL 2016.2.20
経営情報学会 社会連携PBL研究部会 シビックテックとPBL 2016.2.20
Kaz Furukawa
Code for Kanagawa Civic Hack Night February, 2016
Code for Kanagawa Civic Hack Night February, 2016
Kaz Furukawa
地方創生裏トークLT
地方創生裏トークLT
Kaz Furukawa
20150929 Code for Kanagawa Civic Hack Night
20150929 Code for Kanagawa Civic Hack Night
Kaz Furukawa
農業とIoT
農業とIoT
Kaz Furukawa
オープンデータ自治体サミット Code for Kanagawa活動紹介(LT版)
オープンデータ自治体サミット Code for Kanagawa活動紹介(LT版)
Kaz Furukawa
20150608非エンジニアのためのIT勉強会
20150608非エンジニアのためのIT勉強会
Kaz Furukawa
日本の人口ピラミッド
日本の人口ピラミッド
Kaz Furukawa
Code for Kanagawa Civic Hack Night May 20, 2015
Code for Kanagawa Civic Hack Night May 20, 2015
Kaz Furukawa
社会の便利を支えるit・オープンデータの潮流
社会の便利を支えるit・オープンデータの潮流
Kaz Furukawa
20150328身近な生活に役立てよう ~厚木市情報プラザ ハンズオン手順書
20150328身近な生活に役立てよう ~厚木市情報プラザ ハンズオン手順書
Kaz Furukawa
20150328身近な生活に役立てよう ~地図で体験するオープンデータ~厚木市情報プラザ
20150328身近な生活に役立てよう ~地図で体験するオープンデータ~厚木市情報プラザ
Kaz Furukawa
More from Kaz Furukawa
(20)
Civic techforum2019
Civic techforum2019
Civictech x PBL
Civictech x PBL
SERVICE DESIGN THINKING LAB. "Peer economy"
SERVICE DESIGN THINKING LAB. "Peer economy"
非エンジニアのためのIT勉強会 ハイブリッドフレームワーク
非エンジニアのためのIT勉強会 ハイブリッドフレームワーク
筑西プロジェクト農業×IT
筑西プロジェクト農業×IT
How to build a STRONG project team.
How to build a STRONG project team.
全国地方銀行分析
全国地方銀行分析
Machine Learning, Deep Learning how to use in civic tehnology
Machine Learning, Deep Learning how to use in civic tehnology
経営情報学会 社会連携PBL研究部会 シビックテックとPBL 2016.2.20
経営情報学会 社会連携PBL研究部会 シビックテックとPBL 2016.2.20
Code for Kanagawa Civic Hack Night February, 2016
Code for Kanagawa Civic Hack Night February, 2016
地方創生裏トークLT
地方創生裏トークLT
20150929 Code for Kanagawa Civic Hack Night
20150929 Code for Kanagawa Civic Hack Night
農業とIoT
農業とIoT
オープンデータ自治体サミット Code for Kanagawa活動紹介(LT版)
オープンデータ自治体サミット Code for Kanagawa活動紹介(LT版)
20150608非エンジニアのためのIT勉強会
20150608非エンジニアのためのIT勉強会
日本の人口ピラミッド
日本の人口ピラミッド
Code for Kanagawa Civic Hack Night May 20, 2015
Code for Kanagawa Civic Hack Night May 20, 2015
社会の便利を支えるit・オープンデータの潮流
社会の便利を支えるit・オープンデータの潮流
20150328身近な生活に役立てよう ~厚木市情報プラザ ハンズオン手順書
20150328身近な生活に役立てよう ~厚木市情報プラザ ハンズオン手順書
20150328身近な生活に役立てよう ~地図で体験するオープンデータ~厚木市情報プラザ
20150328身近な生活に役立てよう ~地図で体験するオープンデータ~厚木市情報プラザ
Recently uploaded
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdf
taisei2219
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Yuma Ohgami
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
FumieNakayama
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
Toru Tamaki
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet
Toru Tamaki
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
Hiroki Ichikura
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
sugiuralab
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
akihisamiyanaga1
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
FumieNakayama
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものです
iPride Co., Ltd.
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
UEHARA, Tetsutaro
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey
Toru Tamaki
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
博三 太田
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
Yuki Kikuchi
Recently uploaded
(14)
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdf
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものです
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
IoT Raspberry_pi sensor application plan for agriculture
1.
農業×IT センサーデータの取得と リモートコントロール 非エンジニアのためのIT勉強会 2015年9月7日
2.
コンセプト • 温度・湿度のダッシュボード • 給水アルゴリズムを自分で設定 給水
3.
給水、温度、湿度、肥料管理 収穫 画像、温度、湿度情報 場合によっては現地訪問 地方の休耕農地 コンセプト
4.
目次 1. LED点灯 2. 温度データの計測 3.
サーボモーターを回す
5.
最初に • 今日の構成です アクセスポイント SSID:pi PASS:Raspberry Raspberry pi 温度センサー LED サーボモーター ブレッドボード
6.
固定IP • sshできるよう固定IPを設定する >sudo vi
/etc/network/interfaces auto lo iface lo inet loopback #iface eth0 inet dhcp iface eth0 inet static address 192.168.1.21 netmask 255.255.255.0 gateway 192.168.1.1 allow-hotplug wlan0 #iface wlan0 inet manual iface wlan0 inet static address 192.168.1.20 netmask 255.255.255.0 gateway 192.168.1.1 wpa-ap-scan 1 ※any接続(ステルス設定) wpa-scan-ssid 1 1 ※any接続(ステルス設定) wpa-key-mgmt WPA-PSK wpa-proto WPA2 wpa-pairwise CCMP wpa-group CCMP wpa-ssid "SSIDを記述" wpa-psk "パスフレーズを記述" iface default inet dhcp
7.
繋げてみよう • PCやスマートフォンからSSH接続 Mac OS/Linux >ssh
pi@192.168.1.21 Password: Raspberry 1. アクセスポイントに接続して下さい 2. sshでRasberry piにログインします Windows TeraTermなど ssh pi@192.168.1.21 Password: Raspberry
8.
1.LED点灯 • GPIOと呼ばれるI/Oコントロール端子にLEDを接続します □GND □GPIO
9.
1.LED点灯 • Pythonプログラム led.py import
RPi.GPIO as GPIO from time import sleep GPIO.setmode(GPIO.BCM) GPIO.setup(25, GPIO.OUT) while True: GPIO.output(25, GPIO.HIGH) sleep(1) GPIO.output(25, GPIO.LOW) sleep(1) GPIOの25番を制御します sudo echo 25 > /sys/class/gpio/export pythonでGPIOを制御するライブラリをRasberry piインストールします ※要インターネット接続 >sudo apt-get install python-rpi.gpio
10.
2.温度データの計測 • 温度センサーと抵抗を接続します PIN7 GPIO4PIN6
GND PIN1 +3.3V
11.
12.
2.温度データの計測 pi_piperをインストール > git clone
https://github.com/jwhitehorn/pi_piper > cd pi_piper > sudo gem build pi_piper.gemspec > sudo gem install pi_piper-2.0.beta.11.gem Rubyをインストール > sudo apt-get install rubygems SPIを有効にする sudo vi raspi-conf
13.
2.温度データの計測
14.
2.温度データの計測 Rubyプログラム require 'pi_piper' loop do value=0 PiPiper::Spi.begin
do |spi| raw = spi.write [0b01101000,0] value = ((raw[0]<<8) + raw[1]) & 0x03FF end volt = (value * 3300)/1024 degree=(volt - 500)/10 puts Time.now.strftime("%Y-%m-%d,%H:%M:%S") + "," + degree.to_s sleep(1) end sudo ruby temp.rb 2015-09-07,01:54:08,25 2015-09-07,01:54:09,25 2015-09-07,01:54:10,25 2015-09-07,01:54:11,25 2015-09-07,01:54:12,26
15.
3.サーボモーターを回す wiringPiをインストール git clone git://git.drogon.net/wiringPi またはtar.gzを入手 https://git.drogon.net/?p=wiringPi;a=summary Snapshot https://git.drogon.net/?p=wiringPi;a=snapshot;h=5edd177112c994 16f68ba3e8c6c4db6ed942e796;sf=tgz >tar
zfx wiringPi-5edd177.tar.gz >cd wiringPi-5edd177 >./build Gitをインストール sudo apt-get install git-core
16.
PIN6 GND PIN12 GPIO8
17.
3.サーボモーターを回す #include <stdio.h> #include <wiringPi.h> int
main() { pinMode(18,PWM_OUTPUT); pwmSetMode(PWM_MODE_MS); pwmSetClock(400); pwmSetRange(1024); while(1){ int num; scanf("%i",&num); printf("%d¥n",num); if(num == -1){ break; } pwmWrite(18,num); } return 0; } コンパイル > cc -o servo servo.c -lwiringPi –lpthread 実行 > ./servo