Wednesday, 21 March 2018

Briefing FYP

Title : Briefing FYP

Salam viewers.This week is a 4th briefing for Abstract Poster and Presentation .Speaker for this workshop is Ms Najihah Saleh (Electrical Technology Section) .In this briefing , committee have been figured out how to write abstract , guide to write poster and skills for presentation
Layout poster can be download at fyp website .

Date :21 March 2018 
Venue :TTL 1

Thursday, 15 March 2018

What is MIT Inventor

 Tittle : MIT Inventor

MIT App inventor lets user develop application for Android phone using web browser and either connected using a phone or emulator .The app inventor store user work and help in kept track of your project .The apps also use block editor where user assemble program blog that specify how the program should do .The apps also written in Java code for building android apps . So from the apps student will be able to learn new things.The apps might be good for beginner.Software can be download via google playstore .


Friday, 2 March 2018

Running the code


Title : Running code Node MCU:

In this wek i have compile the code and run this code at Arduino Software I have used my phone VIVO to the network connection .From the image below the node MCU is connected to the phone 

Coding :

//http://www.instructables.com/id/NodeMCU-LED-Static-IP/
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>

const char* ssid = "vivo 1713"; // ssid
const char* password = "123456789";// password
//192.168.43.20
IPAddress ip(192, 168, 43, 21); //set static ip
IPAddress gateway(192, 168, 43, 1); //set getteway
IPAddress subnet(255, 255, 255, 0);//set subnet

// defines pins numbers
const int trigPin = D1;
const int echoPin = D2;


// defines variables
long duration;
int distance;
const int Green = D5;
const int Red = D6;
//const int LEDC = 14; // 

String page = "";
String (state);
String (stats);
ESP8266WebServer server(80);

void setup() {
  pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output
  pinMode(echoPin, INPUT); // Sets the echoPin as an Input
  pinMode(Green, OUTPUT);
  pinMode(Red, INPUT);
  
  Serial.begin(115200);
  delay(10);


  // Connection to wireless network
  Serial.println();
  Serial.println();
  Serial.print("Connected to ");
  Serial.println(ssid);

  WiFi.config(ip, gateway, subnet);
  WiFi.begin(ssid, password);

  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
  Serial.println("");
  Serial.println("WiFi connected");
  
  server.begin();
  Serial.println("Server strted");





: