AWS ロボを作ろう JAWSUG Kobe
!  JAWSUG 
–  
–  
– IoT 
–  
– 
CloudSearch
Route53
S3
DynamoDB
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
!  B 
!  
!  SD 
!  LAN BUFFALO WLIBUCBGNM 
!  × SG90 
!  × 
!  
! 
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
ON
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
AWS ロボを作ろう JAWSUG Kobe
!  PC Wifi 
awsrobo01 / awsrobo01
!  
ssh pi@rasXX.local
•  XX 00 19 
•  pi raspberry
!  AWS SDK 
curl https://bootstrap.pypa.io/getBpip.py | sudo python
sudo pip install boto BBupgrade
!  
wget http://bit.ly/1TAYwrN BO robo.py
!  
sudo python robo.py
robo.py
# -*- coding: utf-8 -*-
import RPi.GPIO as GPIO
import time
import os
import sys
import boto
from boto.sqs.message import RawMessage
###### GPIO Initialization #####
GPIO.cleanup()
###### Action 00 #####
def action_00():
GPIO.setmode(GPIO.BCM)
GPIO.setup(23, GPIO.OUT)
GPIO.setup(24, GPIO.OUT)
p1 = GPIO.PWM(23, 50)
p2 = GPIO.PWM(24, 50)
p1.start(7.5)
p2.start(7.5)
try:
p1.ChangeDutyCycle(7.5)
p2.ChangeDutyCycle(7.5)
time.sleep(0.3)
GPIO.cleanup()
except KeyboardInterrupt:
GPIO.cleanup()
###### Action 01 #####
def action_01():
GPIO.setmode(GPIO.BCM)
GPIO.setup(23, GPIO.OUT)
GPIO.setup(24, GPIO.OUT)
p1 = GPIO.PWM(23, 50)
p2 = GPIO.PWM(24, 50)
p1.start(7.5)
p2.start(7.5)
try:
for var in range(0, 4):
p1.ChangeDutyCycle(9.5)
p2.ChangeDutyCycle(9.5)
time.sleep(0.4)
p1.ChangeDutyCycle(5.5)
p2.ChangeDutyCycle(5.5)
time.sleep(0.4)
p1.ChangeDutyCycle(7.5)
p2.ChangeDutyCycle(7.5)
time.sleep(0.3)
GPIO.cleanup()
except KeyboardInterrupt:
GPIO.cleanup()
##### Main #####
action_00()
action_01()
SQS
##### Main #####
#action_00()
#action_01()
conn = boto.connect_sqs('ACCESS_KEY','SECRET_KEY')
queue = conn.get_queue('QUEUE_NAME')
queue.set_message_class(RawMessage)
while 1:
messages = queue.get_messages(1)
for message in messages:
msg = message.get_body()
print(msg)
queue.delete_message(message)
action_00()
action_01()
• 
• 
• 
• 
##### Main #####
action_00()
action_01()
"""
conn = boto.connect_sqs('ACCESS_KEY','SECRET_KEY')
queue = conn.get_queue('QUEUE_NAME')
queue.set_message_class(RawMessage)
while 1:
messages = queue.get_messages(1)
for message in messages:
msg = message.get_body()
print(msg)
queue.delete_message(message)
action_00()
action_01()
"""
!  
suto halt
5 USB

!  
sudo reboot

More Related Content

KEY
Introduction of Python & Pygame
PDF
IoT Chess 16th April Berlin
PDF
用 Bitbar Tool 寫 Script 自動擷取外幣
PDF
Introducing ARM-X
PDF
INSIDE ARM-X Cansecwest 2020
PDF
BeautifulSoup / selenium Deep dive
PDF
Control-M 800 - Infrastructure Example
PDF
USB 3.0 CAPTURE HDMI 4K with Loop-through for Image redistribution
Introduction of Python & Pygame
IoT Chess 16th April Berlin
用 Bitbar Tool 寫 Script 自動擷取外幣
Introducing ARM-X
INSIDE ARM-X Cansecwest 2020
BeautifulSoup / selenium Deep dive
Control-M 800 - Infrastructure Example
USB 3.0 CAPTURE HDMI 4K with Loop-through for Image redistribution

What's hot (19)

PDF
How to burn your GPU with CUDA9.1
PDF
Using check json to monitor anything - monitoring house plants
PDF
IFB cloud: Integration of snakemake workflows in an appliance designed for Ch...
PDF
My First AMD EPYC 7251 memo
PDF
Hardgroup - Raspberry PI #1
PDF
Announcing ARMX Docker - DC11332
PDF
Cubie board
PDF
Hack.LU 2018 ARM IoT Firmware Emulation Workshop
PDF
Tuning for zero frame loss
PDF
z-music.js - AudioProcessorNode can do it
PDF
ARM IoT Firmware Emulation Workshop
PDF
AMDGPU ROCm Deep dive
PDF
Unveiling EMUX - ARM and MIPS IoT Emulation Framework
PDF
Ct479 9
PPTX
The story of Microprocessors
PPTX
Raspberry Pi I/O控制與感測器讀取
DOCX
code for DTMF and bluetooth based digital switch board
PPTX
Connect 2015 Smoking Salmon with Splunk and Raspberry Pi
PDF
OpenBTS AirPutih
How to burn your GPU with CUDA9.1
Using check json to monitor anything - monitoring house plants
IFB cloud: Integration of snakemake workflows in an appliance designed for Ch...
My First AMD EPYC 7251 memo
Hardgroup - Raspberry PI #1
Announcing ARMX Docker - DC11332
Cubie board
Hack.LU 2018 ARM IoT Firmware Emulation Workshop
Tuning for zero frame loss
z-music.js - AudioProcessorNode can do it
ARM IoT Firmware Emulation Workshop
AMDGPU ROCm Deep dive
Unveiling EMUX - ARM and MIPS IoT Emulation Framework
Ct479 9
The story of Microprocessors
Raspberry Pi I/O控制與感測器讀取
code for DTMF and bluetooth based digital switch board
Connect 2015 Smoking Salmon with Splunk and Raspberry Pi
OpenBTS AirPutih
Ad

Viewers also liked (20)

PDF
日本語でおk AI スピーカーを作ってみた
PDF
[初音ミク] Kinesis でフリーザを撃て!
PDF
Amazon Web Services (AWS) のご紹介
PDF
ピタゴラスイッチでAWS自動化(JAWS-UG-LT @shimy_net )
PDF
AWS ロボ in JAWSDAYS
PDF
BaaS vs. バース ホームラン対決 - AWS Summit Tokyo 2014 Lightning Talk
PDF
AWSはとんでもないものを盗んでいきました(JawsDays2013@shimy_net)
PDF
Amazon AI のスゴいデモ(仮) - Serverless Meetup Osaka
PDF
Amazon Aurora の活用
PDF
[Hatsune Miku] Shoot Frieza with Amazon Kinesis ! [EN]
PDF
スタートアップ向け構成例とAWS活用事例(福岡市スタートアップカフェ)
PDF
CTO Night & Days 2015 Winter - AWS Mobile Development
PDF
Amazon Aurora の活用 - Developers.IO in OSAKA
PDF
AWS SDK for PHP のインストールから 始めるクラウドマスターへの道 〜 Promise による非同期オペレーション 〜
PDF
Amazon API Gateway を活用したゲームサーバー構築
PDF
Amazon Pinpoint - re:Invent Serverless Follow Up - 20161207
PDF
関西スタートアップAWS勉強会 スタートアップ最新事例
PDF
SA プライムなう! - AWS IoT とロボットアームでお絵かき
PDF
Dynamo 頂上決戦
PDF
PHP で始める AWS モバイルサービス - PHPカンファレンス_20150530
日本語でおk AI スピーカーを作ってみた
[初音ミク] Kinesis でフリーザを撃て!
Amazon Web Services (AWS) のご紹介
ピタゴラスイッチでAWS自動化(JAWS-UG-LT @shimy_net )
AWS ロボ in JAWSDAYS
BaaS vs. バース ホームラン対決 - AWS Summit Tokyo 2014 Lightning Talk
AWSはとんでもないものを盗んでいきました(JawsDays2013@shimy_net)
Amazon AI のスゴいデモ(仮) - Serverless Meetup Osaka
Amazon Aurora の活用
[Hatsune Miku] Shoot Frieza with Amazon Kinesis ! [EN]
スタートアップ向け構成例とAWS活用事例(福岡市スタートアップカフェ)
CTO Night & Days 2015 Winter - AWS Mobile Development
Amazon Aurora の活用 - Developers.IO in OSAKA
AWS SDK for PHP のインストールから 始めるクラウドマスターへの道 〜 Promise による非同期オペレーション 〜
Amazon API Gateway を活用したゲームサーバー構築
Amazon Pinpoint - re:Invent Serverless Follow Up - 20161207
関西スタートアップAWS勉強会 スタートアップ最新事例
SA プライムなう! - AWS IoT とロボットアームでお絵かき
Dynamo 頂上決戦
PHP で始める AWS モバイルサービス - PHPカンファレンス_20150530
Ad

Similar to AWS ロボを作ろう JAWSUG Kobe (20)

PDF
Python code for servo control using Raspberry Pi
PDF
Intel IoT webinar #1 - Tedison presentation
PPTX
IoT Aquarium 2
DOCX
RoboticCarKit_MANUAL
PDF
Rubyrobot detailedguide
PDF
IRJET- Implementation of Cloud Robotics using Raspberry PI to Monitor Product...
PPTX
Python and the Raspberry Pi
PDF
import RPi-GPIO as GPIO import time #from AlphaBot import AlphaBot imp.pdf
PDF
Raspberry pi: Proyectos de robótica raspberry pi de richard grimmett.
PPTX
[5]投影片 futurewad樹莓派研習會 141218
PPTX
Python-in-Embedded-systems.pptx
PDF
Hacking the owi robotic arm presentation liz quilty
PPTX
Got Python I/O: IoT Develoment in Python via GPIO
PDF
IRJET- Surveillance Robot based on Raspberry Pi-3
PDF
tarea 2 parcial robotica .pdf
PDF
IRJET- IOT Based Surveillance Robotic Car using Raspberry PI
PPT
Raspberry Pi for IPRUG
PPTX
Robocop final year project presentation by Abhimanyu Kumar
Python code for servo control using Raspberry Pi
Intel IoT webinar #1 - Tedison presentation
IoT Aquarium 2
RoboticCarKit_MANUAL
Rubyrobot detailedguide
IRJET- Implementation of Cloud Robotics using Raspberry PI to Monitor Product...
Python and the Raspberry Pi
import RPi-GPIO as GPIO import time #from AlphaBot import AlphaBot imp.pdf
Raspberry pi: Proyectos de robótica raspberry pi de richard grimmett.
[5]投影片 futurewad樹莓派研習會 141218
Python-in-Embedded-systems.pptx
Hacking the owi robotic arm presentation liz quilty
Got Python I/O: IoT Develoment in Python via GPIO
IRJET- Surveillance Robot based on Raspberry Pi-3
tarea 2 parcial robotica .pdf
IRJET- IOT Based Surveillance Robotic Car using Raspberry PI
Raspberry Pi for IPRUG
Robocop final year project presentation by Abhimanyu Kumar

More from 崇之 清水 (14)

PDF
WordPress RESTful API & Amazon API Gateway (English version)
PDF
知らなきゃ損なアップデートを振り返り(2020年分)- いにしえのサービスから勝手にチョイス
PDF
マイクロサービスを AWS サーバレス&コンテナで実装する方法
PDF
RESTful API を Chalice で紐解く 〜 Python Serverless Microframework for AWS 〜
PDF
クラウドを活用したセンシング/モニタリングなどデータ分析の実現
PDF
AWS 主要なサービスアップデート 6/3-11/28
PDF
5分でサーバーレスの環境構築から本番デプロイまでやったろやないか! - Serverless Meetup Osaka #4 LT
PDF
サーバレスアプリケーションの入門と実践 - AWS Cloud Roadshow 2017 Osaka
PDF
AWS における サーバーレスの基礎からチューニングまで
PDF
データ分析 on AWS
PDF
WordPress RESTful API & Amazon API Gateway - WordCamp Kansai 2016
PDF
CTO Night & Days 2015 Winter - AWS Mobile Testing
PDF
AWS を活用したモバイル開発 - 関西ソーシャルゲーム勉強会・2015夏
PDF
Amazon SNS Mobile Push を使ってみる
WordPress RESTful API & Amazon API Gateway (English version)
知らなきゃ損なアップデートを振り返り(2020年分)- いにしえのサービスから勝手にチョイス
マイクロサービスを AWS サーバレス&コンテナで実装する方法
RESTful API を Chalice で紐解く 〜 Python Serverless Microframework for AWS 〜
クラウドを活用したセンシング/モニタリングなどデータ分析の実現
AWS 主要なサービスアップデート 6/3-11/28
5分でサーバーレスの環境構築から本番デプロイまでやったろやないか! - Serverless Meetup Osaka #4 LT
サーバレスアプリケーションの入門と実践 - AWS Cloud Roadshow 2017 Osaka
AWS における サーバーレスの基礎からチューニングまで
データ分析 on AWS
WordPress RESTful API & Amazon API Gateway - WordCamp Kansai 2016
CTO Night & Days 2015 Winter - AWS Mobile Testing
AWS を活用したモバイル開発 - 関西ソーシャルゲーム勉強会・2015夏
Amazon SNS Mobile Push を使ってみる

Recently uploaded (20)

PDF
sustainability-14-14877-v2.pddhzftheheeeee
PPT
What is a Computer? Input Devices /output devices
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PPTX
The various Industrial Revolutions .pptx
PDF
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PPTX
Chapter 5: Probability Theory and Statistics
PDF
STKI Israel Market Study 2025 version august
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
PPTX
Modernising the Digital Integration Hub
PDF
CloudStack 4.21: First Look Webinar slides
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PPT
Module 1.ppt Iot fundamentals and Architecture
PPTX
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
PPTX
Configure Apache Mutual Authentication
PPTX
2018-HIPAA-Renewal-Training for executives
PDF
Credit Without Borders: AI and Financial Inclusion in Bangladesh
PDF
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
PDF
Flame analysis and combustion estimation using large language and vision assi...
sustainability-14-14877-v2.pddhzftheheeeee
What is a Computer? Input Devices /output devices
Convolutional neural network based encoder-decoder for efficient real-time ob...
The various Industrial Revolutions .pptx
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
Zenith AI: Advanced Artificial Intelligence
The influence of sentiment analysis in enhancing early warning system model f...
Chapter 5: Probability Theory and Statistics
STKI Israel Market Study 2025 version august
OpenACC and Open Hackathons Monthly Highlights July 2025
Modernising the Digital Integration Hub
CloudStack 4.21: First Look Webinar slides
sbt 2.0: go big (Scala Days 2025 edition)
Module 1.ppt Iot fundamentals and Architecture
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
Configure Apache Mutual Authentication
2018-HIPAA-Renewal-Training for executives
Credit Without Borders: AI and Financial Inclusion in Bangladesh
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
Flame analysis and combustion estimation using large language and vision assi...

AWS ロボを作ろう JAWSUG Kobe

  • 2. !  JAWSUG –  –  – IoT –  – 
  • 8. !  B !  !  SD !  LAN BUFFALO WLIBUCBGNM !  × SG90 !  × !  ! 
  • 29. ON
  • 33. !  PC Wifi awsrobo01 / awsrobo01 !  ssh pi@rasXX.local •  XX 00 19 •  pi raspberry !  AWS SDK curl https://bootstrap.pypa.io/getBpip.py | sudo python sudo pip install boto BBupgrade !  wget http://bit.ly/1TAYwrN BO robo.py !  sudo python robo.py
  • 34. robo.py # -*- coding: utf-8 -*- import RPi.GPIO as GPIO import time import os import sys import boto from boto.sqs.message import RawMessage ###### GPIO Initialization ##### GPIO.cleanup() ###### Action 00 ##### def action_00(): GPIO.setmode(GPIO.BCM) GPIO.setup(23, GPIO.OUT) GPIO.setup(24, GPIO.OUT) p1 = GPIO.PWM(23, 50) p2 = GPIO.PWM(24, 50) p1.start(7.5) p2.start(7.5) try: p1.ChangeDutyCycle(7.5) p2.ChangeDutyCycle(7.5) time.sleep(0.3) GPIO.cleanup() except KeyboardInterrupt: GPIO.cleanup() ###### Action 01 ##### def action_01(): GPIO.setmode(GPIO.BCM) GPIO.setup(23, GPIO.OUT) GPIO.setup(24, GPIO.OUT) p1 = GPIO.PWM(23, 50) p2 = GPIO.PWM(24, 50) p1.start(7.5) p2.start(7.5) try: for var in range(0, 4): p1.ChangeDutyCycle(9.5) p2.ChangeDutyCycle(9.5) time.sleep(0.4) p1.ChangeDutyCycle(5.5) p2.ChangeDutyCycle(5.5) time.sleep(0.4) p1.ChangeDutyCycle(7.5) p2.ChangeDutyCycle(7.5) time.sleep(0.3) GPIO.cleanup() except KeyboardInterrupt: GPIO.cleanup() ##### Main ##### action_00() action_01()
  • 35. SQS ##### Main ##### #action_00() #action_01() conn = boto.connect_sqs('ACCESS_KEY','SECRET_KEY') queue = conn.get_queue('QUEUE_NAME') queue.set_message_class(RawMessage) while 1: messages = queue.get_messages(1) for message in messages: msg = message.get_body() print(msg) queue.delete_message(message) action_00() action_01() •  •  •  •  ##### Main ##### action_00() action_01() """ conn = boto.connect_sqs('ACCESS_KEY','SECRET_KEY') queue = conn.get_queue('QUEUE_NAME') queue.set_message_class(RawMessage) while 1: messages = queue.get_messages(1) for message in messages: msg = message.get_body() print(msg) queue.delete_message(message) action_00() action_01() """
  • 36. !  suto halt 5 USB !  sudo reboot