# SENSES IoT Platform

Senses IoT platform เป็น platform สำหรับใช้รับค่าจากอุปกรณ์ IoT มาแสดงผลแบบ real-time บน&#x20;

dashboard สามารถเข้าไป signup และใช้งานได้ที่เว็บไซต์  <https://www.sensesiot.com/>

![หน้าเว็บไซต์  senses IoT](https://paper-attachments.dropbox.com/s_2990F93D63431511BCFD8DE42E74EF440A1123ABA720A8E3F3F6DE20DA122D33_1602743328736_image.png)

### วิธีการสมัคร Senses IoT&#x20;

* สามารถสมัครเพื่อเข้าใช้งาน senses IoT ได้ดูได้ตามลิ้งนี้ คลื๊ก  [signup](https://medium.com/@sittikorn_26390/senses-senses-iot-platform-%E0%B8%95%E0%B8%AD%E0%B8%99%E0%B8%97%E0%B8%B5%E0%B9%88-2-signup-ac88bce1b76e)&#x20;

### วิธีสร้าง Dashboard

1. ทำการ Login เข้า senses IoT&#x20;
2. คลิ๊ก My IoT garage บนหน้าเว็บ Dashboard

![](https://paper-attachments.dropbox.com/s_2990F93D63431511BCFD8DE42E74EF440A1123ABA720A8E3F3F6DE20DA122D33_1602746188752_image.png)

1. ไปที่ Register device&#x20;
2. กำหนดชื่อ Device name&#x20;
3. กำหนดชื่อ IoT model&#x20;
4. กด Register device&#x20;

![](https://paper-attachments.dropbox.com/s_2990F93D63431511BCFD8DE42E74EF440A1123ABA720A8E3F3F6DE20DA122D33_1602746826161_image.png)

&#x20; 5\. หลังจาก Register device เรียบร้อยด้านซ้ายมือจะปรากฎ ข้อมูลที่ได้ลงทะเบียนไว้ ซึ่งจะได้ค่า Keys สำหรับนำไปใช้งานต่อไป

![](https://paper-attachments.dropbox.com/s_2990F93D63431511BCFD8DE42E74EF440A1123ABA720A8E3F3F6DE20DA122D33_1602747562249_image.png)

&#x20; 6\. หลังจากลงทะเบียน device แล้วให้คลิ๊กที่ Dashboard >>คลิ๊ก Create Dashboard&#x20;

![](https://paper-attachments.dropbox.com/s_2990F93D63431511BCFD8DE42E74EF440A1123ABA720A8E3F3F6DE20DA122D33_1602748052720_image.png)

&#x20; 7\. ตั้งชื่อ Dashboard (ชื่ออะไรก็ได้)  >>กด Save

![](https://paper-attachments.dropbox.com/s_2990F93D63431511BCFD8DE42E74EF440A1123ABA720A8E3F3F6DE20DA122D33_1602749408411_image.png)

&#x20; 8\. คลิ๊ก Edit Dashboard จะเข้าสู่หน้าต่างสำหรับการสร้าง Dashboard สำหรับ Senses IoT platform มี widget ที่สามารถเลือกใช้ในการแสดงค่าข้อมูลจากอุปกรณ์ IoT ตามภาพด้านล่าง &#x20;

![](https://paper-attachments.dropbox.com/s_43AF8F6429B4193D2E840DD2CCE371F8F897F74981DE6A2CB84E6BB381274920_1602820002543_image.png)

### ตัวอย่าง สร้าง widget Control บน dashboard&#x20;

1. เลือก widget Control >> คลิ๊ก SETTING ที่อยู่บน widget Control จะมีหน้า widget setting แสดง

![](https://paper-attachments.dropbox.com/s_2990F93D63431511BCFD8DE42E74EF440A1123ABA720A8E3F3F6DE20DA122D33_1602750252148_image.png)

2\. ตั้งชื่อ Controller name (ชื่ออะไรก็ได้) >> ตั้งค่า Control port number ในที่นี้ใช้ค่า default คือ 1 >> กด save

![](https://paper-attachments.dropbox.com/s_2990F93D63431511BCFD8DE42E74EF440A1123ABA720A8E3F3F6DE20DA122D33_1602751038992_image.png)

3.ที่หน้า Dashboard กด save edited Dashboard

![](https://paper-attachments.dropbox.com/s_2990F93D63431511BCFD8DE42E74EF440A1123ABA720A8E3F3F6DE20DA122D33_1602751160809_image.png)

4\. กด F5 จะได้หน้าต่าง Dashboard ที่เราสร้างเตรียมไว้

![](https://paper-attachments.dropbox.com/s_2990F93D63431511BCFD8DE42E74EF440A1123ABA720A8E3F3F6DE20DA122D33_1602751604094_image.png)

### การเขียนโปรแกรม Arduino IDE กำหนดค่าการเชื่อมต่อระหว่าง อุปกรณ์ IoT กับ dashboard

1. การกำหนดค่าตัวแปร สำหรับให้ board เชื่อมต่ออินเตอร์เน็ตและdashborad&#x20;

```
const char *ssid  = "...";   //  your network SSID      
const char *pass = "...";    //your network password  
const char *userid = "..." ;  // channel ID number of your Dashboard
const char * key = "..."; // Paste your Write Key of Dashboard 
```

\
บรรทัดที่1 ตัวแปรชื่อว่า ssid คือ ชื่อของ wifi ที่บอร์ดต้องการเชื่อมต่อ

บรรทัดที่2 ตัวแปรชื่อว่า pass คือ รหัสผ่านของ wifi ที่บอร์ดต้องการเชื่อมต่อ

บรรทัดที่3 ตัวแปรชื่อว่า userid คือ เลข id ของ Dashboard ที่เราสร้างขึ้นสามารถดูได้จาก กดที่ชื่อ email ของเราที่อยู่บนหน้า Dashboard&#x20;

บรรทัดที่4 ตัวแปรชื่อว่า key คือ รหัสที่ dashboard สร้างให้ต่อที่เราได้ทำการลงทะเบียน (register device) สามารถดูได้จาก คลิ๊กที่ My IoT garage

![ตัวอย่างการเข้าถึงหน้า user info](https://paper-attachments.dropbox.com/s_2990F93D63431511BCFD8DE42E74EF440A1123ABA720A8E3F3F6DE20DA122D33_1602832031197_image.png)

![ตัวอย่างเลข ID ที่นำไปกำหนดค่า userid ใน code](https://paper-attachments.dropbox.com/s_2990F93D63431511BCFD8DE42E74EF440A1123ABA720A8E3F3F6DE20DA122D33_1602832230863_image.png)

![ตัวย่างเลข key ที่นำไปกำหนดค่า  key ใน code](https://paper-attachments.dropbox.com/s_2990F93D63431511BCFD8DE42E74EF440A1123ABA720A8E3F3F6DE20DA122D33_1602832573166_image.png)

Update: 2022

Author: Soontree Jaikhong (AIC-Researcher)

Author: Thanaluk Pranekunakol (AIC-Researcher)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aic-eec.com/general/microcontroller-for-iot-1/microcontroller-for-iot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
