เมื่อทำการเซต forward port เรียบร้อย ไม่จำเป็นต้อง restart router ก็ได้
ตอนนี้ จะสามารถเข้าถึง server ของเราในเครือข่ายได้ จากที่ไหนก็ตามผ่าน internet โดยใช้ public ip ดูจาก myipaddress
Create a temperature control system of thermo pot with an Arduino and NTC Thermister (alike a Thermostat )
***sorry, for cc(closed cation) is coming as soon.
Temperature control system of Automatic Electric Pots w/ an Arduino, NTC Thermister (ควบคุมอุณหภูมิกระติกน้ำร้อนไฟฟ้า)
Making a temperature control system of thermo pot with an Arduino and NTC Thermister (alike a Thermostat ) , Because of my thermostat is not working as it should be, it will work continuously without cut off the power even if a water tempature is high. and the boil indicator is still lit.
For working, theNTC thermister 10K send a temperature value to an Arduino Nano.
In processing, if temperature value is below the preset value is 68C ,then system goes into boil mode.
if temp value from NTC is higher than the cut-off value is 90C , then system goes into warm mode.(in warm mode , Relays will be deactivated).
***Download related file for this clip: ino file, library, ntc pdf, image and etc
https://drive.google.com/drive/folders/0BzjoxIwEMrM-UkwySnU0UFBlcVk?usp=sharing
***Description
Specification:NTC
1m NTC Thermistor accuracy temperature sensor 10K 1% 3950 Waterproof Probe
Stainless steel sheath and waterproof
Measurement range: -20 to 105 ?C
Length of wire: 1 meter
Size of probe: 5 x 25 mm
Output: 2 wires
Type: NTC 10k?1% 3950
measure environmental temperatures using arduino ADC and this 10k NTC LINK
Resistance to temperature conversion table LINK
B-constant : 3380K -/+ 1%
Typical Dissipation Constant 5mW/ ?C
Probe insulation: gt 100MOhm
Peak Voltage sustain time: 2 seconds, AC1800V 1mA 2 seconds
Stress sustain: 9.8N (1kgF) for 1 minute no deformation
or
Stainless steel sheath and waterproof.(do not suggest used in water for a long time)
Measurement range: -40 to 120 ?C
Length of wire: 1 meter
Size of probe: 4 x 25 mm
Type: NTC 10k?1%
Measure environmental temperatures using arduino ADC and this 10k NTC LINK
B-constant : 3435K -/+ 1%
Typical Dissipation Constant 5mW/ ?C
Probe insulation: gt 100MOhm
***Credit:
https://www.youtube.com/watch?v=4yAcck3Qk2Y
http://www.vishay.com/docs/29053/ntcintro.pdf
http://www.learningaboutelectronics.com/Articles/Simple-thermistor-circuits.php#NTC
http://playground.arduino.cc/ComponentLib/Thermistor2
https://en.wikipedia.org/wiki/Thermistor //Steinhart–Hart equation
http://www.eidusa.com/Electronics_Kits_TEMP_THERMISTOR_1.htm
https://www.arduino.cc/en/Math/H //log x == natural logarithm of x
https://www.arduino.cc/en/Tutorial/ReadAnalogVoltage
https://www.mikrocontroller.net/topic/79630 //graph ntc
http://www.vishay.com/docs/29053/ntcintro.pdf
http://www.vishay.com/thermistors/curve-computation-list/
https://en.wikipedia.org/wiki/Two%27s_complement
https://en.wikipedia.org/wiki/Voltage_divider
http://www.neutron.rmutphysics.com/science-news/index.php?option=com_content&task=view&id=2748&Itemid=4
Specification
-Set Date and Time manualy with the date/time menu page.
-The data is not lost when there is no power supply.
-Set up 2 periods for each relays. (Increase the number of relays later with just only copy code.)
( 1 periods = timer on and timer off, the timer can be canceled. )
PS. this project will demonstrate with 2 relays.
-Relays can be added with inferface on pcf8574 io pin.
-Setting timer from a menu page,easily.
-Can control each of relay by directly and independently with working of aruduino code .
(Relays connected on the pcf8574 pin)
-Show Temparature in C degree.
-Can be applied with other project.
จาก math.h https://www.arduino.cc/en/Math/H
double log (double __x) // natural logarithm of x
double log10 (double __x) // logarithm of x to base 10.
/*-----------------------------------------------
lcd.print("TEMP " + (String)(int)Temp_start + "," + (String)(int)Temp_cut );
/*-------------------------------
By-pass and de-coupling capacitors
are commonly used to control the voltage on the VCC pin,
- using a larger capacitor to provide additional power in the event of a short power supply glitch
- and a smaller capacitor to filter out high-frequency ripple.
The first thing to do is ensure you have your relay module connected properly and adequately powered. This example shows how to make use of the optic isolation feature.
INSTRUCTIONS:
Remove blue jumper
Connect JD-VCC and GND from the Relay Module to a Separate 5VDC Supply (1Amp or greater)
Connect VCC from the Relay Module to 5V on your Arduino
Connect required control signals as shown
Note: DO NOT connect GND from the Relay Module to your Arduino
/*------------------------------------
set bit ตามตำแหน่งที่ต้องการ
Use the bitwise or and and operators. To set a bit:
Both work, but sometimes the ESP does not start again.
Answer:
ESP.reset() is a hard reset and can leave some of the registers in the old state which can lead to problems, its more or less like the reset button on the PC.
ESP.restart() tells the SDK to reboot, so its a more clean reboot, use this one if possible.
the boot mode:(1,7) problem is known and only happens at the first restart after serial flashing. if you do one manual reboot by power or RST pin all will work more info see: #1017
/*-----------------------------------------------
Wrote a test for floats to check for special values. NAN and INFINITY and isnan(), isinf() and isfinite() are defined in math.h. int testFloat(float f) { if (f == 1/0L) Serial.println("NaN divide by 0L"); if (f == 1/0UL) Serial.println("NaN divide by 0UL"); if (f == NAN) Serial.println("NaN"); if (f == INFINITY) Serial.println("INFINITY"); if (-f == INFINITY)Serial.println("-INFINITY"); if (isnan(f)) Serial.println("isnan"); if (isinf(f)) Serial.println("isinf"); if (isfinite(f)) Serial.println("isfinite = OK"); return 0; }