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

Tuesday, September 13, 2016

[RPI GPIO] Mini Servo Test on Raspberry Pi 2

12 September 2016

Mini Servo Test on Raspberry Pi 2 (Python GPIO)

1. Using PWM
Pinout Raspberry Pi 2
Mini Servo -> RPI
orange PWM -> pin11
red vcc -> vcc 5v / pin2 / pin4
brown ground -> gnd / pin6, pin9, pin14...

2. Send python script or write script to RPI


3. Test Run
sudo python servotest.py


Referensi
-pinout = https://www.raspberrypi.org/documentation/usage/gpio-plus-and-raspi2/
-PWM = https://sourceforge.net/p/raspberry-gpio-python/wiki/PWM/
-datasheet mini servo = http://www.micropik.com/PDF/SG90Servo.pdf