95mm 90mm 90mm 360g CPU PIC16F V [1] 2

Size: px
Start display at page:

Download "95mm 90mm 90mm 360g CPU PIC16F877 2 9V 2 60 3 [1] 2"

Transcription

1

2 95mm 90mm 90mm 360g CPU PIC16F V [1] 2

3 A

4 7.1.3 B A 1 B 3 C 11 4

5 1 2 1

6 2 2

7

8 mm 16mm g 8mm 3mm 4

9 mm 16mm 3mm 5

10

11 3 ( 3.1) 10 ( 3.2)

12 PIC F A CPU V V CPU PIC16F877 LED 2 CPU 7.2V

13 V SW F C18 1 IN GND 2 OUT 3 47 F C17 5V LED R V 5V GP2S40 GP2S40 GP2S40 C1815 R19 10k R20 47k R30 R31 R32 R33 R34 R k k k 5V LED 5V RA2 RA1 RA0 VDD 12 2 MCLR R LED 5V C9 10 F 35 C F VDD RB5 42 C1815 R VDD 34 VSS 14 OEC1 16F RC5 43 RB6 R16 10k R17 47k R13 10k C1815 R14 47k VSS 41 RB V SW RD2 RD3 RD1 RD VSS 13 RB7 29 RC7 RC0 RC V 5V 5V 0.1 F C C16 Vs-B 10 F Vs-A VDD 4 OUT1-A 2 VIN2-A 6 OUT2-A 3 VIN1-A M C F VIN1-B 11 42D OUT1-B 13 VIN2-B C14 9 OUT2-B 4.7 F VSS VSS TA7279P M 8 7 C11 42D 4.7 F C F R29 R23 R26 20k 20k 20k R22 R25 C1815 C k 10k R28 C k R21 R24 R27 0.1µ T + - C C8 1000p 9 R9 R10 4.7k 10k 13 R11 4.7k 5V 14 4 VDD MCLR C1 + - R 1µ 1000p C2 C3 R2 2k R1 1µ R3 10k 10k 100k R p 10k OUT 3 + C4 R5 LM k R6-7 OUT µ S C5 D2 S D1 C6 R7 10k 0.01µ 5V R8 10k 3 RA4 RA RA RB3 CLKIN Vss 5 16F84A 2SC1815 VDD VSS 3.4 PIC16F877 PIC 16F84A 16F877-RC1 16F84A-RA2 9

14 3.1.2 TGIF 10

15 Kokushikan.Univ R T LED ' Œ ' Œ ˆ ' Œ ƒ ˇ' ˇ' IN 2B( ƒ2) IN 1B( ƒ1) IN 2A( 2) IN 1A( 1) LED LED

16 Kokushikan.Univ ' Œ ' Œ ˆ ' Œ ƒ ˇ' IN 2B( ƒ2) IN 1B( ƒ1) IN 2A( 2) IN 1A( 1) ƒ ˆ ` OUT1A( 1) OUT1B( ƒ1) OUT2A( 2) OUT2B( ƒ2) ˇ' ˇ'

17 Kokushikan.Univ ' Œ ' Œ ˆ ' Œ ƒ OUT1A( 1) OUT1B( ƒ1) OUT2A( 2) OUT2B( ƒ2) ˇ' ˇ'

18 4 90mm 95mm 90mm 360g 95mm 90mm 95mm

19 4.1 15

20 T/R kHz 100deg 16

21 GP2S05 LED LED CPU 17

22 LED,TLN108(F) TPS601A LED LED 18

23 S.L.T.JAPAN 42D 7mm 500gcm/5v 3.3Kgcm/5v rpm 19

24 5 C C Linax emacs PIC Ver.4 20

25 5.1 PIC16F877 input PIN PIC outoput PIN void [2] 1: /* * 2: * Filename: hukugou-ronbun.c --- 3: * 4: * Copyright (C) 2009 by Faculty of Engineering, Kokushikan University 5: * : Suzuki Youhei <youhei@deimos.comb.kokushikan.ac.jp> 6: * Time-stamp: <09/01/19 16:47:22 youhei> 7: * 8: * */ 9: 10: #include <16f877.h> 11: #fuses HS, NOWDT, PUT, NOPROTECT, BROWNOUT, NOLVP, NOCPD, NOWRT 12: 13: #use fast_io(a) 14: #use fast_io(b) 15: #use fast_io(c) 16: #use fast_io(d) 17: #use fast_io(e) 18: #use delay(clock = ) 19: #bit TOIF =0x0bb.2 20: 21: /* input */ 22: #define LIGHT_SENSE_FRONT_LEFT PIN_B7 // 23: #define LIGHT_SENSE_FRONT_RIGHT PIN_B4 // 24: #define LIGHT_SENSE_REAR PIN_C7 // 25: #define REFC_CNTR PIN_A1 // 26: #define REFC_LEFT PIN_A0 // 27: #define REFC_RIGT PIN_A2 // 28: #define RD_SONIC PIN_C0 // 29: /* output */ 30: #define LIGHT_OUT_FRONT PIN_B6 // LED 31: #define LIGHT_OUT_REAR PIN_C5 // LED 32: #define MT_RIGT_1 PIN_D1 // IN1 33: #define MT_RIGT_2 PIN_D0 // IN2 34: #define MT_LEFT_2 PIN_D3 // IN2 35: #define MT_LEFT_1 PIN_D2 // IN1 36: #define MONITOR_LED PIN_B5 // LED 37: #define RD_SONIC_STOP PIN_C1 // 38: /* reaction */ 39: #define NO_ACTION 0 // 0 40: #define GO_STRAIGHT 1 // 1 41: #define GO_STRAIGHT_FAST 2 // 2 42: #define GO_BACK 3 // 3 43: #define BRAKE 4 // 4 44: #define TURN_RIGHT 5 // 5 45: #define ATURN_RIGHT 6 // 6 46: #define BACK_RIGHT 7 // 7 47: #define TURN_LEFT 8 // 8 48: #define ATURN_LEFT 9 // 9 49: #define BACK_LEFT 10 // 10 50: #define MOTOR_STOP 11 // 11 51: 52: void setup()// 1 IN 0 OUT PIN 1 53: { 54: setup_adc_ports(no_analogs); 21

26 55: set_tris_a(0xff); // 0b A : set_tris_b(0x9f); // 0b B : set_tris_c(0xdd); // 0b C : set_tris_d(0xf0); // 0b D : set_tris_e(0xff); // 0b E : 61: } 62: 63: /* */ //void 64: 65: /* */ 66: void left_motor_back(){ output_high(mt_left_1); output_low(mt_left_2); } 67: /* */ 68: void left_motor_forward(){ output_low(mt_left_1); output_high(mt_left_2); } 69: /* */ 70: void left_motor_stop() { output_low(mt_rigt_1); output_low(mt_rigt_2); } 71: /* */ 72: void left_motor_brake() { output_high(mt_rigt_1); output_high(mt_rigt_2); } 73: /* */ 74: void right_motor_back() { output_low(mt_rigt_1); output_high(mt_rigt_2); } 75: /* */ 76: void right_motor_forward() { output_high(mt_rigt_1); output_low(mt_rigt_2); } 77: /* */ 78: void right_motor_stop() { output_low(mt_left_1); output_low(mt_left_2); } 79: /* */ 80: void right_motor_brake(){ output_high(mt_left_1); output_high(mt_left_2); } 81: 82: /* */ 83: void forward() { output_low(mt_left_1); output_high(mt_left_2); output_high(mt_rigt _1); output_low(mt_rigt_2); } 84: /* */ 85: void back() { output_high(mt_left_1); output_low(mt_left_2); output_low(mt_rigt_1); output_high(mt_rigt_2); } 86: /* */ 87: void right() { output_low(mt_rigt_1); output_high(mt_rigt_2); output_low(mt_left_1); output_high(mt_left_2); } 88: /* */ 89: void left() { output_high(mt_left_1); output_low(mt_left_2); output_high(mt_rigt_1); output_low(mt_rigt_2); } 90: /* */ 91: void stop(){ output_low( MT_RIGT_1); output_low(mt_rigt_2); output_low( MT_LEFT_2); o utput_low( MT_LEFT_1); } 92: /*LED */ 93: void MITUKO(){ output_high(monitor_led); } 94: /*LED */ 95: void SHOUKO(){ output_low(monitor_led); } 22

27 6 23

28 6.1 実験方法 単体制御動作実験方法を以下に示す 光を吸収する黒いマットを落差と見立て その上に路面となる光を反射する紙を置く 図 6.1 この上にロボットを配置し スタートさせ 落差を検出し回避行動を行うか検証する 図 6.1 前方 図 6.2 上部 また動作中に障害物となる物 図 6.3 を置き超音波センサの反応を検証する さらに障害物の種類を変化させ反応をみる 図 6.3 障害物 図 6.4 障害物2 図 6.3 では硬くロボットに対して面であり 超音波の反射が強いと思われるティッ シュペーパーの箱 図 6.4 は円柱で柔らかいトイレットペーパーが少しの残ってい る芯を使用 24

29 NO NO NO NO YES YES YES YES

30 : /* * 2: * Filename: tantai dousa.c --- 3: * 4: * Copyright (C) 2008 by Faculty of Engineering, Kokushikan University 5: * : Suzuki Youhei <youhei@deimos.comb.kokushikan.ac.jp> 6: * Time-stamp: <08/11/13 15:29:53 youhei> 7: * 8: * */ 9: #include <16f877.h> 10: #fuses HS, NOWDT, PUT, NOPROTECT, BROWNOUT, NOLVP, NOCPD, NOWRT 11: 12: #use fast_io(a) 13: #use fast_io(b) 14: #use fast_io(c) 15: #use fast_io(d) 16: #use fast_io(e) 17: #use delay(clock = ) 18: #bit TOIF =0x0bb.2 19: 20: /* input */ 21: #define LIGHT_SENSE_FRONT_LEFT PIN_B7 // 22: #define LIGHT_SENSE_FRONT_RIGHT PIN_B4 // 23: #define LIGHT_SENSE_REAR PIN_C7 // 24: #define REFC_LEFT PIN_A1 // 25: #define REFC_CNTR PIN_A0 // 26: #define REFC_RIGT PIN_A2 // 27: #define RD_SONIC PIN_C0 // 28: /* output */ 29: #define LIGHT_OUT_FRONT PIN_B6 // LED 30: #define LIGHT_OUT_REAR PIN_C5 // LED 31: #define MT_RIGT_1 PIN_D1 // IN1 32: #define MT_RIGT_2 PIN_D0 // IN2 33: #define MT_LEFT_2 PIN_D3 // IN2 34: #define MT_LEFT_1 PIN_D2 // IN1 35: #define MONITOR_LED PIN_B5 // LED 36: /* reaction */ 37: #define NO_ACTION 0 // 0 38: #define GO_STRAIGHT 1 // 1 39: #define GO_STRAIGHT_FAST 2 // 2 40: #define GO_BACK 3 // 3 41: #define BRAKE 4 // 4 42: #define TURN_RIGHT 5 // 5 43: #define ATURN_RIGHT 6 // 6 44: #define BACK_RIGHT 7 // 7 45: #define TURN_LEFT 8 // 8 46: #define ATURN_LEFT 9 // 9 47: #define BACK_LEFT 10 // 10 48: #define MOTOR_STOP 11 // 11 49: 50: void setup()// 1 IN 0 OUT PIN 1 51: { 52: setup_adc_ports(no_analogs); 53: set_tris_a(0xff); // 0b A : set_tris_b(0x9f); // 0b B : set_tris_c(0xdf); // 0b C : set_tris_d(0xf0); // 0b D : set_tris_e(0xff); // 0b E : 59: } 60: 26

31 61: /* */ //void 62: 63: /* */ 64: void left_motor_back(){ output_high(mt_left_1); output_low(mt_left_2); } 65: /* */ 66: void left_motor_forward(){ output_low(mt_left_1); output_high(mt_left_2); } 67: /* */ 68: void left_motor_stop() { output_low(mt_rigt_1); output_low(mt_rigt_2); } 69: /* */ 70: void left_motor_brake() { output_high(mt_rigt_1); output_high(mt_rigt_2); } 71: /* */ 72: void right_motor_back() { output_low(mt_rigt_1); output_high(mt_rigt_2); } 73: /* */ 74: void right_motor_forward() { output_high(mt_rigt_1); output_low(mt_rigt_2); } 75: /* */ 76: void right_motor_stop() { output_low(mt_left_1); output_low(mt_left_2); } 77: /* */ 78: void right_motor_brake(){ output_high(mt_left_1); output_high(mt_left_2); } 79: 80: /* */ 81: void forward() { output_low(mt_left_1); output_high(mt_left_2); output_high(mt_rigt _1); output_low(mt_rigt_2); } 82: /* */ 83: void back() { output_high(mt_left_1); output_low(mt_left_2); output_low(mt_rigt_1); output_high(mt_rigt_2); } 84: /* */ 85: void right() { output_low(mt_rigt_1); output_high(mt_rigt_2); output_low(mt_left_1); output_high(mt_left_2); } 86: /* */ 87: void left() { output_high(mt_left_1); output_low(mt_left_2); output_high(mt_rigt_1); output_low(mt_rigt_2); } 88: /* */ 89: void stop(){ output_low( MT_RIGT_1); output_low(mt_rigt_2); output_low( MT_LEFT_2); o utput_low( MT_LEFT_1); } 90: // 91: void MITUKO(){ output_high(monitor_led); } 92: void SHOUKO(){ output_low(monitor_led); } 93: main() 94: { 95: setup(); 96: while(1) 97: { 98: forward(); 99: if(input(rd_sonic) == 1){ 100: MITUKO(); 101: stop(); 102: delay_ms(1000); 103: back(); 104: delay_ms(500); 105: right(); 106: delay_ms(1200); 107: } 108: else{ 109: SHOUKO(); 110: } 111: 112: if(input(refc_left) == 0){ 113: MITUKO(); 114: back(); 115: delay_ms(700); 116: right(); 117: delay_ms(1200); 118: } 119: else{ 27

32 120: SHOUKO(); 121: } 122: 123: if(iput(refc_cntr) == 0){ 124: MITUKO(); 125: right_motor_back(); 126: delay_ms(1200); 127: } 128: else{ 129: SHOUKO(); 130: } 131: 132: if(imput(refc_rigt) == 0){ 133: MITUKO(); 134: left_motor_back(); 135: delay_ms(1200); 136: } 137: else{ 138: SHOUKO(); 139: } 140: } 141: } 142: 143: 28

33 mm 4mm 29

34 7 30

35 7.1 実験方法 二体間通信実験方法を以下に示す 平面な床の上に 1 台を待機させ 赤外線を 後方に送信しながら前進するもう 1 台を置き 後方の待機しているロボットが前 方機の発する赤外線を受信したときのみ発信するようにプログラムを組み実験を 行う 図 7.1 後方機待機 図 7.2 図 追従 前方機設置

36 FRONT(B) BACK(A) 2 2 NO YES (A) 2. (B) A 3. B A 4. 32

37 7.1.2 A 1: /* * 2: * Filename: tusin.c --- 3: * 4: * Copyright (C) 2008 by Faculty of Engineering, Kokushikan University 5: * : Suzuki Youhei <youhei@deimos.comb.kokushikan.ac.jp> 6: * Time-stamp: <08/11/25 15:34:49 youhei> 7: * 8: * */ 9: #include <16f877.h> 10: #fuses HS, NOWDT, PUT, NOPROTECT, BROWNOUT, NOLVP, NOCPD, NOWRT 11: 12: #use fast_io(a) 13: #use fast_io(b) 14: #use fast_io(c) 15: #use fast_io(d) 16: #use fast_io(e) 17: #use delay(clock = ) 18: #bit TOIF =0x0bb.2 19: 20: /* input */ 21: #define LIGHT_SENSE_FRONT_LEFT PIN_B7 // 22: #define LIGHT_SENSE_FRONT_RIGHT PIN_B4 // 23: #define LIGHT_SENSE_REAR PIN_C7 // 24: #define REFC_LEFT PIN_A1 // 25: #define REFC_CNTR PIN_A0 // 26: #define REFC_RIGT PIN_A2 // 27: #define RD_SONIC PIN_C0 // 28: /* output */ 29: #define LIGHT_OUT_FRONT PIN_B6 // LED 30: #define LIGHT_OUT_REAR PIN_C5 // LED 31: #define MT_RIGT_1 PIN_D1 // IN1 32: #define MT_RIGT_2 PIN_D0 // IN2 33: #define MT_LEFT_2 PIN_D3 // IN2 34: #define MT_LEFT_1 PIN_D2 // IN1 35: #define MONITOR_LED PIN_B5 // LED 36: /* reaction */ 37: #define NO_ACTION 0 // 0 38: #define GO_STRAIGHT 1 // 1 39: #define GO_STRAIGHT_FAST 2 // 2 40: #define GO_BACK 3 // 3 41: #define BRAKE 4 // 4 42: #define TURN_RIGHT 5 // 5 43: #define ATURN_RIGHT 6 // 6 44: #define BACK_RIGHT 7 // 7 45: #define TURN_LEFT 8 // 8 46: #define ATURN_LEFT 9 // 9 47: #define BACK_LEFT 10 // 10 48: #define MOTOR_STOP 11 // 11 49: 50: void setup()// 1 IN 0 OUT PIN 1 51: { 52: setup_adc_ports(no_analogs); 53: set_tris_a(0xff); // 0b A : set_tris_b(0x9f); // 0b B : set_tris_c(0xdf); // 0b C : set_tris_d(0xf0); // 0b D : set_tris_e(0xff); // 0b E : 59: } 60: 33

38 61: /* */ //void 62: 63: /* */ 64: void left_motor_back(){ output_high(mt_left_1); output_low(mt_left_2); } 65: /* */ 66: void left_motor_forward(){ output_low(mt_left_1); output_high(mt_left_2); } 67: /* */ 68: void left_motor_stop() { output_low(mt_rigt_1); output_low(mt_rigt_2); } 69: /* */ 70: void left_motor_brake() { output_high(mt_rigt_1); output_high(mt_rigt_2); } 71: /* */ 72: void right_motor_back() { output_low(mt_rigt_1); output_high(mt_rigt_2); } 73: /* */ 74: void right_motor_forward() { output_high(mt_rigt_1); output_low(mt_rigt_2); } 75: /* */ 76: void right_motor_stop() { output_low(mt_left_1); output_low(mt_left_2); } 77: /* */ 78: void right_motor_brake(){ output_high(mt_left_1); output_high(mt_left_2); } 79: 80: /* */ 81: void forward() { output_low(mt_left_1); output_high(mt_left_2); output_high(mt_rigt _1); output_low(mt_rigt_2); } 82: /* */ 83: void back() { output_high(mt_left_1); output_low(mt_left_2); output_low(mt_rigt_1); output_high(mt_rigt_2); } 84: /* */ 85: void right() { output_low(mt_rigt_1); output_high(mt_rigt_2); output_low(mt_left_1); output_high(mt_left_2); } 86: /* */ 87: void left() { output_high(mt_left_1); output_low(mt_left_2); output_high(mt_rigt_1); output_low(mt_rigt_2); } 88: /* */ 89: void stop(){ output_low( MT_RIGT_1); output_low(mt_rigt_2); output_low( MT_LEFT_2); o utput_low( MT_LEFT_1); } 90: // 91: void MITUKO(){ output_high(monitor_led); } 92: void SHOUKO(){ output_low(monitor_led); } 93: main() 94: { 95: setup(); 96: while(1) 97: { 98: if(input(light_sense_front_left)!= 0 && input(light_sense_front_right)! = 0){ 99: forward(); 100: MITUKO(); 101: }else{ 102: stop(); 103: SHOUKO(); 104: } 105: } 106: } 34

39 7.1.3 B B : main() 94: { 95: setup(); 96: while(1) 97: { 98: forward(); 99: 100: MITUKO(); 101: output_high(light_out_rear); 102: delay_ms(1000); 103: stop(); 104: output_low(light_out_rear); 105: delay_ms(1000); 106: SHOUKO(); 107: } 108: } 35

40 7.2 結果 二体間通信実験を行った結果以下のことがわかった 赤外線を送信しながら前 進する前方機は単体動作実験の結果からもわかる通り直進安定性が悪く 長時間 直進すると左右のどちらかに徐々に曲がっていく 個体により左右は変わる こ のことにより前方機が曲がり始めると ロボット同士に角度がつき後方機は前方 機の赤外線送信範囲外に入り情報の受信することが出来なくなってしまう 図 7.5 これを改善するために次項の二体間通信実験 2 を行った 図 断裂

41 8 2 A 37

42 8.1 実験方法 二体間通信実験 2 の方法を以下に示す 前項の二体間通信実験と同様に平面な 床の上に 1 台を待機させ 赤外線を後方に送信しながら前進するもう 1 台を置き 後方の待機しているロボットが前方機の発する赤外線を二つのフォトトランジス タが受信したときのみ前進し 前方機との隊列が乱れたときは後方機が隊列を組 み直すようにプログラムを組み実験を行う 図 8.1 二体間通信実験 2 38

43 FRONT(B) BACK(A) 2 NO YES NO YES NO YES A

44 : void tusin_back(){ 104: if(input(light_sense_front_left) == 1 && input(light_sense_front_right) == 1){ 105: ; 106: 107: }else if(input(light_sense_front_left)!= 1 && input(light_sense_front_right) == 1){ 108: while(input(light_sense_front_left)!= 1){ 109: MITUKO(); 110: stop(); 111: right_motor_forward(); 112: } 113: }else if(input(light_sense_front_left) == 1 && input(light_sense_front_right)!= 1){ 114: while(input(light_sense_front_right)!= 1){ 115: MITUKO(); 116: stop(); 117: left_motor_forward(); 118: } 119: }else{ 120: SHOUKO(); 121: } 122: }

45 8.2 結果 以下に二体間通信実験 2 の結果を示す プログラムを改良し検証した結果 後 方機が軌道を修正して前方機に追従して行くことが可能になった 追従距離は格 段に延び路面が続く限り追従していける事もわかった この実験結果を受け 1 台 のロボットに前方機 後方機として機能するようにプログラムを書き込んだとこ ろ ロボットの前後を入れ換えても正常に動作した 図 8.3 二体間通信実験 2 結果 41

46 9 2 42

47 9.1 実験方法 複合動作実験の方法を以下に示す 光を吸収する黒いマットを落差と見立て そ の上に路面となる光を反射する紙を置く この上にロボットを 2 台ランダムに配 置しスタートさせ落差を検出し 回避行動を行いながら二台が仲間を発見し追従 するか検証する 図 9.1 複合動作実験スタート 図 9.2 経過 スタートさせた後 追従することが出来るかどうか検証する 図 9.3 経過 2 43

48 YES YES YES NO NO NO NO YES NO YES YES NO YES NO NO YES NO YES NO YES

49 9.3 1: /* * 2: * Filename: hukugou.c --- 3: * 4: * Copyright (C) 2008 by Faculty of Engineering, Kokushikan University 5: * : Suzuki Youhei <youhei@deimos.comb.kokushikan.ac.jp> 6: * Time-stamp: <08/12/15 20:08:27 youhei> 7: * 8: * */ 9: #include <16f877.h> 10: #fuses HS, NOWDT, PUT, NOPROTECT, BROWNOUT, NOLVP, NOCPD, NOWRT 11: 12: #use fast_io(a) 13: #use fast_io(b) 14: #use fast_io(c) 15: #use fast_io(d) 16: #use fast_io(e) 17: #use delay(clock = ) 18: #bit TOIF =0x0bb.2 19: 20: /* input */ 21: #define LIGHT_SENSE_FRONT_LEFT PIN_B7 // 22: #define LIGHT_SENSE_FRONT_RIGHT PIN_B4 // 23: #define LIGHT_SENSE_REAR PIN_C7 // 24: #define REFC_CNTR PIN_A1 // 25: #define REFC_LEFT PIN_A0 // 26: #define REFC_RIGT PIN_A2 // 27: #define RD_SONIC PIN_C0 // 28: /* output */ 29: #define LIGHT_OUT_FRONT PIN_B6 // LED 30: #define LIGHT_OUT_REAR PIN_C5 // LED 31: #define MT_RIGT_1 PIN_D1 // IN1 32: #define MT_RIGT_2 PIN_D0 // IN2 33: #define MT_LEFT_2 PIN_D3 // IN2 34: #define MT_LEFT_1 PIN_D2 // IN1 35: #define MONITOR_LED PIN_B5 // LED 36: #define RD_SONIC_STOP PIN_C1 // 37: /* reaction */ 38: #define NO_ACTION 0 // 0 39: #define GO_STRAIGHT 1 // 1 40: #define GO_STRAIGHT_FAST 2 // 2 41: #define GO_BACK 3 // 3 42: #define BRAKE 4 // 4 43: #define TURN_RIGHT 5 // 5 44: #define ATURN_RIGHT 6 // 6 45: #define BACK_RIGHT 7 // 7 46: #define TURN_LEFT 8 // 8 47: #define ATURN_LEFT 9 // 9 48: #define BACK_LEFT 10 // 10 49: #define MOTOR_STOP 11 // 11 50: 51: void setup()// 1 IN 0 OUT PIN 1 52: { 53: setup_adc_ports(no_analogs); 54: set_tris_a(0xff); // 0b A : set_tris_b(0x9f); // 0b B : set_tris_c(0xdd); // 0b C : set_tris_d(0xf0); // 0b D : set_tris_e(0xff); // 0b E : 60: } 45

50 61: 62: /* */ //void 63: 64: /* */ 65: void left_motor_back(){ output_high(mt_left_1); output_low(mt_left_2); } 66: /* */ 67: void left_motor_forward(){ output_low(mt_left_1); output_high(mt_left_2); } 68: /* */ 69: void left_motor_stop() { output_low(mt_rigt_1); output_low(mt_rigt_2); } 70: /* */ 71: void left_motor_brake() { output_high(mt_rigt_1); output_high(mt_rigt_2); } 72: /* */ 73: void right_motor_back() { output_low(mt_rigt_1); output_high(mt_rigt_2); } 74: /* */ 75: void right_motor_forward() { output_high(mt_rigt_1); output_low(mt_rigt_2); } 76: /* */ 77: void right_motor_stop() { output_low(mt_left_1); output_low(mt_left_2); } 78: /* */ 79: void right_motor_brake(){ output_high(mt_left_1); output_high(mt_left_2); } 80: 81: /* */ 82: void forward() { output_low(mt_left_1); output_high(mt_left_2); output_high(mt_rigt _1); output_low(mt_rigt_2); } 83: /* */ 84: void back() { output_high(mt_left_1); output_low(mt_left_2); output_low(mt_rigt_1); output_high(mt_rigt_2); } 85: /* */ 86: void right() { output_low(mt_rigt_1); output_high(mt_rigt_2); output_low(mt_left_1); output_high(mt_left_2); } 87: /* */ 88: void left() { output_high(mt_left_1); output_low(mt_left_2); output_high(mt_rigt_1); output_low(mt_rigt_2); } 89: /* */ 90: void stop(){ output_low( MT_RIGT_1); output_low(mt_rigt_2); output_low( MT_LEFT_2); o utput_low( MT_LEFT_1); } 91: // 92: void MITUKO(){ output_high(monitor_led); } 93: void SHOUKO(){ output_low(monitor_led); } 94: 95: void tusin_back(){ 96: if(input(light_sense_front_left) == 1 && input(light_sense_front_right) == 1){ 97: while(input(light_sense_front_left) == 1 && input(light_sense_front_right) == 1){ 98: output_high(light_out_front); 99: output_high(rd_sonic_stop); 100: } 101: }else if(input(light_sense_front_left)!= 1 && input(light_sense_front_right) == 1){ 102: while(input(light_sense_front_left)!= 1){ 103: MITUKO(); 104: output_high(light_out_front); 105: output_high(rd_sonic_stop); 106: stop(); 107: right_motor_forward(); 108: } 109: }else if(input(light_sense_front_left) == 1 && input(light_sense_front_right)!= 1){ 110: while(input(light_sense_front_right)!= 1){ 111: MITUKO(); 112: output_high(light_out_front); 113: output_high(rd_sonic_stop); 114: stop(); 115: left_motor_forward(); 116: } 46

51 117: }else{ 118: SHOUKO(); 119: } 120: } 121: void tusin_front(){ 122: output_high(light_out_rear); 123: if(input(light_sense_rear) == 1){ 124: 125: while(input(light_sense_rear) == 1){ 126: MITUKO(); 127: output_high(light_out_rear); 128: forward(); 129: fotorifu(); 130: tyouonpa(); 131: } 132: 133: }else{ 134: SHOUKO(); 135: } 136: } 137: void fotorifu(){ 138: 139: if(input(refc_cntr) == 0){ 140: MITUKO(); 141: back(); 142: delay_ms(700); 143: right(); 144: delay_ms(1200); 145: } 146: else{ 147: SHOUKO(); 148: } 149: 150: if(input(refc_left) == 0){ 151: MITUKO(); 152: right_motor_back(); 153: delay_ms(1200); 154: } 155: else{ 156: SHOUKO(); 157: } 158: 159: if(input(refc_rigt) == 0){ 160: MITUKO(); 161: left_motor_back(); 162: delay_ms(1200); 163: } 164: else{ 165: SHOUKO(); 166: } 167: } 168: 169: 170: 171: void tyouonpa(){ 172: if(input(rd_sonic) == 1){ 173: MITUKO(); 174: if(input(light_sense_front_left) == 1 input(light_sense_front_right) == 1) { 175: 176: tusin_back(); 177: } 178: 179: stop(); 47

52 180: delay_ms(1000); 181: back(); 182: delay_ms(500); 183: right(); 184: delay_ms(1200); 185: 186: }else{ 187: SHOUKO(); 188: } 189: } 190: 191: main() 192: { 193: setup(); 194: while(1) 195: { 196: forward(); 197: tusin_back(); 198: tusin_front(); 199: fotorifu(); 200: tyouonpa(); 201: 202: } 203: 204: } 48

53 9.4 結果 以下に実験結果を示す 複合動作実験をおこなった結果以下の問題点がわかった 1. 障害物と仲間を区別できないためロボットを認識すると回避行動を行ってし まう 2. 同じ超音波センサを使用しているために 前方 後方に他機がいる際に障害 物があると認識してしてしまう 3. 超音波センサの指向性の問題から指向範囲外から近付いてきたロボットを認 識できないため追突してしまう (図 9.5) 4. 通信用のセンサが前後に配置されているために 前後に並んだ時であり さ らに超音波を感知しなかったときでしか追従できず その確立は極めて低い 実験では追従することは出来なかった 5. 障害物 落差回避行動中は他のセンサを停止させているためロボットの接近 や接触を認識し回避することが出来ないことがわかった 図 追突

54

55

56 [1] [2] C

57 A A.1 16F877 PIC 16F877 PLCC 8k 368 Flash I/O 33 20MHz A/D USART - - CCP - SSP - WDT A.2 TPS601A 0.1min[mA] 0.1[mW/cm 2 ] 0.2max[µA] 30[V] 800[nm] [deg] 2/2(tr/tf)[]µs] 1

58 A.3 LED TLN108(F) [ma] 940 [nm] 1.3[V] 100[mA] A.4 STLJAPAN HS-GM2-DSD [mm] φ3 10[mm] DC [V] DC [V] [mA] 3300[gcm]/DC 5[V] 500[gcm]/DC 5[V] [rpm] A.5 T/R dB 40[kHz] 107 [db] -70 [db] 100 [deg] [pf] A.6 4[mm] LED 1.2[V] 140[µA] RL = 47[kΩ] Vcc = 5[V] 3[µA] RL = 47[kΩ] Vcc = 5[V] 2

59 B 1: /* * 2: * Filename: moving.c --- 3: * 4: * Copyright (C) 2009 by Faculty of Engineering, Kokushikan University 5: * : Ken Kishimto <ken@pluto.home.chofu.tokyo.jp> 6: * Time-stamp: <09/02/03 17:22:28 youhei> 7: * 8: * */ 9: // #include <16f877.h> 10: # include "linuxpic.h" 11: 12: #define LIGHT_SENSE_FRONT_LEFT PIN_B7 // OOM 13: #define LIGHT_SENSE_FRONT_RIGHT PIN_B4 // OEOM 14: #define LIGHT_SENSE_REAR PIN_C7 // OM 15: #define REFC_CNTR PIN_A1 // tn^ 16: #define REFC_LEFT PIN_A0 // tn^ 17: #define REFC_RIGT PIN_A2 // tn^ E 18: #define RD_SONIC PIN_C0 // g 19: /* output */ 20: #define LIGHT_OUT_FRONT PIN_B6 // OO LED 21: #define LIGHT_OUT_REAR PIN_C5 // O LED 22: #define MT_RIGT_1 PIN_D1 // E[^[ IN1 23: #define MT_RIGT_2 PIN_D0 // E[^[ IN2 24: #define MT_LEFT_2 PIN_D3 // [^[ IN2 25: #define MT_LEFT_1 PIN_D2 // [^[ IN1 26: #define MONITOR_LED PIN_B5 // j^[led 27: #define RD_SONIC_STOP PIN_C1 // g~ 28: 29: /* reaction */ 30: #define NO_ACTION 0 // 0 31: #define GO_STRAIGHT 1 // 1 i 32: #define GO_STRAIGHT_FAST 2 // 2 i 33: #define GO_BACK 3 // 3 34: #define BRAKE 4 // 4 u[l 35: #define TURN_RIGHT 5 // 5 E^[ 36: #define ATURN_RIGHT 6 // 6 E^[ 37: #define BACK_RIGHT 7 // 7 EobN^[ 38: #define TURN_LEFT 8 // 8 ^[ 39: #define ATURN_LEFT 9 // 9 ^[ 40: #define BACK_LEFT 10 // 10 obn^[ 41: #define MOTOR_STOP 15 // 15 ~ 42: #define END 99 // 15 ~ 43: 44: #define ON 1 45: #define OFF 0 46: 47: #define NACTION 8 // sl 48: 49: int status, reaction; 50: 51: // sli 52: int32 counter, // sp 3

60 53: countq[naction]; // sp 54: int action, // s 55: actque[naction+1];// ss 56: 57: int1 lgt_fl, lgt_fr, lgt_r, sonic; // ZT 58: int1 ref_l, ref_r, ref_c; // ZT 59: int1 lgtout_f, lgtout_r, out_sonic; 60: 61: void setup(); 62: void left_motor_back(); 63: void left_motor_forward(); 64: void left_motor_stop(); 65: void left_motor_brake(); 66: void right_motor_back(); 67: void right_motor_forward(); 68: void right_motor_stop(); 69: void right_motor_brake(); 70: void forward(); 71: void back(); 72: void aright(); 73: void aleft(); 74: void right(); 75: void left(); 76: void stop(); 77: void stop_with_led(); 78: void LED_on(); 79: void LED_off(); 80: int8 sonic_sense(); 81: int8 sensing(); 82: void rear_lamp(int1 s); 83: void front_lamp(int1 s); 84: int8 sense_rear_lgt(); 85: void flush_front_lamp(int mod); 86: void flush_rear_lamp(int mod); 87: 88: /* 89: #fuses HS, NOWDT, PUT, NOPROTECT, BROWNOUT, NOLVP, NOCPD, NOWRT 90: 91: #use fast_io(a) 92: #use fast_io(b) 93: #use fast_io(c) 94: #use fast_io(d) 95: #use fast_io(e) 96: #use delay(clock = ) 97: #bit TOIF =0x0bb.2 98: */ 99: /* * 100: * Filename: moving.c : * 102: * Copyright (C) 2009 by Faculty of Engineering, Kokushikan University 103: * : Ken Kishimto <ken@pluto.home.chofu.tokyo.jp> 104: * Time-stamp: <09/01/29 16:33:46 youhei> 105: * 106: * */ 107: void setup() //B1IN0OUTBgPIN1B 108: { 109: setup_adc_ports(no_analogs); 110: set_tris_a(0xff); // 0b EA0B16i@ 111: set_tris_b(0x9f); // 0b EB0B16i@ 112: set_tris_c(0xdf); // 0b EC0B16i@ 113: set_tris_d(0xf0); // 0b ED0B16i@ 114: set_tris_e(0xff); // 0b EE0B16i@ 115: } 116: 4

61 117: /* { n[ho */ //void gb 118: /* obn */ 119: void left_motor_back() 120: { output_high(mt_left_1); output_low(mt_left_2); } 121: /* Oi */ 122: void left_motor_forward() 123: { output_low(mt_left_1); output_high(mt_left_2); } 124: /* Xgbv */ 125: void left_motor_stop() 126: { 127: output_low(mt_rigt_1); output_low(mt_rigt_2); 128: } 129: /* u[l */ 130: void left_motor_brake() 131: { output_high(mt_rigt_1); output_high(mt_rigt_2); } 132: /* EobN */ 133: void right_motor_back() 134: { output_low(mt_rigt_1); output_high(mt_rigt_2); } 135: /* EOi */ 136: void right_motor_forward() 137: { output_high(mt_rigt_1); output_low(mt_rigt_2); } 138: /* EXgbv */ 139: void right_motor_stop() 140: { output_low(mt_left_1); output_low(mt_left_2); } 141: /* Eu[L */ 142: void right_motor_brake() 143: { output_high(mt_left_1); output_high(mt_left_2); } 144: 145: /* Oi */ 146: void forward() 147: { 148: left_motor_forward(); 149: right_motor_forward(); 150: } 151: /* */ 152: void back() 153: { 154: left_motor_back(); 155: right_motor_back(); 156: } 157: /* v */ 158: void aright() 159: { 160: left_motor_forward(); 161: right_motor_back(); 162: } 163: /* v */ 164: void aleft() 165: { 166: right_motor_forward(); 167: left_motor_back(); 168: } 169: /* x_v */ 170: void right() 171: { 172: left_motor_forward(); 173: right_motor_stop(); 174: } 175: /* Ex_v */ 176: void left() 177: { 178: right_motor_forward(); 179: left_motor_stop(); 180: } 5

62 181: /* ~ */ 182: void stop() 183: { 184: right_motor_stop(); 185: left_motor_stop(); 186: } 187: // 188: void LED_on() 189: { 190: output_high(monitor_led); 191: } 192: void LED_off() 193: { 194: output_low(monitor_led); 195: } 196: 197: int8 sonic_sense() 198: { 199: output_high(rd_sonic_stop); 200: delay_us(500); 201: sonic = input(rd_sonic); 202: output_low(rd_sonic_stop); 203: return sonic; 204: } 205: /* x~ */ 206: void stop_with_led() 207: { 208: stop(); 209: LED_off(); 210: delay_ms(5000); 211: LED_on(); 212: delay_ms(5000); 213: } 214: 215: /* ZTXL */ 216: int8 sensing() 217: { 218: int8 a = 0; 219: 220: lgt_fl = input(light_sense_front_left); 221: a += lgt_fl; 222: lgt_fr = input(light_sense_front_right); 223: a += lgt_fr; 224: lgt_r = input(light_sense_rear); 225: a += lgt_r; 226: sonic = sonic_sense(); 227: a += sonic; 228: ref_c = 1 - input(refc_cntr); 229: a += ref_c; 230: ref_l = 1 - input(refc_left); 231: a += ref_l; 232: ref_r = 1 - input(refc_rigt); 233: a += ref_r; 234: return a; 235: } 236: 237: void rear_lamp(int1 s) 238: { 239: if (s) 240: output_high(light_out_rear); 241: else 242: output_low(light_out_rear); 243: } 244: 6

63 245: void front_lamp(int1 s) 246: { 247: if (s) 248: output_high(light_out_front); 249: else 250: output_low(light_out_front); 251: } 252: int8 sense_rear_lgt() 253: { 254: lgt_r = input(light_sense_rear); 255: return lgt_r; 256: } 257: 258: void flush_front_lamp(int mod) 259: { 260: int i; 261: 262: switch (mod) { 263: case 0: // " " 264: for (i = 0; i < 4; i++) { 265: front_lamp(1); 266: delay_ms(30); 267: } 268: break; 269: case 1: // "...." 270: for (i = 0; i < 4; i++) { 271: front_lamp(1); 272: delay_ms(5); 273: front_lamp(0); 274: delay_ms(25); 275: } 276: break; 277: case 2: // " " 278: for (i = 0; i < 4; i++) { 279: front_lamp(1); 280: delay_ms(25); 281: front_lamp(0); 282: delay_ms(5); 283: } 284: break; 285: default: 286: break; 287: } 288: front_lamp(0); 289: } 290: 291: void flush_rear_lamp(int mod) 292: { 293: int i; 294: 295: switch (mod) { 296: case 0: // " " 297: for (i = 0; i < 4; i++) { 298: rear_lamp(1); 299: delay_ms(30); 300: } 301: break; 302: case 1: // "...." 303: for (i = 0; i < 4; i++) { 304: rear_lamp(1); 305: delay_ms(5); 306: rear_lamp(0); 307: delay_ms(25); 308: } 7

64 309: break; 310: case 2: // " " 311: for (i = 0; i < 4; i++) { 312: rear_lamp(1); 313: delay_ms(25); 314: rear_lamp(0); 315: delay_ms(5); 316: } 317: break; 318: default: 319: break; 320: } 321: rear_lamp(0); 322: } 323: /* */ 324: void 325: do_action(int act) 326: { 327: switch (act) { 328: case GO_STRAIGHT : forward(); break; 329: case GO_STRAIGHT_FAST: forward(); break; 330: case GO_BACK : back(); break; 331: case BRAKE : left_motor_brake(); 332: right_motor_brake(); break; 333: case TURN_RIGHT : right(); break; 334: case ATURN_RIGHT : aright(); break; 335: case BACK_RIGHT : right_motor_back(); break; 336: case TURN_LEFT : left(); break; 337: case ATURN_LEFT : aleft(); break; 338: case BACK_LEFT : left_motor_back(); break; 339: case MOTOR_STOP : stop(); break; 340: case NO_ACTION : 341: case END : stop_with_led(); 342: default : break; 343: } 344: } 345: /* 346: * VANVL 347: * NACTION Yp 348: */ 349: void rememb_action(int act, int32 conu) 350: { 351: int i; 352: 353: for (i = NACTION - 1; i > 0; i--) { 354: actque[i] = actque[i - 1]; 355: countq[i] = countq[i - 1]; 356: } 357: actque[0] = act; 358: countq[0] = conu; 359: actque[naction] = END; 360: } 361: /* 362: * OMF 363: */ 364: void commun_front() 365: { 366: if (lgt_fl == 1 lgt_fr == 1) { 367: LED_on(); 368: flush_front_lamp(1); 369: counter = 500; 370: if (lgt_fl == 1 && lgt_fr == 1) { 371: action = GO_STRAIGHT; 372: } else if (lgt_fr == 1) { 8

65 373: action = TURN_LEFT; 374: } else { 375: action = TURN_RIGHT; 376: } 377: } else { 378: LED_off(); 379: } 380: } 381: /* 382: * MFM 383: */ 384: void commun_back() 385: { 386: flush_rear_lamp(1); 387: if (sense_rear_lgt()) { 388: action = GO_STRAIGHT; 389: counter = 5000; 390: } 391: } 392: /* 393: * 394: */ 395: int main() 396: { 397: int i, em; 398: 399: setup(); 400: for (i = 0; i < NACTION; i++) { 401: actque[i] = END; 402: countq[i] = 0; 403: } 404: action = GO_STRAIGHT; 405: counter = 32767; 406: while (1) { 407: do_action(action); 408: if (sensing()) { 409: em = 0; // } 410: LED_on(); 411: /* Q dv*/ 412: if (sonic) { 413: action = MOTOR_STOP; 414: counter = 1000; 415: actque[0] = GO_BACK; 416: countq[0] = 500; 417: actque[1] = TURN_LEFT; 418: countq[1] = 1200; 419: actque[2] = END; 420: em = 1; // } 421: } 422: if (ref_c) { 423: action = GO_BACK; 424: counter = 2400; // 1200ms 425: actque[0] = TURN_RIGHT; 426: countq[0] = 1200; 427: actque[1] = GO_STRAIGHT; 428: countq[1] = 32767; // 429: em = 1; // } 430: } 431: if (ref_r && ref_l) { 432: action = GO_BACK; 433: counter = 2400; // 1200ms 434: actque[0] = ATURN_RIGHT; 435: countq[0] = 1200; 436: actque[1] = GO_STRAIGHT; 9

66 437: countq[1] = 32767; // 438: em = 1; // } 439: } else if (ref_r) { 440: action = BACK_LEFT; 441: counter = 1200; // 1200ms 442: actque[0] = GO_BACK; 443: countq[0] = 1200; // 1200ms 444: actque[1] = END; 445: em = 1; // } 446: } else if (ref_l) { 447: action = BACK_RIGHT; 448: counter = 1200; // 1200ms 449: actque[0] = GO_BACK; 450: countq[0] = 1200; // 1200ms 451: actque[1] = END; 452: em = 1; // } 453: } 454: if (em == 0) { // } 455: /* M : mmbtbi */ 456: commun_back(); 457: commun_front(); 458: } 459: } else { 460: LED_off(); 461: if (counter > 0) { // sip 462: counter--; 463: } else { 464: counter = countq[0]; // so 465: action = actque[0]; 466: if (action!= END) { // svob 467: for (i = 0; i < NACTION - 1; i++) { 468: actque[i] = actque[i+1]; 469: countq[i] = countq[i+1]; 470: } 471: actque[naction] = END; 472: } 473: } 474: } 475: if (action == END) { // SsIFftHgs 476: // OiH 477: action = GO_STRAIGHT; 478: counter = 100; 479: // sdv 480: actque[0] = ATURN_LEFT; 481: countq[0] = 200; 482: actque[1] = END; 483: } 484: } 485: return 0; 486: } 487: /* */ 10

67 C Linax OS windows Linax windows OS PIC IC C 11

68 C

69

Microsoft Word - マイコンを用いた信号# doc

Microsoft Word - マイコンを用いた信号# doc 1. C 2. 2.1 1980 Z80 PIC AVR SuperH H8 PICPeripheral Interface Controller 20MHz AD RA2 RA3 RA4 CLR VSS RB0 RB1 RB2 RB3 1 2 3 4 5 6 7 8 9 PIC16F84A-20P 0315025 18 RA1 17 RA0 16 CLK1 15 CLK2 14 VDD 13 RB7

More information

Arduino UNO IS Report No. Report Medical Information System Laboratory

Arduino UNO IS Report No. Report Medical Information System Laboratory Arduino UNO 2015 2 25 IS Report No. Report Medical Information System Laboratory Abstract ( ) Arduino / Arduino Bluetooth Bluetooth : Arduino Arduino UNO Arduino IDE micro computer LED 1............................

More information

(Making the electronic circuit with use of micro-processor)

(Making the electronic circuit with use of micro-processor) (Making the electronic circuit with use of micro-processor) 1055083 1 1 2 3 4 2L T = Vs T = 1 34000 2 = 58.824 5 4069 9V R1 1k Q1 NPN R2 1k

More information

(search: ) [1] ( ) 2 (linear search) (sequential search) 1

(search: ) [1] ( ) 2 (linear search) (sequential search) 1 2005 11 14 1 1.1 2 1.2 (search:) [1] () 2 (linear search) (sequential search) 1 2.1 2.1.1 List 2-1(p.37) 1 1 13 n

More information

i /..12 / / /...22 /

i /..12 / / /...22 / (Design and Fabrication of the electronic circuits for miniature mobiles with sensors) 1055091 17 20 i.........3...3...4...8...8...8...10...12 /..12 /.17...18...18...19...20 /...21...21...21...22...22

More information

,, ( ) 5 ma ( ) 5V V 5 6 A B C D E F G H I J , LED LED, LED, 7 LED,, 7 LED ( ) V LED VCC 5V 7 LED VCC f g f a g b a b c e d e d c dp dp VCC (

,, ( ) 5 ma ( ) 5V V 5 6 A B C D E F G H I J , LED LED, LED, 7 LED,, 7 LED ( ) V LED VCC 5V 7 LED VCC f g f a g b a b c e d e d c dp dp VCC ( [] PIC 8 (/6, 6/ ) (/, 6/) (5/7, 6/8) PIC PIC PIC (5/, 6/5) V 5 (5/, 7/ ) V LED ( LED ( /, 6/) V V V ( 5/8, 6/9) V ( 5/5, 6/6) ( V 5/8, 7/ 9) V % 6%, LED, LED /7, 6/ 5) 7,, LED, LED LED ,, ( ) 5 ma ( )

More information

Taro11-表紙と目次.PDF

Taro11-表紙と目次.PDF 2 1 2 2 3 4 6 1 6 2 7 10 PIC 11 PIC16F84A 14 1 IC 14 2 PIC16F84A 14 3 PIC 16 4 PIC 23 26 PIC 31 33 35 38 38 39 1 PICLite 39 2 my.h 41 43 1 43 2 44 3 45 4 PIC 46 5 PIC 48 49 1 LED 49 2 LED 53 3 LED 55 4

More information

3 4 PIC

3 4 PIC PIC 16 2 9 3 4 PIC 5 7 4-1 4-2 4-3 4-4 4-5 4-6 4-7 4-8 4-9 7 7 7 0 7 0 7 11 13 14 15 19 5-1 5-2 5-3 19 19 19 5-4 20 5-5 20 5-6 22 5-7 23 5-8 25 5-9 26 5-10 27 29 6-1 29 6-2 29 6-3 29 1 6-4 IC 30 6-5 31

More information

thesis.dvi

thesis.dvi H8 e041220 2009 2 Copyright c 2009 by Kentarou Nagashima c 2009 Kentarou Nagashima All rights reserved , H8.,,,..,.,., AKI-H8/3052LAN. OS. OS H8 Write Turbo. H8 C, Cygwin.,., windows. UDP., (TA7279P).,.

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション "# "# $%&' "#$% $# & $# $% % ' ()(*"#$% +,(- ()(*"#$%.' ()(* $/.0##'' %0$&0% 1*2#/0/%'&0343$56 789#/0/'%&04../ "3"0##"$ "0%0$" "7 1*2#.30///04%.$ 789#.30///0#$'4 http://www.ibie2016.com/exhibitorlist/

More information

PIN S 5 K 0 K 1 K 2 K 3 K 4 V DD V 0 V 1 V 2 V SS OSC SEG 32 SEG 31 SEG 30 SEG 29 SEG 28 SEG 27 SEG 26 SEG 25 SEG 24 SEG 23 SEG 22 SEG 21 SEG 20 SEG 1

PIN S 5 K 0 K 1 K 2 K 3 K 4 V DD V 0 V 1 V 2 V SS OSC SEG 32 SEG 31 SEG 30 SEG 29 SEG 28 SEG 27 SEG 26 SEG 25 SEG 24 SEG 23 SEG 22 SEG 21 SEG 20 SEG 1 1/3 1/4 LCD NJU6535 LCD 1/3 1/4 LCD key(scan 6 Scan 5) CPU 3 4 42 41 1/3 126 1/4 164 LED NJU6535FH1 LCD 42 126 164 30 Scan 6 Scan 5 1/2, 1/3 LED 4 (,,, CS) (8 ) 4.5 ~ 5.5V 5.5V QFP64-H1 CMOS ( :P) -1-

More information

スライド 1

スライド 1 マイコンをはじめよう 割り込みを使おう 徳島大学大学院ソシオテクノサイエンス研究部 技術専門職員辻明典 連絡先 : 770-8506 徳島市南常三島町 2-1 TEL/FAX: 088-656-7485 E-mail::a-tsuji@is.tokushima-u.ac.jp 割り込みを使おう 第 8 回 2013/9/14(Sat) 10:00 11:30 2 本日の予定 1 割り込みについて 2

More information

PIC

PIC PIC LED12 LED11 LED10 LED9 LED8 LED7 LED6 LED5 LED4 LED3 LED2 LED1 +3V SW START SW STOP SW + - BUZZER PIC16F628A RA2 RA3 RA4 MCLR GND RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7 Vcc RA6 RA0 RA1 RA7 U1

More information

PS2501-1,-2,-4,PS2501L-1,-2,-4 DS

PS2501-1,-2,-4,PS2501L-1,-2,-4  DS Photocoupler PS2501-1,-2,-4,PS2501L-1,-2,-4 NEPOC PS2501-1, -2, -4, PS2501L-1, -2, -4 GaAs LED PS2501L-1, -2, -4 PS2501-1, -2, -4 PS2501-1, -2, -4, PS2501L-1, -2, -4 BV = 5 000 Vr.m.s. VCEO = 80 V tr =

More information

ユーザーズマニュアル(SVCCシリーズ)

ユーザーズマニュアル(SVCCシリーズ) SV-NET CONTROLLER SVCC SV-NET Controller SVCC SV-NET Controller Compact SV-NET SVCC SVCC SVC SVD SVCC SVCE TMasM TMc TMoS OS C SV-NET SV-NET AC SV-NET Controller Compact SV-NET Controller Ether C OS C

More information

p ss_kpic1094j03.indd

p ss_kpic1094j03.indd DC~1 Mbps 光リンク用送受信フォト IC は 光ファイバ通信用トランシーバ (FOT) として プラスチック光ファイバ (POF)1 本で半 2 重通信が可能な送受信フォト ICです POFを用いた光ファイバ通信は ノイズの影響を受けない 高いセキュリティをもつ 軽量といった特長があります は送信部と受信部の光軸が同一なため 1 本のPOFで光信号の送信 受信が可能です POF 通信に最適な500

More information

ブロック体A

ブロック体A 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U W X Y Z! $ % & ( ) *, -. / ; : < >? [ ] ` å Å ß Æ Ø æ ø ƒ Œ œ fi fl ı ˆ ˇ Â Î Ô ª º 0 1

More information

1516-機器センサ_J.indb

1516-機器センサ_J.indb 機器用センサ Grid-EYE Grid-EYE Grid-EYE Grid-EYE Grid-EYE 着座検知 扉開閉 洗濯機の水位検知 電子レンジ PS-A 微圧タイプ 水位検知 Grid-EYE 温度計測 位置検知 熱 軸GF 赤外線アレイセンサ Grid-EYE 設計 仕様について予告なく変更する場合があります ご購入及びご使用前に当社の技術仕様書などをお求め願い それらに基づいて購入及び使用していただきますようお願いします

More information

DB0

DB0 IRQ CS# A0 RD# WR# DB0- CPU I/F FIFO/RAM 88 Timing Control Key In Control Scan Counter SHIFT CNTl/STB RL0-# SL0- BD# RESET CLK Display RAM 8 Display Drive OUTB0- OUTA0- RL# RL# RL# RL# RESET RD# WR# GND

More information

untitled

untitled H Phase & Enable (UVLO) V DD =2.55.5V =3.08.0V Io=400mA I DD =200uA typ. (Mode Select) 2 Phase & Enable (ALL L ) STB L (UVLO) Alarm CMOS SSOP20-C3 - - (Ta=25 C) (Ta=25) - 2 - - 3 - - 4 - - 5 - OUTA IN2B

More information

PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU

PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU 1. 1.1. 1.2. 1 PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU 2. 2.1. 2 1 2 C a b N: PC BC c 3C ac b 3 4 a F7 b Y c 6 5 a ctrl+f5) 4 2.2. main 2.3. main 2.4. 3 4 5 6 7 printf printf

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション 磁気コンパスの試作 ~ データ送信の無線化 ~ 液晶表示 電源 5V 位 ICSP PICKit3 PIC:16F1827 液晶表示器 ACM1602NI-FLW-FBW-M01 液晶表示器 AQM0802A-RN-GBW PIC16F1827 完成版 変更点 :2015.1.23 2015.1.30 倒立振子デモ 2015.1.22 倒立振子, グラフィッデモ 2014.12.18 グラフィックデモ

More information

untitled

untitled 1050259 16 2 22 1 1 DC DC 2 20 TRIZ PIC PIC MPLAB IDE PIC16F84A PIC16F876 DC 3 20 20 PIC 4 16*32 24*72 ( 1-1) 5 ON,OFF 1-2 & 10ms 6 7 2-1 8 2 PWM Microchip Technology PIC 9 1 H PIC 10 PID 90g PWM P I PWM

More information

C¥×¥í¥°¥é¥ß¥ó¥° ÆþÌç

C¥×¥í¥°¥é¥ß¥ó¥° ÆþÌç C (3) if else switch AND && OR (NOT)! 1 BMI BMI BMI = 10 4 [kg]) ( [cm]) 2 bmi1.c Input your height[cm]: 173.2 Enter Input your weight[kg]: 60.3 Enter Your BMI is 20.1. 10 4 = 10000.0 1 BMI BMI BMI = 10

More information

スライド 1

スライド 1 8. ステッピングモータの制御を学ぼう 秋月電子通商 PIC ステッピングモータドライバキット ( 小型モータ付き ) を参照しました. 回路製作の詳細は第 0 章を参照してください. 1 2 第 0 章図 28 より完成写真 ( マイコン回路 + ステッピングモータ駆動回路 ) PIC マイコンによるステッピングモータの制御 PIC16F84 R 1 R 2 RB6 RB0 ステッピングモータ S

More information

// USB_CNC_Machine リモート PIO 端末プログラムのメイン関数およびユーザアプリ部 // 編集作成 by Takehiko Inoue /*********** メイン関数 ***************************/ #pragma code

// USB_CNC_Machine リモート PIO 端末プログラムのメイン関数およびユーザアプリ部 // 編集作成 by Takehiko Inoue /*********** メイン関数 ***************************/ #pragma code // USB_CNC_Machine リモート PIO 端末プログラムのメイン関数およびユーザアプリ部 // 2017.03.16 編集作成 by Takehiko Inoue /*********** メイン関数 ***************************/ #pragma code void main(void) /* IO ピン初期設定 */ ANSEL = 0x00; // 0b10000000

More information

AN5637

AN5637 IC SECAM IC SECAM IC 1 SECAM Unit : mm 19.2±0.3 16 9 1 8 (0.71) 0.5±0.1 Seating plane 2.54 1.22±0.25 DIP016-P-0300D 6.2±0.3 5.20±0.25 1.10±0.25 3.05±0.25 7.62±0.25 3 to 15 0.30 +0.10 ) (DIP016- P-0300M)

More information

ユーザーズマニュアル(SVCEシリーズ)

ユーザーズマニュアル(SVCEシリーズ) SV-NET CONTROLLER SVCE SV-NET Controller SVCE SV-NET Controller Ether SV-NET SVCE Ethernet EtherCAT EtherCAT SVCE SVCE SVC SVD SVCC SVCE TMasM TMc TMoS OS C SV-NET SV-NET AC SV-NET Controller Compact

More information

64bit SSE2 SSE2 FPU Visual C++ 64bit Inline Assembler 4 FPU SSE2 4.1 FPU Control Word FPU 16bit R R R IC RC(2) PC(2) R R PM UM OM ZM DM IM R: reserved

64bit SSE2 SSE2 FPU Visual C++ 64bit Inline Assembler 4 FPU SSE2 4.1 FPU Control Word FPU 16bit R R R IC RC(2) PC(2) R R PM UM OM ZM DM IM R: reserved (Version: 2013/5/16) Intel CPU (kashi@waseda.jp) 1 Intel CPU( AMD CPU) 64bit SIMD Inline Assemler Windows Visual C++ Linux gcc 2 FPU SSE2 Intel CPU double 8087 FPU (floating point number processing unit)

More information

●70974_100_AC009160_KAPヘ<3099>ーシス自動車約款(11.10).indb

●70974_100_AC009160_KAPヘ<3099>ーシス自動車約款(11.10).indb " # $ % & ' ( ) * +, -. / 0 1 2 3 4 5 6 7 8 9 : ; < = >? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y " # $ % & ' ( ) * + , -. / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B

More information

PIC倒立振子

PIC倒立振子 PIC マイコンとジャイロセンサを使った倒立振子 2016 年 7 月 29 日蚊野浩概要 PIC マイコンと3 軸ジャイロ加速度センサ MPU6050 を使って, 二輪倒立振子を試作した.6 個のセンサ出力の中で, 一つの角速度値だけを使って倒立させることができた. 1. PIC マイコン PIC マイコンは, 米国マイクロチップ テクノロジー社が製造するマイクロコントローラ製品群である. 非常に多くの製品があり,

More information

2 1,384,000 2,000,000 1,296,211 1,793,925 38,000 54,500 27,804 43,187 41,000 60,000 31,776 49,017 8,781 18,663 25,000 35,300 3 4 5 6 1,296,211 1,793,925 27,804 43,187 1,275,648 1,753,306 29,387 43,025

More information

Copyright c 2009 by Masaki Yagi

Copyright c 2009 by Masaki Yagi 041238 2009 2 Copyright c 2009 by Masaki Yagi c 2009 Masaki Yagi All rights reserved ,,,,,,,,,,,,,, 3,,,,,,, i 1 1 11 1 12 1 2 2 21 2 22 3 23 4 24 4 25 5 26 5 3 6 31 6 32 10 33 11 4 13 41 13 42 14 43

More information

DS

DS FUJITSU SEMICONDUCTOR DATA SHEET DS4 272 1 ASSP (AC / DC ) BIPOLAR, IC,, 2 ma, 5 V SOP 16 1 AC/DC Copyright 1986-211 FUJITSU SEMICONDUCTOR LIMITED All rights reserved 211.5 (TOP VIEW) IN1 1 16 IN2 IN1

More information

CCD リニアイメージセンサ用駆動回路 C CCD リニアイメージセンサ (S11155/S ) 用 C は 当社製 CCDリニアイメージセンサ S11155/S 用に開発された駆動回路です S11155/S11156-

CCD リニアイメージセンサ用駆動回路 C CCD リニアイメージセンサ (S11155/S ) 用 C は 当社製 CCDリニアイメージセンサ S11155/S 用に開発された駆動回路です S11155/S11156- CCD リニアイメージセンサ用駆動回路 C11165-02 CCD リニアイメージセンサ (S11155/S11156-2048-02) 用 C11165-02は 当社製 CCDリニアイメージセンサ S11155/S11156-2048-02 用に開発された駆動回路です S11155/S11156-2048-02と組み合わせることにより分光器に使用できます C11165-02 は CCD 駆動回路

More information

ICS-01B-◇◇◇

ICS-01B-◇◇◇ ICS-02B-812 255 ... 4 Abstract... 4 1... 5 1.1... 5 1.2... 6 1.3... 7 2... 8 2.1... 8 2.2... 10 2.3...11 2.4... 13 2.5 2... 14 3... 16 3.1... 16 3.2... 17 4 2... 20 4.1... 20 4.2... 24 4.3... 27 4.4...

More information

Microsoft Word - RenewSimpleDAIforCS8416.doc

Microsoft Word - RenewSimpleDAIforCS8416.doc < 編集日 :R2 2014.9.30> Renew Simple DAI for CS8416 基板 Renew Simpe Digital Audio Interface PCB for CS8416 製作マニュアル < 注意 > 本キットをつかって生じた感電 火災等の一切のトラブルについては 当方は責任を負いませんのでご了承ください また 基板 回路図 マニュアル等の著作権は放棄していませんので

More information

Triple 2:1 High-Speed Video Multiplexer (Rev. C

Triple 2:1 High-Speed Video Multiplexer (Rev. C www.tij.co.jp OPA3875 µ ± +5V µ RGB Channel OPA3875 OPA3875 (Patented) RGB Out SELECT ENABLE RED OUT GREEN OUT BLUE OUT 1 R G B RGB Channel 1 R1 G1 B1 X 1 Off Off Off 5V Channel Select EN OPA875 OPA4872

More information

P03.ppt

P03.ppt (2) Switch case 5 1 1 2 1 list0317.c if /*/ intnum; printf(""); scanf("%d", &num); 2 if (num % 3 == 0) puts( 0"); else if (num % 3 == 1) puts(" 1"); else puts( 32"); 3 if list0318.c /*/ intnum; printf("");

More information

Microsoft Word - SU1203教本(Sens)原稿.docx

Microsoft Word - SU1203教本(Sens)原稿.docx int valsw; // void setup(){ pinmode(13, OUTPUT); pinmode(a4, INPUT_PULLUP); //13 //A4 } void loop(){ valsw = digitalread(a4); if(valsw == 0){ //A4 valsw //valsw } digitalwrite(13, HIGH); //valsw 0LED ------(A)

More information

64bit SSE2 SSE2 FPU Visual C++ 64bit Inline Assembler 4 FPU SSE2 4.1 FPU Control Word FPU 16bit R R R IC RC(2) PC(2) R R PM UM OM ZM DM IM R: reserved

64bit SSE2 SSE2 FPU Visual C++ 64bit Inline Assembler 4 FPU SSE2 4.1 FPU Control Word FPU 16bit R R R IC RC(2) PC(2) R R PM UM OM ZM DM IM R: reserved (Version: 2013/7/10) Intel CPU (kashi@waseda.jp) 1 Intel CPU( AMD CPU) 64bit SIMD Inline Assemler Windows Visual C++ Linux gcc 2 FPU SSE2 Intel CPU double 8087 FPU (floating point number processing unit)

More information

PIC

PIC PIC - 1 ページ 2 週目 UBW を使用してみる 2010 年 5 月 23 日 15:28 前回の Gainer mini はあくまでも PC 側にプログラムがあり PIC は IO ボックス的な使用しかできなかった 入出力デバイスとして PIC を使う場合は 簡易で便利であるが それ以上の事 (PC なしでの動作 PC と対等の動作 ) は出来ない 今週からは 本来の PIC としての使い方を学ぶ

More information

Microsoft Word - C.....u.K...doc

Microsoft Word - C.....u.K...doc C uwêííôöðöõ Ð C ÔÖÐÖÕ ÐÊÉÌÊ C ÔÖÐÖÕÊ C ÔÖÐÖÕÊ Ç Ê Æ ~ if eíè ~ for ÒÑÒ ÌÆÊÉÉÊ ~ switch ÉeÍÈ ~ while ÒÑÒ ÊÍÍÔÖÐÖÕÊ ~ 1 C ÔÖÐÖÕ ÐÊÉÌÊ uê~ ÏÒÏÑ Ð ÓÏÖ CUI Ô ÑÊ ÏÒÏÑ ÔÖÐÖÕÎ d ÈÍÉÇÊ ÆÒ Ö ÒÐÑÒ ÊÔÎÏÖÎ d ÉÇÍÊ

More information

MB (FRONT VIEW) (TOP VIEW) VSA VSB / RESIN VSC VSA OUTC VSB /RESIN GND GND OUTC (DIP-P-M0) (FPT-P-M0) VSC (SIP-P-M0) VSA VSB / RESIN 00 kω 0 kω + + Co

MB (FRONT VIEW) (TOP VIEW) VSA VSB / RESIN VSC VSA OUTC VSB /RESIN GND GND OUTC (DIP-P-M0) (FPT-P-M0) VSC (SIP-P-M0) VSA VSB / RESIN 00 kω 0 kω + + Co DATA SHEET DS0 00 ASSP BIPOLAR MB MB IC V (VSA =. V ±. ) (VSB =. V ±. ) (+ V ) ( = 0. V ) ( ) (ICC = 0. ma = V) DIP, SIP, SOIP, (DIP-P-M0) (SIP-P-M0) (FPT-P-M0) MB (FRONT VIEW) (TOP VIEW) VSA VSB / RESIN

More information

割り込み 今までのプログラムは 順番にそって命令を実行していくのみ それはそれで良いが 不便な場合もある 例えば 時間のかかる周辺機器を使う場合 その周辺機器が動作を終了するまで CPU は待たなければいけない 方法 1( ポーリング ) 一定時間毎に 周辺機器の動作が終了したか調べる 終了していれ

割り込み 今までのプログラムは 順番にそって命令を実行していくのみ それはそれで良いが 不便な場合もある 例えば 時間のかかる周辺機器を使う場合 その周辺機器が動作を終了するまで CPU は待たなければいけない 方法 1( ポーリング ) 一定時間毎に 周辺機器の動作が終了したか調べる 終了していれ 第 2 回 本日の内容割り込みとは タイマー 割り込み 今までのプログラムは 順番にそって命令を実行していくのみ それはそれで良いが 不便な場合もある 例えば 時間のかかる周辺機器を使う場合 その周辺機器が動作を終了するまで CPU は待たなければいけない 方法 1( ポーリング ) 一定時間毎に 周辺機器の動作が終了したか調べる 終了していれば 次の動作に移るし そうでなければ また少し待ってから同じことを繰り返す

More information

untitled

untitled 13 50 15 6.0 0.25 220 23 92 960 16 16 3.9 3.9 12.8 83.3 7 10 1150 90 1035 1981 1850 4700 4700 15 15 1150 1150 10 12 31 1.5 3.7%(224 ) 1.0 1.5 25.4%(1522 ) 0.7 30.6 1835 ) 0.7 1.0 40.3 (2421 ) 7.3

More information

untitled

untitled COPAL ELECTRONICS 32 (DP) DP INC 2 3 3 RH RL RWB 32 C S U/D INC U/D CS 2 2 DP7114 32 SOIC CMOS 2.5 V - 6.0 V / 10 kω 50 kω 100 kω TSSOP MSOP /BFR INC / U/D RH RoHS GND RWB RL CS VCC 2017 6 15 1 : R = 2

More information

untitled

untitled アナログ信号を手軽に扱うための PIC 16F785 学習テキスト PIC16F785 Learning Guide for using analog information 森下武志 マイコン開発環境の基本セットと接続方法 (Microcomputer development Basic Set & connecting) まずは これらがあれば始められます 図のように接続してください USB-

More information

2 2. : ( Wikipedia ) 2. 3. 2 2. photoelectric effect photoelectron. 2. 3. ν E = hν h ν > ν E = hν hν W = hν

2 2. : ( Wikipedia ) 2. 3. 2 2. photoelectric effect photoelectron. 2. 3. ν E = hν h ν > ν E = hν hν W = hν KEK 9,, 20 8 22 8 704 690 9 804 88 3.. 2 2. : ( Wikipedia ) 2. 3. 2 2. photoelectric effect photoelectron. 2. 3. ν E = hν h ν > ν E = hν hν W = hν 2.2. (PMT) 3 2: PMT ( / ) 2.2 (PMT) ν ) 2 2 00 000 PMT

More information

I ASCII ( ) NUL 16 DLE SP P p 1 SOH 17 DC1! 1 A Q a q STX 2 18 DC2 " 2 B R b

I ASCII ( ) NUL 16 DLE SP P p 1 SOH 17 DC1! 1 A Q a q STX 2 18 DC2  2 B R b I 4 003 4 30 1 ASCII ( ) 0 17 0 NUL 16 DLE SP 0 @ P 3 48 64 80 96 11 p 1 SOH 17 DC1! 1 A Q a 33 49 65 81 97 113 q STX 18 DC " B R b 34 50 66 8 98 114 r 3 ETX 19 DC3 # 3 C S c 35 51 67 83 99 115 s 4 EOT

More information

untitled

untitled FeliSafe for Windows Ver.2.02 11 2012 1 11 Yutaka Electric Mfg.Co.,Ltd. Windows NT / 2000 / XP / 2003 / Vista / 2008 / 7Windows 95 / 98 / 98SE / ME Microsoft Corporation FeliSafe 1. 2. 3. 4. 5. 6. ...

More information

Microsoft Word - SU1202教本(Disp)原稿.docx

Microsoft Word - SU1202教本(Disp)原稿.docx void setup(){ pinmode(9, OUTPUT); void loop(){ digitalwrite(9, HIGH); digitalwrite9,high 9 制限抵抗 A K P 型 N 型 基板 ( 土台 ) + P 型半導体 - N 型半導体 1.2 R(Ω) 1.8 20m 3V digitalwrite(13,high); digitalwrite(13,low);

More information

untitled

untitled PIC Pic MPLAB HEX Pic PIC 18CXXX 14000 17CXXX 16C92X 16F8XX 16C7XX 16C6XX 16C62X 16F8X 12C5XX 16C5X 16C55X 12C6XX d f b f k k PIC 4 2 1 2 1 SPI SPI,SSART SPI 4 5 8 1 2 SPI,USART 1 64 128 256 8 (10bit)

More information

パワーサプライ テクニカルガイド

パワーサプライ テクニカルガイド 0120-919-066 http://www.fa.omron.co.jp / 1864 1667 OAFA IC IC 2 40200kHz 12 DC OUT AC IN 1 ULCSAVDE CE 0120-919-066 http://www.fa.omron.co.jp % / 1865 / 1871 1866 1866 V.ADJ p-p 1866 1866 1867 1867 90

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション 多機能音声電圧計 仕様 2015.8.22 軽量, 小型 大音量 LiPo 電池の諸状態通知 単純な構成 遠隔通知も視野に! 放電器としても使用可能残量, 電圧を時々音声通知し,50% 程度で自動停止させる ( 予定 ). メモ : 最近の超小型ラジコンヘリへの搭載を目的とした. 特にスピーカーの選択には苦労した. 9 個のスピーカーについて実際に聞き比べ, 小型 軽量で音量の大きい物を選択した.

More information

s102t02_j

s102t02_j S0T0 S0T0 ITrmsA SIP 4pin IRED SSR iso rms3.0k I T rms.0a SIP DRM 600 DRM 400 iso rms3.0k UL508file No. E94758S0T0/ S0T0 CSA. No.4file No. LR63705 S0T0/S0T0 UL94-0 Sheet No.: D4-A050FJP-A Date Apr. 8.

More information

:30 12:00 I. I VI II. III. IV. a d V. VI

:30 12:00 I. I VI II. III. IV. a d V. VI 2018 2018 08 02 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF N N y N x N xy yx : yxxyxy N N x, y N (parse tree) (1) yxyyx (2) xyxyxy (3) yxxyxyy (4) yxxxyxxy N y N x N yx

More information

* 2

* 2 * 2 3 H2400 2 2 3 4 5 5 (at +25 ) H2400-00-0 H2400-0-0 H2400-20-0 420 3(X) (Y) 2-50 26 5 50 80 200 8.0 0.2 80 62 30 5 60 70.6 5 2. 4 0.3 3.2 8.0.3 2 6 3.5 5 +5 +50-20 +50 630 nm mm µa µa 300 µa/lm 400

More information

1 1 2 2 2.1 Java......... 2 2.2................................. 3 2.3.................................. 3 3 4 3.1....................................

1 1 2 2 2.1 Java......... 2 2.2................................. 3 2.3.................................. 3 3 4 3.1.................................... 06H082 1 1 2 2 2.1 Java......... 2 2.2................................. 3 2.3.................................. 3 3 4 3.1..................................... 4 3.2 GP.....................................

More information

uPC2711TB,uPC2712TB DS

uPC2711TB,uPC2712TB  DS 5 VIC Bipolar Analog Integrated Circuits µpc2711tb, µpc2712tbbsic 20122915 µpc2711tb, µpc2712tb µpc2711t, µpc2712t NESAT TM ft = 20 GHz IC fu = 2.9 GHz TYP.µPC2711TB fu = 2.6 GHz TYP.µPC2712TB GP = 13

More information

uPC2745TB,uPC2746TB DS

uPC2745TB,uPC2746TB DS Bipolar Analog Integrated Circuits 3 V IC µpc275tb, µpc27tb IC3 V V NESAT ft = 2 GHz IC VCC = 2.73.3 V VCC = 3.3 V µpc275tbfu = 2.7 GHz TYP. @3 db µpc27tbfu = 1.5 GHz TYP. @3 db µpc275tbisl = 38 db TYP.

More information

2

2 Haskell ( ) kazu@iij.ad.jp 1 2 Blub Paul Graham http://practical-scheme.net/trans/beating-the-averages-j.html Blub Blub Blub Blub 3 Haskell Sebastian Sylvan http://www.haskell.org/haskellwiki/why_haskell_matters...

More information

前回の内容 マイクロコンピュータにおけるプログラミング PC上で作成 コンパイル マイコンに転送 実行 プログラムを用いて外部の装置を動作させる LED turnonled turnoffled LCD printf プログラムを用いて外部の装置の状態を読み取る プッシュスイッチ getpushsw

前回の内容 マイクロコンピュータにおけるプログラミング PC上で作成 コンパイル マイコンに転送 実行 プログラムを用いて外部の装置を動作させる LED turnonled turnoffled LCD printf プログラムを用いて外部の装置の状態を読み取る プッシュスイッチ getpushsw ものづくり基礎工学 情報工学分野 前回の内容 マイクロコンピュータにおけるプログラミング PC上で作成 コンパイル マイコンに転送 実行 プログラムを用いて外部の装置を動作させる LED turnonled turnoffled LCD printf プログラムを用いて外部の装置の状態を読み取る プッシュスイッチ getpushsw ディップスイッチ getdipsw スイッチの状態によって関数の戻り値が変わる

More information

Microsoft Word - SU1204教本(Driver)原稿.docx

Microsoft Word - SU1204教本(Driver)原稿.docx void setup(){ pinmode(13, OUTPUT); //13 void loop(){ digitalwrite(13, HIGH); //13 HIGH delay(500); digitalwrite(13, LOW); //13 LOW delay(500); setup pinmode loop delay C M B void setup(){ pinmode(12,output);

More information

81 /******************************************************************************/ 82 /* スレーブアドレスの設定 */ 83 /*****************************************

81 /******************************************************************************/ 82 /* スレーブアドレスの設定 */ 83 /***************************************** 1 /******************************************************************************/ 2 /* IIC(Inter IC Bus) の制御 */ 3 /******************************************************************************/ 4 /*

More information

Microsoft PowerPoint - 説明3_if文switch文(C_guide3)【2015新教材対応確認済み】.pptx

Microsoft PowerPoint - 説明3_if文switch文(C_guide3)【2015新教材対応確認済み】.pptx 情報ネットワーク導入ユニット Ⅰ C 言語 if 文 switch 文 3 章 : プログラムの流れの分岐 if 文 if( 条件 ) 条件が成立すれば実行 if( 条件 ) ~ else 場合分け ( 成立, 不成立 ) if( 条件 A) ~ else if( 条件 B) ~ else if( 条件 C) ~ else 場合分け ( 複数の条件での場合分け ) 等価演算子 : == ( 等しい

More information

Mobile Base Station RTR-500MBS-A / Web Storage - RTR-500MBS LED / Copyright T&D Corporation. All rights reserved. 2017. 07 16504810016 8 -------------------------------------- 3 -----------------------------------------------

More information

uPC2745TB,uPC2746TB DS

uPC2745TB,uPC2746TB DS Bipolar Analog Integrated Circuits 3 VIC µpc2745tb, µpc2746tb IC3 V1.8 V NESAT TM ft = 20 GHz IC VCC = 2.73.3 V VCC = 1.83.3 V µpc2745tbfu = 2.7 GHz TYP. @3 db µpc2746tbfu = 1.5 GHz TYP. @3 db µpc2745tbisl

More information

-1-1 1 1 1 1 12 31 2 2 3 4

-1-1 1 1 1 1 12 31 2 2 3 4 2007 -1-1 1 1 1 1 12 31 2 2 3 4 -2-5 6 CPU 3 Windows98 1 -3-2. 3. -4-4 2 5 1 1 1 -5- 50000 50000 50000 50000 50000 50000 50000 50000 50000 50000-6- -7-1 Windows 2 -8-1 2 3 4 - - 100,000 200,000 500,000

More information

2008 DS T050049

2008 DS T050049 DS T050049. PSP DS DS DS RPG DS OS Windows XP DevkiPro OS DS CPU ARM devkitarm MSYS MinGW MSYS MinGW Unix OS C++ C++ make nds nds DS DS micro SD Card nds DS DS DS nds C Java C++ nds nds DS 2008 DS T050049

More information

ワードプロセッシングについて

ワードプロセッシングについて Word Word ONOFF (U)(P) ******** 1 OS Windows2000 Windows2000 (U) OK 2 Windows 3 Word 1) 2) (F)(O) A() FD(A) Word 4 1) / > < *.? " : ; 2) SAMPLE2 A SAMPLE2 5 .doc 6 Alt f6f9 7 + 8 ) 2) 9 1) 2) 1) 10 2)

More information

R3111x NO.JA R3111x CMOS IC IC Nch CMOS 2 Rx5VL TO-92 SOT-89 SOT-23-3 SOT-23-5 SC-82AB SON TYP. 0.8µA (VDD=1.5V) 0.7V 10.0V (Topt=2

R3111x NO.JA R3111x CMOS IC IC Nch CMOS 2 Rx5VL TO-92 SOT-89 SOT-23-3 SOT-23-5 SC-82AB SON TYP. 0.8µA (VDD=1.5V) 0.7V 10.0V (Topt=2 NO.JA-71-6112 CMOS IC IC Nch CMOS 2 Rx5VL TO-92 SOT-89 SOT-23-3 SOT-23-5 SC-82AB SON1612-6 6 TYP..8µA (=1.5V).7V 1.V ().9V 6.V.1V ±2.% TYP. ±1ppm/ C Nch CMOS 2 6 TO-92 SOT-89 SOT-23-3 SOT-23-5 SC-82AB

More information

1 1 TA, ,9 1. ( 2. TM TM GUI TM 1. P7-13 TM Notepad, Meadow, ( P109 ). 2. (shisaku01/sys test)

1 1 TA, ,9 1. (  2. TM TM GUI TM 1. P7-13 TM Notepad, Meadow, ( P109 ). 2. (shisaku01/sys test) 1 1 TA, 20 10 6,9 1. (http://www.cyb.mei.titech.ac.jp/2008ss2/main.htm) 2. TM TM GUI TM 1. P7-13 TM Notepad, Meadow, ( P109 ). 2. (shisaku01/sys test) H src c startup ncrt0 ss2.a30 sect30 ss2.inc 1 1 /

More information

HA1631S01/02/03/04シリーズ データシート

HA1631S01/02/03/04シリーズ データシート H1631S1/2/3/4 CMOS (/ ) R3DS85JJ5 Rev.5. 215.7.1 H1631S1/2/3/4 CMOS IC 1.8V H1631S1/2 H1631S3/4 CMPK-5 SOP-8 1/8 H1631S1/3 : I DDtyp = 5μ () H1631S2/4 : I DDtyp = 5μ () : V DD = 1.8 5.5V : V IOmax = 5mV

More information

PS2701-1, PS2701-2, PS DS

PS2701-1, PS2701-2, PS DS Photocoupler SOP NEPOC PS2701-1, PS2701-2, PS2701-4 GaAs LED IC BV = 3 7 Vr.m.s. SOP tr = 3 µs TYP., tf = 5 µs TYP. 1 PS2701-1-E3, E4, F3, F4 UL No. E72422 (S) VDE0884 IC PS2701-1 4 SOP PS2701-2 8 SOP

More information

-34-

-34- -33- -34- ! -35- ! -36- ! -37- -38- -39- -40- -41- -42- -43- -44- -45- -46- -47- -48- -49- -50- ! -51- -52- !! -53- -54- ! -55- -56- -57- !!!!! "" "!!! " "" " -58- -59- !!! -60- -61- -62- -63- ! -64- !

More information

2 2 ( M2) ( )

2 2 ( M2) ( ) 2 2 ( M2) ( ) 2007 3 3 1 2 P. Gaudry and R. Harley, 2000 Schoof 63bit 2 8 P. Gaudry and É. Schost, 2004 80bit 1 / 2 16 2 10 2 p: F p 2 C : Y 2 =F (X), F F p [X] : monic, deg F = 5, J C (F p ) F F p p Frobenius

More information

DS04-21361-4

DS04-21361-4 Cypress () FUJITSU SEMICONDUCTOR DATA SHEET DS4 236 4 ASSPDTS Bi-CMOS PLL (. GHz PLL) MB5F7SL MB5F7SL,, MHz 2 PLL (Phase Locked Loop) LSI Bi CMOS, 5 ma (VCC 2.7 V), VCC 2.4 V,.5 ma, 6 ma 2, MB5F7SL,, MHz

More information

GR-SAKURA-SAのサンプルソフト説明

GR-SAKURA-SAのサンプルソフト説明 フルカラーシリアル LED テープ (1m) を GR-KURUMI で使ってみる 2014/2/25 がじぇっとるねさす鈴木 Rev. 1.00 フルカラーシリアル LED の特徴 http://www.switch-science.com/catalog/1399/ 3570 円 1m で 60 個の LED がついている 電源と信号線 1 本で制御する x 24 この信号を 24 個送信して

More information

AKI-PIC16F877A開発キット (Ver1

AKI-PIC16F877A開発キット (Ver1 STM32F101C8T6 STM32F103CxT6 マイコンキット仕様書 (Ver2012.05.11) この文書の情報は事前の通知なく変更されることがあります 本開発キットを使用したことによる 損害 損失については一切の責任を負いかねます 製造上の不良がございましたら 良品とお取替えいたします それ以外の責についてご容赦ください 変更履歴 Version Ver2012.05.08 新規 Ver2012.05.11

More information

CDR1000_J

CDR1000_J PROFESSIONAL AUDIO CD ORDER PROFESSIONAL AUDIO CD ORDER OPEN/ CLOSE PEAK HOLD TIME DISPLAY INPUT SELECT UTILITY LEVEL POWER MUTE UV22 REPEAT A-B SYNC AUTO INDEX INC TRACK INC 0 10 L R PHONES LEVEL ON /

More information

C による数値計算法入門 ( 第 2 版 ) 新装版 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 新装版 1 刷発行時のものです.

C による数値計算法入門 ( 第 2 版 ) 新装版 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます.  このサンプルページの内容は, 新装版 1 刷発行時のものです. C による数値計算法入門 ( 第 2 版 ) 新装版 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. http://www.morikita.co.jp/books/mid/009383 このサンプルページの内容は, 新装版 1 刷発行時のものです. i 2 22 2 13 ( ) 2 (1) ANSI (2) 2 (3) Web http://www.morikita.co.jp/books/mid/009383

More information

Untitled

Untitled AtTiny85 (TS119-5 ) ------------------------------------------ Ver-1.0 23.Aug.2016 S.S 9 5 CPU EE-PROM TS119-5(7 +α ) #include #define KEYIN 2 #define BUZZER 3 #define LED 5 #define stsound1

More information

untitled

untitled 慣性運動計測機器 クロ ス ボ ー株 式 会 社 Crossbow Japan Ltd. MEMS 3 1 X Y Z 3 RS-232 Windows Gyro-View Nav-View GPS NAV420 3 AHRS400 VG400 6 IMU400 (AHRS) TEL: 06-6489-5922 FAX: 06-6489-5910 E-MAIL: sales@xbow.jp WEB:

More information

£Ã¥×¥í¥°¥é¥ß¥ó¥°(2018) - Âè11²ó – ½ÉÂꣲ¤Î²òÀ⡤±é½¬£² –

£Ã¥×¥í¥°¥é¥ß¥ó¥°(2018) - Âè11²ó – ½ÉÂꣲ¤Î²òÀ⡤±é½¬£² – (2018) 11 2018 12 13 2 g v dv x dt = bv x, dv y dt = g bv y (1) b v 0 θ x(t) = v 0 cos θ ( 1 e bt) (2) b y(t) = 1 ( v 0 sin θ + g ) ( 1 e bt) g b b b t (3) 11 ( ) p14 2 1 y 4 t m y > 0 y < 0 t m1 h = 0001

More information

CashDrawer ライブラリ API 仕様書 2014/07/09 CashDrawer ライブラリ API 仕様書 Rev / 10

CashDrawer ライブラリ API 仕様書 2014/07/09 CashDrawer ライブラリ API 仕様書 Rev / 10 2014/07/09 CashDrawer ライブラリ API 仕様書 Rev. 00.0.04 1 / 10 目次 1. ファイル構成... 3 2. 環境 3 2.1. 動作環境 OS... 3 2.2. コンパイル時の注意点... 3 2.3. USB ドライバ... 3 3. 関数一覧... 4 3.1. USB 接続確認処理 (CD_checkConnect CD_checkConnect)

More information