Download presentation
Presentation is loading. Please wait.
Published byJulie Sullivan Modified over 8 years ago
1
Capstone Design Middle Evaluation Rover 201103134 Song Kee Hong 201103139 Jo Kyeong Jin
2
Contents - Parts Introduction - Design - Programming Coding (IR Distance sensor) (DC Motor) (Servo-motor) (Temperature and humidity sensor) (Multi-tasking) - Problems faced - Better way to go - Work demonstrated
3
Parts Introduction Arduino robot kit fuse IR Distance sensor SPL-Duino Temperature, humidity sensor
4
Parts Introduction DRC-WIFI V1.0 (Duplex Radio Camera) HXT900 Micro Servo Total approximately 500,000won HXT900 Micro Servo
5
Design
6
Programming Coding -IR Distance sensor #include void loop(); void setup() { } void loop() d1 = Sensor1Read() d2 = Sensor2Read() if (d1 > 000) { } else if (d2 > 000) { } else
7
procedure loop a = SerialRead() if (a == 1) DriveWrite(-200, -200) //forward else if (a == 2) DriveWrite(150, -150) //left else if (a == 3) DriveWrite(0, 0) //stop else if (a == 4) DriveWrite(-150, 150) //right else if (a == 5) DriveWrite(150, 150) //back Delay(100) end Programming Coding - DC Motor Bluetooth
8
Programming Coding -IR Distance sensor + DC Motor procedure loop d1 = Sensor1Read() d2 = Sensor2Read() if (d1 > 300) { DriveWrite(200, 200) Delay(1000) DriveWrite(100, -100) Delay(1000) DriveWrite(-200, -200) } else if (d2 > 300) { DriveWrite(200, 200) Delay(1000) DriveWrite(-100, 100) Delay(1000) DriveWrite(-200, -200) } else DriveWrite(-200, -200) end
9
#include void loop(); void setup() { pinMode(4, OUTPUT); pinMode(7, OUTPUT); } void loop() { int d1 = analogRead(0); int d2 = analogRead(1); if (d1 > 300) { DriveWrite(200, 200); delay(1000); DriveWrite(100, -100); delay(1000); DriveWrite(-200, -200); } else if (d2 > 300) { DriveWrite(200, 200); delay(1000); DriveWrite(-100, 100); delay(1000); DriveWrite(-200, -200); } else DriveWrite(-200, -200); } Programming Coding -IR Distance sensor + DC Motor Sketch code
10
Programming Coding - Temperature and humidity sensor procedure loop TempRead(2) Print("Temp: ") PrintLine(Temperature) Print("Humidity: ") PrintLine(Humidity) Delay(1000) end
11
Programming Coding - Servo-motor procedure loop ServoWrite(4, 90) Delay(1000) ServoWrite(4, 45) Delay(1000) ServoWrite(4, 10) Delay(1000) ServoWrite(4, 45) Delay(1000) ServoWrite(4, 90) Delay(1000) ServoWrite(4, 135) Delay(1000) ServoWrite(4, 170) Delay(1000) ServoWrite(4, 135) Delay(1000) end procedure loop ServoWrite(3, 180) Delay(1000) ServoWrite(3, 160) Delay(1000) ServoWrite(3, 140) Delay(1000) ServoWrite(3, 120) Delay(1000) ServoWrite(3, 100) Delay(1000) end right left
12
procedure loop a = SerialRead() d1 = AnalogRead(0) d2 = AnalogRead(1) if (d1 > 500) { DriveWrite(200, 200) Delay(1000) DriveWrite(150, -150) Delay(700) DriveWrite(0, 0) } else if (d2 > 600) { DriveWrite(200, 200) Delay(1000) DriveWrite(-150, 150) Delay(700) DriveWrite(0, 0) } else if (a == 1) DriveWrite(-200, -200) else if (a == 2) DriveWrite(150, -150) else if (a == 3) DriveWrite(0, 0) else if (a == 4) DriveWrite(-150, 150) else if (a == 5) DriveWrite(150, 150) else if (a == 6) { TempRead(13) Print("Temp: ") PrintLine(Temperature) Print("Humidity: ") PrintLine(Humidity) Delay(1000) } Programming Coding - Multi-tasking
13
else if (a == 11) { ServoWrite(12, 90) Delay(1000) ServoWrite(12, 45) Delay(1000) ServoWrite(12, 10) Delay(1000) ServoWrite(12, 45) Delay(1000) ServoWrite(12, 90) Delay(1000) ServoWrite(12, 135) Delay(1000) ServoWrite(12, 170) Delay(1000) ServoWrite(12, 135) Delay(1000) ServoWrite(12, 90) Delay(1000) } else if (a == 8) { ServoWrite(11, 180) Delay(1000) ServoWrite(11, 160) Delay(1000) ServoWrite(11, 140) Delay(1000) ServoWrite(11, 120) Delay(1000) ServoWrite(11, 100) Delay(1000) ServoWrite(11, 180) Delay(1000) } end Programming Coding - Multi-tasking
14
Problems faced - Motor Trouble - Multi-tasking
15
Better way to go - Transmitted through the screen, Wi-Fi cam - Motion detection - Wi-Fi cam, Power Problem - Redevelopment program - Design complements
16
Work demonstrated
17
Thank you!! Q&A
18
DRC-WIFI V1.0 온도센서 서보모터 팬 / 틸트 IR Distance sensor 아두이노 로봇융합 키트 & 모터 SPL-Duino All-In-One
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.