Sunday, January 1, 2017

[PHP, PYTHON] Login Page Simple Parser

1 January 2017

Intro::

Simple HTML parser login page, use
- PHP-> Simple DOM HTML Parser + curl. shows nickname.
- Python -> Beautiful Soup

Simple Login + Parsing html

PHP:
PYTHON:

Catatan::

Simple html dom parser manual : http://simplehtmldom.sourceforge.net/manual.htm
Refference : http://stackoverflow.com/questions/3008817/login-to-remote-site-with-php-curl

Saturday, December 31, 2016

[ESP8266-01] i2c 16x2 LCD Test

31 December 2016

ESP8266-01 i2c Test


1. LiquidCrystal_I2C library
https://github.com/agnunez/ESP8266-I2C-LCD1602

Download+extract arduino - libraries folder - restart arduino ide

2. Set Dev Board
-Pick Board Generic ESP8266 Module

3. Try burn/flash/upload

Files - Example - LiquidCrystal i2C - Hello World
Verify - Upload

4. Wire MAP
Cheat Sheet ESP8266-01
ESP8266 - FTDI
VCC - 3.3V
GND - GND
RX - TX
TX - RX
CH_PD - 3.3V
RST - PUSH BTN - GND
GPIO0 - GND (FOR FLASH, 3.3V FOR RUNNING)

ESP8266 - i2c 16x2 LCD BACKPACK
GPIO2 - SCL
GPIO0 - SDA
GND - GND

LCD 16x2 = 5V
ESP8266-01 = 3.3V

Catatan:
3.3v ≠ 5v
- selesai upload  GPIO0 dicabut + reset (agar supaya mode flash off)

Referensi
-reference i2c lcd16x2 = http://sankios.imediabank.com/esp-01-1602-led
-wiremap = http://domoticx.com/esp8266-wifi-lcd-1602-2004-via-i2c-nodemcu/
-setup = https://kendrick-tabi.blogspot.co.id/2015/06/how-to-program-esp8266-using-arduino-ide.html

Friday, December 30, 2016

[ESP8266-01] Blink Test 2

30 December 2016

ESP8266-01 Test


1. FTDI Driver

2. Set Dev Board
-Pick Board Generic ESP8266 Module

3. Try burn/flash/upload

Files - Example - ESP8266 - blink
Verify - Upload

4. Wire MAP
Cheat Sheet ESP8266-01
Cheat Sheet FTDI

ESP8266 - FTDI
VCC - 3.3V
GND - GND
RX - TX
TX - RX
CH_PD - 3.3V
RST - PUSH BTN - GND
GPIO0 - GND (FOR FLASH, 3.3V FOR RUNNING)


Catatan:
3.3v ≠ 5v
- selesai upload  GPIO0 dicabut buat + reset (agar supaya mode flash off)

Referensi
-wire map = http://iot-playground.com/blog/2-uncategorised/35-esp8266-firmware-update
-setup = https://kendrick-tabi.blogspot.co.id/2015/06/how-to-program-esp8266-using-arduino-ide.html
- ftdi usb ttl = http://www.arduinesp.com/getting-started
-arduino = http://arduino.cc

Saturday, September 17, 2016

[ESP8266] DHT11 Simple Test

17 September 2016

ESP8266 DHT11 Test

Pic1. Output
0. Install DHT library
Sketch - Include Library - Library Manager - DHT Sensor Library by Adafruit - Install
https://github.com/adafruit/DHT-sensor-library
1. Code
2. Pinout
Pic2 ESP8266 NODEMCU Pinout
Pic3. DTH11 Pinout

3. Wire MAP
D1 -> INPUT KE DHT11 -> DHT11 PIN2
D1 -> PULL UP RESISTOR -> VCC


Referensi
-pinout nodemcu = https://github.com/nodemcu/nodemcu-devkit
-datasheet DTH11 = http://www.micropik.com/PDF/dht11.pdf

[ESP8266] Simple WiFi Client

17 September 2016

Simple WiFi Client


1. Code


2. Serial Port Arduino IDE
Tools - Serial Monitor


Note:
-Change SSID & PASSWORD section
-Set baud rate speed 9600

[ESP8266] Running LED

17 September 2016

Running LED


1. Code


2. Pinout
ESP8266 NODEMCU Pinout
3. Wire MAP
PIN1 = D0 -> (+)LED(-) -> GND
PIN2 = D1 -> (+)LED(-) -> GND
PIN3 = D2 -> (+)LED(-) -> GND
PIN4 = D5 -> (+)LED(-) -> GND
PIN5 = D6 -> (+)LED(-) -> GND


Referensi
-pinout = https://github.com/nodemcu/nodemcu-devkit

[ESP8266] Preparation Blink Led

17 September 2016

ESP8266 Test


1. Install Arduino IDE
https://www.arduino.cc/en/Main/Software

2. Install Board Developer
Add ESP8266 board database
File - Preferences - Additional boards manager

http://arduino.esp8266.com/stable/package_esp8266com_index.json

Restart Arduino IDE

Tools - Board - Board Manager
Search: ESP8266 - Install

Restart Arduino IDE

3. Setup Board
-Pick Board NodeMCU 1.0 (ESP-12E Module)
-Choose COM port use

4. Try burn/flash/upload

Files - Example - ESP8266 - blink
Verify - Upload

5. Wire MAP
ESP8266 NODEMCU Pinout

D0 -> (+)LED(-) -> GND


Referensi
-nodemcu = https://github.com/nodemcu/nodemcu-devkit
-setup = http://www.instructables.com/id/Programming-ESP8266-ESP-12E-NodeMCU-Using-Arduino-/
-arduino = http://arduino.cc