วันอาทิตย์ที่ 16 กันยายน พ.ศ. 2561

ARDUINO ETHERNET CAMERA

Step 1: Prepare Meterials

Picture of Prepare Meterials
Picture of Prepare Meterials
We need a several meterials.
1. Arduino Uno
2. Arduino Ethernet Shield
3. Serial Camera

Step 2: Hardware Connection

Picture of Hardware Connection
Picture of Hardware Connection
Hardware connection is very easy.
Just follow picture.
Picture shows us all of we have to connect.

Step 3: Prepare for Software : Library

We need download few libraries for this project
You can download libraries in 
Adafruit_VC0706.h (for TTL Camera)
SdFat.h (for SD card)
SdFatUtil.h (for SD card
Ethernet.h (for Ethernet shield , default installed in Sketch)
SoftwareSerial.h(for TTL Camera)
If you downloaded them, you are ready for run this project.

Step 4: Software : Sketch Code

Picture of Software : Sketch Code
Here is a sketch code we need to run this project.
Please download attached sketch file (ethernet_camera.ino)
There are little to know about this code.
1. You have to modify mac[] and ip[] as your arduino's information.
2. To see jpg file on browser, we have to give a command to translate to jpg format as below four line.
client.println("HTTP/1.1 200OK");
client.println("Content-Type: image/jpeg");
client.println();
client.print((char)c);
Most of all, you can study about image file, serial communication, sd card file write/read, ethernet with this sketch code.

Step 5: How to Run & Test Result

Picture of How to Run & Test Result

1. To take a picture
Just type http:/xxx.xxx.xxx.xxx:5555/ttt on any internet browser.
2. To See a taken picture
Just type http:/xxx.xxx.xxx.xxx:5555/image.jpgon any internet browser.
3. To remove a tacke picture
Just type http:/xxx.xxx.xxx.xxx:5555/rrr on any internet browser.
The Picture shows the result of test.
Thank you and enjoy it.

ไม่มีความคิดเห็น:

แสดงความคิดเห็น

Internet of Things (IoT)

Internet of Things หรือ IoT  Internet of Things (IoT)  คือ การที่อุปกรณ์อิเล็กทรอนิกส์ต่างๆ สามารถเชื่อมโยงหรือส่งข้อมูลถึงกันได้ด้วยอิ...