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 <Arduino.h> | |
| #include <Wire.h> | |
| #include <LiquidCrystal_PCF8574.h> | |
| #include <WiFi.h> | |
| #include <NTPClient.h> // Library : NTPClient by Fabrice Weinberg | |
| #include <WiFiUdp.h> | |
| #include <TimeLib.h> // Library : Time by Michael Margolis | |
| #define WIFI_SSID "<SSID>" // change WIFI SSID | |
| #define WIFI_PASSWORD "<PASS>" // change WIFI PASSWORD |
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
| function doGet(e) { | |
| var timestamp = e.parameter.timestamp; | |
| var uid = e.parameter.uid; | |
| var status = e.parameter.status; | |
| var GSCRIPT_ID = "<ENTER GSCRIPT_ID>"; | |
| var urls="https://docs.google.com/spreadsheets/d/"+GSCRIPT_ID+"/edit?gid=0#gid=0"; | |
| var ss=SpreadsheetApp.openByUrl(urls); | |
| var ws=ss.getSheetByName("Sheet1"); | |
| ws.appendRow([timestamp, uid, status]); | |
| return "Done" |
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
| /** | |
| * ModuleMore Co., Ltd. | |
| * @date 2024-12-03 | |
| * | |
| * Wiring | |
| * | MAX31855 | ESP32 | | |
| * |----------|-------| | |
| * | Vin | 3.3V | | |
| * | Gnd | Gnd | | |
| * | SCK | 26 | |
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
| /* | |
| * DRV8871 Motor Control with Arduino UNO | |
| * | |
| * Wiring: | |
| * Arduino UNO DRV8871 | |
| * ----------------------------------- | |
| * D5 IN1 | |
| * D6 IN2 | |
| * GND GND | |
| * VIN VM (Motor Power Supply) |
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
| /* -------------------------------------------------------------------------- */ | |
| /* ModuleMore AM2306 (Modbus) Example code */ | |
| /* -------------------------------------------------------------------------- */ | |
| /* ------------------------------- วิธีการต่อ ------------------------------- */ | |
| /** | |
| * ESP32 ---> MAX485 ---> AM2306 | |
| * 3.3V VCC | |
| * 5V RED | |
| * GND GND BLACK |
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
| gps neo8n ublox esp32 | |
| ESP32 + NEO8N with ublox protocal | |
| wiring | |
| ESP32 Ublox Neo M8N |
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
| /** | |
| * @brief esp8266 Module4-x test purpose | |
| * | |
| */ | |
| #include <Arduino.h> | |
| #include <ESP8266WiFiMulti.h> | |
| ESP8266WiFiMulti wifiMulti; | |
| #define DEVICE "ESP8266" |
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
| /* -------------------------------------------------------------------------- */ | |
| /* ModuleMore AM2306 (Modbus) Example code */ | |
| /* -------------------------------------------------------------------------- */ | |
| /* ------------------------------- วิธีการต่อ ------------------------------- */ | |
| /** | |
| * ESP8266 ---> MAX485 ---> AM2306 | |
| * 5V 5V RED | |
| * GND GND BLACK | |
| * - RE (ต่อกับDE) |
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
| from machine import Pin, Timer | |
| from time import sleep | |
| import time | |
| from neopixel import Neopixel # neopixel lib = https://github.com/blaz-r/pi_pico_neopixel/blob/main/neopixel.py | |
| LED_PIN = 25 | |
| USRBUTTON_PIN = 24 | |
| NEOPIXEL_PIN = 23 |
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
| /* ------------------ Relay Reading/Writing code by ModuleMore.com ----------------- */ | |
| /* ------------------------------- วิธีการต่อ ------------------------------- */ | |
| /** | |
| * @file main.cpp | |
| * @author ModuleMore.com (modulemore@gmail.com) | |
| * @brief รับส่งค่า relay เวอร์ชั่น RS485 โดยใช้ RS485 to TTL (รุ่นมี tx rx และ gnd ของ rs485) | |
| * สื่อสารผ่าน Serial1 (ที่เรา define ขาไว้เป็น RX = 13, TX = 15) ด้วย Library ModbusMaster | |
| * | |
| * Wiring |