SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Downloaden Sie, um offline zu lesen
Raspberry Pi Rover + Scratch 
Imaocach 
Scratchで動作する 
Raspberry Pi Rover
Raspberry Pi Rover
Pi VNC Server 
Scratch 
wifi 
Imaocach system overview 
breadboard 
Battery for Pi 
Battery for motor 
Motor gear 
PC Windows,Linux or Mac 
VNC Client 
Wifi 
Wifi/VNC Prot.
Imaocach Schematic
Screen shot Scratch on Pi
Braodcast pin7low 
Braodcast pin11high
Braodcast pin7low 
Braodcast pin11high
Pi VNC Server 
Scratch 
wifi 
Imoacach system overview 
breadboard 
Battery for Pi 
for Android 
Battery for motor 
Motor gear 
Android 
VNC Viewer 
Wifi/VNC Prot.
部品表 
部品名数量参考価格参考購入先など 
Raspberry PI Type A 
With SD CARD 
1 3350 RSコンポーネンツ 
Wifi USBドングル 
WLI-UC-GNM バッファロー 
1 758 Www.amazon.co.jp 
タミヤ ツインモータギヤー 
ボックス 
1 907 www.amazon.co.jp 
タミヤ トラック&ホイール 
セット 
1 459 Www.amazon.co.jp 
ブレッドボード EIC-301 1 150 
電池ボックス 単三X2 SW 
1 60 
付 
電池ボックス 単三X4  
USBコネクタ付 
1 250 
フォトカプラ TLP621-1 2 40 
トランジスタ 2sc2120 4 10 20個購入時 
抵抗 100Ω 2 1 100個購入時
他社製品とImaocachとの比較 
LEGO Mindstorms EV3
せっかくなので 
もう少しAndroidらしい使い方 
そこで加速度センサーを使って 
AndroidデバイスをImaocachのリ 
モコンにしてみました 
なるべくありもの利用しました。 
書いたコードは28行
Pi Python 
wifi 
breadboard 
Battery for Pi 
System overview 
Battery for motor 
Motor gear 
Android 
sensorUdp 
Wifi/UDP
sensorUDP 
このプログラムは、Androidデバイスの各種センサー 
をCSV形式にてUDPで送信し続けるというものです。
Format 
A,シリアルナンバー、時間、加速度センサーX軸、加速度センサーY軸、加速度センサーZ軸 
となっています。
import RPi.GPIO as GPIO 
import socket 
UDP_IP = "" 
UDP_PORT = 12345 
sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) 
sock.bind((UDP_IP, UDP_PORT)) 
GPIO.setmode(GPIO.BCM) 
GPIO.setup(4, GPIO.OUT) 
GPIO.setup(17,GPIO.OUT) 
GPIO.output(4,False) 
GPIO.output(17,False) 
while True: 
data, addr = sock.recvfrom(1024) 
l = data.split(",") 
print l[3] 
f = float(l[4]) #Y軸 
r = float(l[3]) #X軸 
if f>1: #両方のモータを駆動 
GPIO.output(4,True) 
GPIO.output(17,True) 
if r>1: #右のモータのみ駆動 
GPIO.output(4,False) 
if r<-1: #左のモータのみ駆動 
GPIO.output(17,False) 
if f<-1: #両方のモータを停止 
GPIO.output(4,False) 
GPIO.output(17,False)
まとめと今後の課題 
-Raspberry Pi Rover Imaocach 
-Scratch VNC 
-Android Device & Python 
-Sensor,Camera,Auto drive 
-Game, Education, Contest

Weitere ähnliche Inhalte

Ähnlich wie Raspberry Pi Rover + Scratch = IMAOCACH

Starting qt5beta at_raspberry_pi Qtnagoya#6
Starting qt5beta at_raspberry_pi Qtnagoya#6Starting qt5beta at_raspberry_pi Qtnagoya#6
Starting qt5beta at_raspberry_pi Qtnagoya#6Kazuo Asano (@kazuo_asa)
 
VirtualBox と Rocky Linux 8 で始める Pacemaker ~ VirtualBox でも STONITH 機能が試せる! Vi...
VirtualBox と Rocky Linux 8 で始める Pacemaker  ~ VirtualBox でも STONITH 機能が試せる! Vi...VirtualBox と Rocky Linux 8 で始める Pacemaker  ~ VirtualBox でも STONITH 機能が試せる! Vi...
VirtualBox と Rocky Linux 8 で始める Pacemaker ~ VirtualBox でも STONITH 機能が試せる! Vi...ksk_ha
 
FPGAによるHDMI to LVDS変換器
FPGAによるHDMI to LVDS変換器FPGAによるHDMI to LVDS変換器
FPGAによるHDMI to LVDS変換器I_HaL
 
TV・車・ゲームに搭載されているブラウザってどうなっているの?
TV・車・ゲームに搭載されているブラウザってどうなっているの?TV・車・ゲームに搭載されているブラウザってどうなっているの?
TV・車・ゲームに搭載されているブラウザってどうなっているの?Masashi Umeda
 
2020年10月29日 Jetson Nano 2GBで始めるAI x Robotics教育
2020年10月29日 Jetson Nano 2GBで始めるAI x Robotics教育2020年10月29日 Jetson Nano 2GBで始めるAI x Robotics教育
2020年10月29日 Jetson Nano 2GBで始めるAI x Robotics教育NVIDIA Japan
 
SORACOM Discovery 2019 B2 カメラデバイスを使ったIoTシステム構築の実践
SORACOM Discovery 2019 B2 カメラデバイスを使ったIoTシステム構築の実践SORACOM Discovery 2019 B2 カメラデバイスを使ったIoTシステム構築の実践
SORACOM Discovery 2019 B2 カメラデバイスを使ったIoTシステム構築の実践SORACOM,INC
 
CDP2.0 - cloudpack night #7 -
CDP2.0 - cloudpack night #7 -CDP2.0 - cloudpack night #7 -
CDP2.0 - cloudpack night #7 -SORACOM, INC
 
Veeam v10 最新情報:海外視察レポート in チェコ~30を超える新機能をご紹介~
Veeam v10 最新情報:海外視察レポート in チェコ~30を超える新機能をご紹介~Veeam v10 最新情報:海外視察レポート in チェコ~30を超える新機能をご紹介~
Veeam v10 最新情報:海外視察レポート in チェコ~30を超える新機能をご紹介~株式会社クライム
 
レベルを上げて物理で殴る 16x9
レベルを上げて物理で殴る 16x9レベルを上げて物理で殴る 16x9
レベルを上げて物理で殴る 16x9Knit Tiger
 
6th oct2012 kobeit_webintents
6th oct2012 kobeit_webintents6th oct2012 kobeit_webintents
6th oct2012 kobeit_webintentsKensaku Komatsu
 
Embedded Webで加速するWeb of Things
Embedded Webで加速するWeb of ThingsEmbedded Webで加速するWeb of Things
Embedded Webで加速するWeb of ThingsFutomi Hatano
 
THETA プラグインで WebRTC やってみた
THETA プラグインでWebRTC やってみたTHETA プラグインでWebRTC やってみた
THETA プラグインで WebRTC やってみたHideki Shiro
 
ACRiウェビナー_GIGABYTE様ご講演資料
ACRiウェビナー_GIGABYTE様ご講演資料ACRiウェビナー_GIGABYTE様ご講演資料
ACRiウェビナー_GIGABYTE様ご講演資料直久 住川
 
ぼちぼちぼっち開発 With raspberry pi アイデアソン 20141019
ぼちぼちぼっち開発 With raspberry pi アイデアソン 20141019ぼちぼちぼっち開発 With raspberry pi アイデアソン 20141019
ぼちぼちぼっち開発 With raspberry pi アイデアソン 20141019catmoney
 
MozOpenHardプロジェクトと そのコア技術について
MozOpenHardプロジェクトと そのコア技術についてMozOpenHardプロジェクトと そのコア技術について
MozOpenHardプロジェクトと そのコア技術について Takagi Koichi
 
Internet Week 2018 知っておくべきIPv6とセキュリティの話
Internet Week 2018 知っておくべきIPv6とセキュリティの話Internet Week 2018 知っておくべきIPv6とセキュリティの話
Internet Week 2018 知っておくべきIPv6とセキュリティの話Akira Nakagawa
 
Raspberry piで動かすロボットアーム
Raspberry piで動かすロボットアームRaspberry piで動かすロボットアーム
Raspberry piで動かすロボットアームMasuda Tomoaki
 
Fuji sakuraボード 2013/11/23
Fuji sakuraボード 2013/11/23Fuji sakuraボード 2013/11/23
Fuji sakuraボード 2013/11/23Takashi Kojo
 
そろそろビジネスに貢献するSDNを考えませんか?~キーワードは“オープン”~
そろそろビジネスに貢献するSDNを考えませんか?~キーワードは“オープン”~そろそろビジネスに貢献するSDNを考えませんか?~キーワードは“オープン”~
そろそろビジネスに貢献するSDNを考えませんか?~キーワードは“オープン”~Brocade
 

Ähnlich wie Raspberry Pi Rover + Scratch = IMAOCACH (20)

Starting qt5beta at_raspberry_pi Qtnagoya#6
Starting qt5beta at_raspberry_pi Qtnagoya#6Starting qt5beta at_raspberry_pi Qtnagoya#6
Starting qt5beta at_raspberry_pi Qtnagoya#6
 
VirtualBox と Rocky Linux 8 で始める Pacemaker ~ VirtualBox でも STONITH 機能が試せる! Vi...
VirtualBox と Rocky Linux 8 で始める Pacemaker  ~ VirtualBox でも STONITH 機能が試せる! Vi...VirtualBox と Rocky Linux 8 で始める Pacemaker  ~ VirtualBox でも STONITH 機能が試せる! Vi...
VirtualBox と Rocky Linux 8 で始める Pacemaker ~ VirtualBox でも STONITH 機能が試せる! Vi...
 
FPGAによるHDMI to LVDS変換器
FPGAによるHDMI to LVDS変換器FPGAによるHDMI to LVDS変換器
FPGAによるHDMI to LVDS変換器
 
TV・車・ゲームに搭載されているブラウザってどうなっているの?
TV・車・ゲームに搭載されているブラウザってどうなっているの?TV・車・ゲームに搭載されているブラウザってどうなっているの?
TV・車・ゲームに搭載されているブラウザってどうなっているの?
 
2020年10月29日 Jetson Nano 2GBで始めるAI x Robotics教育
2020年10月29日 Jetson Nano 2GBで始めるAI x Robotics教育2020年10月29日 Jetson Nano 2GBで始めるAI x Robotics教育
2020年10月29日 Jetson Nano 2GBで始めるAI x Robotics教育
 
SORACOM Discovery 2019 B2 カメラデバイスを使ったIoTシステム構築の実践
SORACOM Discovery 2019 B2 カメラデバイスを使ったIoTシステム構築の実践SORACOM Discovery 2019 B2 カメラデバイスを使ったIoTシステム構築の実践
SORACOM Discovery 2019 B2 カメラデバイスを使ったIoTシステム構築の実践
 
CDP2.0 - cloudpack night #7 -
CDP2.0 - cloudpack night #7 -CDP2.0 - cloudpack night #7 -
CDP2.0 - cloudpack night #7 -
 
Veeam v10 最新情報:海外視察レポート in チェコ~30を超える新機能をご紹介~
Veeam v10 最新情報:海外視察レポート in チェコ~30を超える新機能をご紹介~Veeam v10 最新情報:海外視察レポート in チェコ~30を超える新機能をご紹介~
Veeam v10 最新情報:海外視察レポート in チェコ~30を超える新機能をご紹介~
 
レベルを上げて物理で殴る 16x9
レベルを上げて物理で殴る 16x9レベルを上げて物理で殴る 16x9
レベルを上げて物理で殴る 16x9
 
6th oct2012 kobeit_webintents
6th oct2012 kobeit_webintents6th oct2012 kobeit_webintents
6th oct2012 kobeit_webintents
 
Embedded Webで加速するWeb of Things
Embedded Webで加速するWeb of ThingsEmbedded Webで加速するWeb of Things
Embedded Webで加速するWeb of Things
 
THETA プラグインで WebRTC やってみた
THETA プラグインでWebRTC やってみたTHETA プラグインでWebRTC やってみた
THETA プラグインで WebRTC やってみた
 
ACRiウェビナー_GIGABYTE様ご講演資料
ACRiウェビナー_GIGABYTE様ご講演資料ACRiウェビナー_GIGABYTE様ご講演資料
ACRiウェビナー_GIGABYTE様ご講演資料
 
ぼちぼちぼっち開発 With raspberry pi アイデアソン 20141019
ぼちぼちぼっち開発 With raspberry pi アイデアソン 20141019ぼちぼちぼっち開発 With raspberry pi アイデアソン 20141019
ぼちぼちぼっち開発 With raspberry pi アイデアソン 20141019
 
2015圧縮ゼミ
2015圧縮ゼミ2015圧縮ゼミ
2015圧縮ゼミ
 
MozOpenHardプロジェクトと そのコア技術について
MozOpenHardプロジェクトと そのコア技術についてMozOpenHardプロジェクトと そのコア技術について
MozOpenHardプロジェクトと そのコア技術について
 
Internet Week 2018 知っておくべきIPv6とセキュリティの話
Internet Week 2018 知っておくべきIPv6とセキュリティの話Internet Week 2018 知っておくべきIPv6とセキュリティの話
Internet Week 2018 知っておくべきIPv6とセキュリティの話
 
Raspberry piで動かすロボットアーム
Raspberry piで動かすロボットアームRaspberry piで動かすロボットアーム
Raspberry piで動かすロボットアーム
 
Fuji sakuraボード 2013/11/23
Fuji sakuraボード 2013/11/23Fuji sakuraボード 2013/11/23
Fuji sakuraボード 2013/11/23
 
そろそろビジネスに貢献するSDNを考えませんか?~キーワードは“オープン”~
そろそろビジネスに貢献するSDNを考えませんか?~キーワードは“オープン”~そろそろビジネスに貢献するSDNを考えませんか?~キーワードは“オープン”~
そろそろビジネスに貢献するSDNを考えませんか?~キーワードは“オープン”~
 

Mehr von Imaoka Micihihiro

Parallel Empire and The Serial Empire
Parallel Empire and The Serial EmpireParallel Empire and The Serial Empire
Parallel Empire and The Serial EmpireImaoka Micihihiro
 
パラレル帝国とシリアル皇国(the Parallel Empire and the Serial Empire.)
パラレル帝国とシリアル皇国(the Parallel Empire and the Serial Empire.)パラレル帝国とシリアル皇国(the Parallel Empire and the Serial Empire.)
パラレル帝国とシリアル皇国(the Parallel Empire and the Serial Empire.)Imaoka Micihihiro
 
la notificacion de la temperature remote
la notificacion de la temperature remotela notificacion de la temperature remote
la notificacion de la temperature remoteImaoka Micihihiro
 
遠隔地の温度をスマホで表示
遠隔地の温度をスマホで表示遠隔地の温度をスマホで表示
遠隔地の温度をスマホで表示Imaoka Micihihiro
 
Observation of the temperature of remote
Observation of the temperature of remoteObservation of the temperature of remote
Observation of the temperature of remoteImaoka Micihihiro
 
Cómo controlar el LED remoto
Cómo controlar el LED remotoCómo controlar el LED remoto
Cómo controlar el LED remotoImaoka Micihihiro
 
超お手軽!スマホでLEDを遠隔操作
超お手軽!スマホでLEDを遠隔操作超お手軽!スマホでLEDを遠隔操作
超お手軽!スマホでLEDを遠隔操作Imaoka Micihihiro
 
How to control remote LED at the easiest and cheapest with Azure
How to control remote LED at the easiest and cheapest with AzureHow to control remote LED at the easiest and cheapest with Azure
How to control remote LED at the easiest and cheapest with AzureImaoka Micihihiro
 
Lチカからはじめるfpga入門
Lチカからはじめるfpga入門Lチカからはじめるfpga入門
Lチカからはじめるfpga入門Imaoka Micihihiro
 
Attempt of implementation of neural network model on FPGA
Attempt of implementation of neural network model on FPGAAttempt of implementation of neural network model on FPGA
Attempt of implementation of neural network model on FPGAImaoka Micihihiro
 
NN系学習済みモデルをFPGAに実装してみた
NN系学習済みモデルをFPGAに実装してみたNN系学習済みモデルをFPGAに実装してみた
NN系学習済みモデルをFPGAに実装してみたImaoka Micihihiro
 
第9回セキュリティみかんlt
第9回セキュリティみかんlt第9回セキュリティみかんlt
第9回セキュリティみかんltImaoka Micihihiro
 
1st fpga startup seminar keynote
1st fpga startup seminar keynote1st fpga startup seminar keynote
1st fpga startup seminar keynoteImaoka Micihihiro
 
BigうんちDATA インタラクティブトイレの考察と実践
BigうんちDATA インタラクティブトイレの考察と実践BigうんちDATA インタラクティブトイレの考察と実践
BigうんちDATA インタラクティブトイレの考察と実践Imaoka Micihihiro
 
How to make a cutting wiring board by desktop CNC
How to make a cutting wiring board by desktop CNCHow to make a cutting wiring board by desktop CNC
How to make a cutting wiring board by desktop CNCImaoka Micihihiro
 

Mehr von Imaoka Micihihiro (20)

Parallel Empire and The Serial Empire
Parallel Empire and The Serial EmpireParallel Empire and The Serial Empire
Parallel Empire and The Serial Empire
 
パラレル帝国とシリアル皇国(the Parallel Empire and the Serial Empire.)
パラレル帝国とシリアル皇国(the Parallel Empire and the Serial Empire.)パラレル帝国とシリアル皇国(the Parallel Empire and the Serial Empire.)
パラレル帝国とシリアル皇国(the Parallel Empire and the Serial Empire.)
 
Cybozu lt2017
Cybozu lt2017Cybozu lt2017
Cybozu lt2017
 
la notificacion de la temperature remote
la notificacion de la temperature remotela notificacion de la temperature remote
la notificacion de la temperature remote
 
遠隔地の温度をスマホで表示
遠隔地の温度をスマホで表示遠隔地の温度をスマホで表示
遠隔地の温度をスマホで表示
 
Observation of the temperature of remote
Observation of the temperature of remoteObservation of the temperature of remote
Observation of the temperature of remote
 
Cómo controlar el LED remoto
Cómo controlar el LED remotoCómo controlar el LED remoto
Cómo controlar el LED remoto
 
超お手軽!スマホでLEDを遠隔操作
超お手軽!スマホでLEDを遠隔操作超お手軽!スマホでLEDを遠隔操作
超お手軽!スマホでLEDを遠隔操作
 
How to control remote LED at the easiest and cheapest with Azure
How to control remote LED at the easiest and cheapest with AzureHow to control remote LED at the easiest and cheapest with Azure
How to control remote LED at the easiest and cheapest with Azure
 
Security camp cpu
Security camp cpuSecurity camp cpu
Security camp cpu
 
Lチカからはじめるfpga入門
Lチカからはじめるfpga入門Lチカからはじめるfpga入門
Lチカからはじめるfpga入門
 
Attempt of implementation of neural network model on FPGA
Attempt of implementation of neural network model on FPGAAttempt of implementation of neural network model on FPGA
Attempt of implementation of neural network model on FPGA
 
NN系学習済みモデルをFPGAに実装してみた
NN系学習済みモデルをFPGAに実装してみたNN系学習済みモデルをFPGAに実装してみた
NN系学習済みモデルをFPGAに実装してみた
 
第9回セキュリティみかんlt
第9回セキュリティみかんlt第9回セキュリティみかんlt
第9回セキュリティみかんlt
 
1st fpga startup seminar keynote
1st fpga startup seminar keynote1st fpga startup seminar keynote
1st fpga startup seminar keynote
 
BigうんちDATA インタラクティブトイレの考察と実践
BigうんちDATA インタラクティブトイレの考察と実践BigうんちDATA インタラクティブトイレの考察と実践
BigうんちDATA インタラクティブトイレの考察と実践
 
How to make a cutting wiring board by desktop CNC
How to make a cutting wiring board by desktop CNCHow to make a cutting wiring board by desktop CNC
How to make a cutting wiring board by desktop CNC
 
Introduction of FPGA
Introduction of FPGAIntroduction of FPGA
Introduction of FPGA
 
Gatito
GatitoGatito
Gatito
 
Sakura20141017a
Sakura20141017aSakura20141017a
Sakura20141017a
 

Raspberry Pi Rover + Scratch = IMAOCACH