This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//#include <WiFi.h> //กรณีที่ใช้ ESP32 ให้เอา // ออกและเติท // นำหน้า #include <ESP8266WiFi.h> | |
#include <ESP8266WiFi.h> | |
#include <NTPClient.h> | |
#include <WiFiUdp.h> | |
// ใส่ชื่อ WiFi และรหัสผ่านของคุณ | |
const char* ssid = "abinth"; | |
const char* password = "YOUR_WIFI_PASSWORD"; | |
// พอร์ตสำหรับ NTP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Library : https://github.com/blynkkk/blynk-library/releases/tag/v1.1.0 | |
*/ | |
#include <Servo.h> | |
Servo myservo; | |
#define BLYNK_PRINT Serial | |
#include <ESP8266WiFi.h> | |
#include <BlynkSimpleEsp8266.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define BLYNK_TEMPLATE_ID "TMPL6NL_FaPcJ" | |
#define BLYNK_TEMPLATE_NAME "firealert" | |
#define BLYNK_PRINT Serial | |
#include <WiFi.h> | |
#include <WiFiClient.h> | |
#include <BlynkSimpleEsp32.h> | |
#define FLAME_DO_PIN1 13 // ขา GPIO13 ของ ESP32 เชื่อมต่อกับขา DO ของเซนเซอร์เปลวไฟตัวที่ 1 | |
#define FLAME_DO_PIN2 25 // ขา GPIO25 ของ ESP32 เชื่อมต่อกับขา DO ของเซนเซอร์เปลวไฟตัวที่ 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <LiquidCrystal_I2C.h> | |
LiquidCrystal_I2C lcd(0x27, 16, 2); //Module IIC/I2C Interface บางรุ่นอาจจะใช้ 0x3f | |
const int SensorPin = D6; // Pin ต่อ Sensor | |
const int ledPin = D4; // Pin LED แสดงการทำงาน | |
int person = 0; //ประกาศตัวแปร person | |
int State = 0; // สถานะของ Sensor | |
void setup() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Test ความเร็วของ MCU Arduino | |
https://www.ab.in.th/b/51 | |
*/ | |
#include <stdint.h> | |
void setup() { | |
pinMode(13, OUTPUT); | |
Serial.begin(9600); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Mini Project Arduino Nodemcu แจ้งเตือนฝนตกผ่าน Line | |
https://www.ab.in.th/b/100 | |
อุปกรณ์ประกอบด้วย | |
- บอร์ด Arduino Nodemcu 8266 V2 | |
- เซนเซอร์น้ำฝน | |
- สายจัมพ์ เมีย-เมีย | |
- shield (สินค้าทางร้าน) | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
#include <WiFiClientSecure.h> | |
const int SensorPin = D2; | |
int SensorState = 0; | |
const char* ssid = "User Wifi"; | |
const char* password = "Pass Wifi"; | |
// LINE Bot Token |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Servo.h> | |
#include <LiquidCrystal_I2C.h> | |
LiquidCrystal_I2C lcd(0x27, 16, 2); //Module IIC/I2C Interface บางรุ่นอาจจะใช้ 0x3f | |
Servo myservo; | |
int pos = 0; | |
int steel = 0; | |
int plastic = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Project Arduino PH Meter | |
https://www.ab.in.th/b/85 | |
*/ | |
#include <LiquidCrystal_I2C.h> | |
LiquidCrystal_I2C lcd(0x27, 16, 2); | |
float calibration_value = 21.34; | |
int phval = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <LiquidCrystal_I2C.h> | |
#include <TridentTD_LineNotify.h> | |
LiquidCrystal_I2C lcd(0x27, 16, 2); //Module IIC/I2C Interface บางรุ่นอาจจะใช้ 0x3f | |
#define SSID "SPMaker" | |
#define PASSWORD "tv357911itv" | |
#define LINE_TOKEN "IGewmo0HYifmm0wlgwuUNeEiqfKPTws9ueDxwZtithI" | |
int measurePin = A0; |
NewerOlder