coma Study Room vol.2 Arduino WorkshopEto Haruhiko
This slide explains how to control motors by Arduino and Processing.
You can see one of the applications of motor control in this vid:
youtu.be/0nw3DtXrLLI
(Raspberry Pi is used here instead of Arduino)
coma Study Room vol.2
3.22(Sat) 18:00-22:30@Bullet’s
http://coma.io/coma-study-room-vol-2/
We, Kanagawa Institute of Technology, established the world's first support center for HEMS and the ECHNET Lite, and help promote the spread of its application. Robo Remote for HEMS is developed in the Open IoT space, where a communication robot communicates with the users in a casual way such as conversation including emotional expression, controls home appliances using the ECHNET Lite protocol, and presents its information by a casual way in cooperation with home appliances such as TVs, lighting equipment, air conditioners. The open IoT space, the Robo Remote for HEMS, and its casual communication can provide an immersive smart living environment, where users are connected to remote home and remote family in a sort of situation like a nursing relocation for elderly, an interplanetary migration, and so on.
* the contents is partly presented as the invited talk at the International Workshop on Frontier of Science and Technology 2015
高校生向けの連携授業「惑星探査ロボット・ホームロボットのためのセンサ技術」の講義資料です。
惑星探査ロボット・ホームロボットが自律行動するしくみと,そのセンサ技術について学びます。
体験実習として,Vstone社のプログラミング学習ロボット,ビュートミニ(Beauto Mini ARM)を用いた自律ロボットのプログラミング実習を行います。
5. Microcontroller ATmega328P
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limit) 6-20V
Digital I/O Pins
14 (of which 6 provide
PWM output)
PWM Digital I/O Pins 6
Analog Input Pins 6
DC Current per I/O Pin 20 mA
DC Current for 3.3V Pin 50 mA
Flash Memory
32 KB (ATmega328P)
of which 0.5 KB used by
bootloader
SRAM 2 KB (ATmega328P)
EEPROM 1 KB (ATmega328P)
Clock Speed 16 MHz
Length 68.6 mm
Width 53.4 mm
Weight 25 g
・マイコンに通信モジュール,入出力ポートを備えてボードにしたもの
・C++ライクなArduino言語で開発できる統合開発環境がある
・Arduino Unoなど,多数のバージョンがある
Arduinoとは?
Arduino LLC / Arduino SRL
入出力ポート付きマイコンボード
Arduino Uno R3
ホームエレクトロニクス開発学科 山崎研究室 yamalab.com
https://www.arduino.cc/en/Main/ArduinoBoardUno より
Atmel社 AVRマイコン
ATmega328
Technical specs [Arduino Uno R3]
5/32
13. Blink
✓ ➡
ホームエレクトロニクス開発学科 山崎研究室 yamalab.com
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
// リセット時またはボード電源を入れたときに,
一度だけsetup関数が動作する
// デジタルピン13を出力として初期化
// loop関数は何度も繰り返し動作しつづける
// LEDをONにする(電圧レベルはHIGH)
// 1秒待つ
// 電圧をLOWにしてLEDをOFFにする
// 1秒待つ
1. Lチカ(LEDの点灯)
③ サンプルスケッチの動作
これだけわかればサンプルが読める!重要単語:
function 関数
initialize 初期化する
run 動作する,~を実行する
voltage 電圧
second 秒
13/32