{"id":2568,"date":"2014-12-12T12:00:58","date_gmt":"2014-12-12T03:00:58","guid":{"rendered":"http:\/\/oohito.com\/nqthm\/?p=2568"},"modified":"2014-12-12T12:00:58","modified_gmt":"2014-12-12T03:00:58","slug":"pharo%e3%81%a7%e3%83%95%e3%82%a3%e3%82%b8%e3%82%ab%e3%83%ab%e3%82%b3%e3%83%b3%e3%83%94%e3%83%a5%e3%83%bc%e3%83%86%e3%82%a3%e3%83%b3%e3%82%b02","status":"publish","type":"post","link":"https:\/\/oohito.com\/nqthm\/archives\/2568","title":{"rendered":"Pharo\u3067\u30d5\u30a3\u30b8\u30ab\u30eb\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0(2)"},"content":{"rendered":"<p>\u3053\u308c\u306f<a href=\"http:\/\/qiita.com\/advent-calendar\/2014\/smalltalk\">Smalltalk Advent Calendar 2014<\/a>\u306e12\/12\u306e\u8a18\u4e8b\u3067\u3059\u3002<br \/>\n<a href=\"http:\/\/oohito.com\/nqthm\/archives\/2557\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u3067\u306f\u3001\u62d9\u4f5c\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u7528\u3044\u3066Pharo\u3067Scratch Sensor Board\u3068Gainer\u3092\u6271\u3046\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8ff0\u3079\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306fArduino\u3092\u6271\u3046\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2>Physical Etoys<\/h2>\n<p>Smalltalk\u3067\u3055\u307e\u3056\u307e\u306a\u30c7\u30d0\u30a4\u30b9\u3092\u52d5\u304b\u3059\u3053\u3068\u306b\u3064\u3044\u3066\u306f\u3001\u65e2\u306b\u5148\u884c\u3057\u3066\u3044\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/tecnodacta.com.ar\/gira\/projects\/physical-etoys\/\">Physical Etoys<\/a>\u306f\u3001\uff08Pharo\u306e\u30d9\u30fc\u30b9\u3068\u306a\u3063\u305f\uff09Squeak\u306e\u30d3\u30b8\u30e5\u30a2\u30eb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u74b0\u5883\u3067\u3042\u308beToys\u4e0a\u3067\u3001Arduino\u3092\u59cb\u3081\u3068\u3059\u308b\u591a\u69d8\u306a\u30c7\u30d0\u30a4\u30b9\u3092\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3059\u3002<br \/>\n\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3067\u3082\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001Physical Etoys\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c7\u30d0\u30a4\u30b9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u805e\u3044\u305f\u3053\u3068\u306e\u306a\u3044\u30c7\u30d0\u30a4\u30b9\u3082\u3042\u308a\u307e\u3059\u304c\u3001Sphero\u3084Kinect\u3001LeapMotion\u306a\u3069\u6bd4\u8f03\u7684\u65b0\u3057\u3044\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3082\u6271\u3048\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>Femisapien<\/li>\n<li>Isobot<\/li>\n<li>Kinect<\/li>\n<li>Lego Dacta Control Lab<\/li>\n<li>Puerto paralelo<\/li>\n<li>Roboquad<\/li>\n<li>Robosapien<\/li>\n<li>Sphero<\/li>\n<li>Wiimote<\/li>\n<li>Leap Motion<\/li>\n<\/ul>\n<p>Squeak\u3068Pharo\u306f\u89aa\u621a\u540c\u58eb\u3067\u3001eToys\u95a2\u9023\u306e\u30af\u30e9\u30b9\u4ee5\u5916\u306a\u3089\u304b\u306a\u308a\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u3053\u3067\u3001\u4eca\u56de\u306fPhysical Etoys\u3092\u4f7f\u3063\u3066Arduino\u3092\u6271\u3046\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h2>Arduino<\/h2>\n<h3>Arduino\u306e\u6e96\u5099<\/h3>\n<p>Arduino\u3068\u306fFirmata\u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u901a\u4fe1\u3059\u308b\u305f\u3081\u3001Arduino IDE\u3067Arduino\u306bFirmata\u306e\u30b9\u30b1\u30c3\u30c1\u3092Upload\u3057\u3066\u304a\u304f\u3002\u3068\u308a\u3042\u3048\u305aAllInputsFirmata\u3067\u826f\u3044\u3002<\/p>\n<h3>Arduino\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u5c0e\u5165<\/h3>\n<p>Arduino\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306f<a href=\"http:\/\/ss3.gemstone.com\/ss\/Arduino.html\">SqueakSource3<\/a>\u304b\u3089\u5165\u624b\u3067\u304d\u308b\u304c\u3001\u3053\u3053\u306b\u3042\u308b\u306e\u306f\u53e4\u3044\u3082\u306e\u306a\u306e\u3067\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\u3002<br \/>\n\u9762\u5012\u3060\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<br \/>\n\u307e\u305aTerminal\u306a\u3069\u3067<a href=\"https:\/\/github.com\/GIRA\/PE\">github\u306e\u30ea\u30dd\u30b8\u30c8\u30ea<\/a>\u3092clone\u3059\u308b\u3002<\/p>\n<pre>git clone https:\/\/github.com\/GIRA\/PE<\/pre>\n<p>Pharo\u3092\u8d77\u52d5\u5f8c\u3001Monticello\u3092\u958b\u3044\u3066+Repository\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3001filetree:\/\/\u3092\u9078\u3093\u3067clone\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u5185\u306ePE\/st\u3092\u9078\u3076\u3002<br \/>\n\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u958b\u3044\u305f\u3089\u3001\u5de6\u5074\u306e\u30da\u30a4\u30f3\u3067Arduino-Core\u3092\u9078\u3073\u3001\u53f3\u5074\u306e\u30da\u30a4\u30f3\u3067Arduino-Core.package\u3092\u9078\u3093\u3067Load\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3002<br \/>\n\u6b21\u306bBrowser\u3067Arduino\u30af\u30e9\u30b9\u3092\u958b\u304d\u3001initialize\u30e1\u30bd\u30c3\u30c9\u306e\u4e2d\u8eab\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u3002<br \/>\n\u307e\u305f\u3001ArduinoType\u30af\u30e9\u30b9\u3092\u958b\u304d\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u306einitialize\u30e1\u30bd\u30c3\u30c9\u3092\u767b\u9332\u3059\u308b\u3002<\/p>\n<pre>initialize\n    digitalPins := 2 to: 13.\n    analogPins := 0 to: 5<\/pre>\n<p>\u6700\u5f8c\u306bWorkspace\u3067\u4ee5\u4e0b\u3092Do it\u3059\u308b\u3002<\/p>\n<pre>ArduinoType initialize.<\/pre>\n<p>\u3053\u308c\u3067\u6e96\u5099\u306f\u5b8c\u4e86\u3002<\/p>\n<h3>Arduino\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u751f\u6210<\/h3>\n<p>Arduino\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3002<\/p>\n<pre>arduino := Arduino on: Firmata new.<\/pre>\n<h3>\u63a5\u7d9a\u3068\u89e3\u9664<\/h3>\n<p>#connectOnPort:\u3068#disconnect\u3092\u7528\u3044\u308b\u3002\u5177\u4f53\u4f8b\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002\u30dd\u30fc\u30c8\u90e8\u5206\u306fOS\u7b49\u306b\u3042\u308f\u305b\u3066\u9069\u5207\u306a\u3082\u306e\u3092\u6307\u5b9a\u3059\u308b\u3002<\/p>\n<pre>arduino connectOnPort: '\/dev\/cu.usbmodem1421'.\narduino disconnect.\n<\/pre>\n<h3>\u30c7\u30a3\u30b8\u30bf\u30eb\u30fb\u30a2\u30ca\u30ed\u30b0\u30d4\u30f3\u306e\u5236\u5fa1<\/h3>\n<p>Arduino\u306e\u30c7\u30a3\u30b8\u30bf\u30eb\u30fb\u30a2\u30ca\u30ed\u30b0\u30d4\u30f3\u3092\u64cd\u4f5c\u3059\u308b\u306b\u306f\u3001AttachableDevice\u306e\u30b5\u30d6\u30af\u30e9\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3066Arduino\u4e0a\u306e\u30d4\u30f3\u3092attach\u3059\u308b\u3002<br \/>\n\u4f8b\u3048\u3070\u3001pin13\u306b\u63a5\u7d9a\u3055\u308c\u305fLED\u3092\u6271\u3046\u306b\u306f\u3001LightEmittingDiode\u30af\u30e9\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3057\u3066Arduino\u306battach\u3059\u308b\u3002<\/p>\n<pre>led := LightEmittingDiode new.\nled attach: (arduino digitalPin: 13).<\/pre>\n<p>\u63a5\u7d9a\u3055\u308c\u305fLED\u3092\u30aa\u30f3\u30fb\u30aa\u30d5\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3002<\/p>\n<pre>led value: 1. \"\u30aa\u30f3\"\nled value: 0. \"\u30aa\u30d5\"<\/pre>\n<p>\u30a2\u30ca\u30ed\u30b0\u30d4\u30f3\u306e\u72b6\u614b\u3092\u8abf\u3079\u308b\u306e\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3002<\/p>\n<pre>analog := Potentiometer new.\nanalog attach: (arduino analogPin: 1).\nanalog value. \"\u5024\u3092\u8aad\u307f\u53d6\u308b\"<\/pre>\n<p>\u306a\u304a\u3001\u6211\u304c\u5bb6\u306e\u74b0\u5883\u3067\u306fStuduino\u306f\u3046\u307e\u304f\u4f7f\u3048\u306a\u304b\u3063\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u308c\u306fSmalltalk Advent Calendar 2014\u306e12\/12\u306e\u8a18\u4e8b\u3067\u3059\u3002 \u524d\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001\u62d9\u4f5c\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u7528\u3044\u3066Pharo\u3067Scratch Sensor Board\u3068Gainer\u3092\u6271\u3046\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8ff0\u3079&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,38],"tags":[],"class_list":["post-2568","post","type-post","status-publish","format-standard","hentry","category-arduino","category-pharo"],"_links":{"self":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/2568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/comments?post=2568"}],"version-history":[{"count":0,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/2568\/revisions"}],"wp:attachment":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/media?parent=2568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/categories?post=2568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/tags?post=2568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}