Posts

Showing posts from February, 2018

[Week 5 FYP2] Development of Easy Parking Finder System

Activity Title  : - Modify the code to an automatic refresh for web-page. - Study to transfer data and display into Web-page Objective  : To give make an automatic web-page refresh.  To transfer data and display it in the Web-page.  · Content  : From my previous code, i modify the code to get the better result. The previous code seems like dont have response or update when it received a data. Code:  #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> const char* ssid = "abc"; // ssid const char* password = "123456789";// password //192.168.43.20 IPAddress ip(192, 168, 43, 23); //set static ip IPAddress gateway(192, 168, 43, 1); //set getteway IPAddress subnet(255, 255, 255, 0);//set subnet String page = ""; double data; ESP8266WebServer server(80); void setup() {   Serial.begin(115200);   delay(10);   // Connection to wireless network ...

[Week 4 FYP2] Development of Easy Parking Finder System

Image
Activity Title  : - Test code to enter the access point - Study the type of class need to implement in this project Objective  : To enter the access point and make a web-page To study the type of class used in this project.  · Content  : i m done with working Nodemcu and sensor last week. so for this week i test a a code for creating web-page in the access point.  Code:  #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> const char* ssid = "ssidperson"; // ssid const char* password = "123456789";// password //192.168.43.20 IPAddress ip(192, 168, 43, 23); //set static ip IPAddress gateway(192, 168, 43, 1); //set getteway IPAddress subnet(255, 255, 255, 0);//set subnet String page = ""; double data;  ESP8266WebServer server(80); void setup() {   Serial.begin(115200);   delay(10);   // Connection to wireless network   Serial.pri...

[Week 3 FYP2] Development of Easy Parking Finder System

Image
Activity Title  : - Construct a code for my Nodemcu and sensor. Objective  : To test whether code in week 15 is suitable for Nodemcu or not. · Content  : In week 15, i already construct the code for UNO and sensor. This week i test the same code for my NodeMcu. What i can conclude from test, the result is failed because tools in arduino is not tally with my board. so, i had to change the board before i upload the code in the NodeMcu.  Code:   // defines pins numbers const int trigPin = 2;  //D4 const int echoPin = 0;  //D3 // defines variables long duration; int distance; void setup() {   pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output   pinMode(echoPin, INPUT); // Sets the echoPin as an Input   Serial.begin(9600); // Starts the serial communication } void loop() { // Clears the trigPin   digitalWrite(trigPin, LOW);   delayMicroseconds(2); // Sets the trigPin on HI...

[Week 2 FYP2] Development of Easy Parking Finder System

Image
Activity Title  : - Survey better electronic shop.  - Survey the cost for electronic part. - Buy electronic part.  Objective  : To get the better price. To know the cost to making this project for electronic part.  Content  : Nowadays, i can find the shop that provide electronic part easily. Based on my experience in buying electronic component, the nearest electronic shop from gombak about 20 km located in jalan pasar. There have many electronic shop that sell many type of electronic component. But traffic to reach there is very high and treat from shop keeper is not good. some shop just pick the name of the component with random detail. The potency of picking wrong component is higher. So that the money will be waste if i dont check the component carefully.  As an alternative, i also make surveying for online market. Their price is more cheaper than jalan pasar. And in their website, the detail of the component is ...