2013-10-17から1日間の記事一覧

Replicatorのラフトにモデルが張り付かない問題

ダミーの円柱を配置してラフトを強制的に広げるハックを教えてもらった。 でもうまくいかなかったので、結局モデルに台座をつけた。

ArduinoでUSBを使う

ここを参考に。 https://github.com/felis/USB_Host_Shield_2.0/tree/master/examples/testusbhostFAT $ cd /Applications/Arduino.app/Contents/Resources/Java/libraries $ git clone --recursive https://github.com/felis/USB_Host_Shield_2.0 $ git sub…

Arduinoと3Dプリンタで猫のおもちゃをつくる

Arduinoのコード #include <stdint.h> #include <avr/interrupt.h> #include <avr/io.h> #include <avr/pgmspace.h> #define SAMPLE_RATE 8000 #include "sounddata.h" int ledPin = 13; int speakerPin = 11; // Can be either 3 or 11, two PWM outputs connected to Timer 2 int tiltPin = 3; volatile uint16_t</avr/pgmspace.h></avr/io.h></avr/interrupt.h></stdint.h>…