สมาชิกในกลุ่ม
ชื่อนายนครินทร์ ศรีน้อย ชั้น ม.6/1 เลขที่ 3
ชื่อนายปรีดา ประชานอก ชั้น ม.6/1 เลขที่ 4
ชื่อนายภูวดล โลนันทา ชั้น ม.6/1 เลขที่ 6
ชื่อนายวีระภาพ มูลเคน ชั้น ม.6/1 เลขที่ 7
ชื่อนายอนุรัตน์ แทนลา ชั้น ม.6/1 เลขที่ 9
ชื่อนายอภิษฎา ใขโพธิ์ ชั้น ม.6/1 เลขที่ 10
วัตถุประสงค์โครงงาน
เพื่ออำนวยความสดวกในชีวิตประจำวัน
ประหยัดเวลาในชีวิตประจำวัน
แนวคิดจาก ทางบ้านของผู้จัดมีอากาสร้อน เนื่องจากพัดลมทางบ้านต้องใช้มือในการเปิด-ปิดหรือปรับความแรงของพัดลม เราจึงได้คิดค้นพัดลมที่สามารถเปิด-ปิดด้วยโทรศัพท์
เพื่ออำนวยความสะดวกในการใช้
อ้างอิงมาจาก
วัสดุอปกรณ์
พัดลม ราคา150บาท
ตะกั่ว ราคา 20 บาท
สายไฟ ราคา 50 บาท
เทปกาว ราคา 5บาท
แผ่งวงจร ราคา 150บาท
สายจั้มเปอร์ ราคา 30 บาท
ขั้นตอนการทำงาน
นำพัดลมมาเสียบปลั๊ก
กดตรงปุ่มที่อยู่ฐานพัดลม
กดความเเรงตามที่ต้องการ มี 0 ปิด 1 2 3 เปิด ความแแรงตามลำดับ
CODE โปรแกรม
/*************************************************************
This sketch shows how to read values from Virtual Pins
App dashboard setup:
Slider widget (0...100) on Virtual Pin V1
*************************************************************/
/* Fill-in information from Blynk Device Info here */
#define BLYNK_TEMPLATE_ID "TMPL6heDwrTWE"
#define BLYNK_TEMPLATE_NAME "Fan"
#define BLYNK_AUTH_TOKEN "8bPIC3_ERZc-GJbLk69NkN3R9JH3_Fqk"
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Poo";
char pass[] = "77777777";
// This function will be called every time Slider Widget
// in Blynk app writes values to the Virtual Pin V1
BLYNK_WRITE(V0)
{
int pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable
digitalWrite(D0,pinValue);
// process received value
}
BLYNK_WRITE(V1)
{
int pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable
digitalWrite(D1,pinValue);
// process received value
}
BLYNK_WRITE(V2)
{
int pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable
digitalWrite(D2,pinValue);
// process received value
}
BLYNK_WRITE(V3)
{
int pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable
digitalWrite(D3,pinValue);
// process received value
}
void setup()
{
// Debug console
Serial.begin(115200);
pinMode(D0,OUTPUT);
pinMode(D1,OUTPUT);
pinMode(D2,OUTPUT);
pinMode(D3,OUTPUT);
Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
// You can also specify server:
//Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, "blynk.cloud", 80);
//Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, IPAddress(192,168,1,100), 8080);
}
void loop()
{
Blynk.run();
}
ภาพประกอบการทำงาน
https://youtu.be/viL10YGCPaw?feature=shared
แก้ไข
ผลการดำเนินงาน
ชิ้นงานสำเร็จแล้วแต่ปัญหาที่เกิดขึ้นคือระยะเวลาการทำที่ตั้งไว้ไม่เป็นไปตามกำหนดแต่ชิ้นงานสามารถใช้งานได้จริง