-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathInstructions.txt
69 lines (56 loc) · 1.84 KB
/
Instructions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Instruction Manual for NodeMCUESP8266
Step 0:
Connect your board to your computer
Step 1:
Install Arduino IDE
https://www.arduino.cc/en/main/software
MAC: Install USB-UART driver:
https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
Step 2:
Open Arduino IDE
Go to File > Preferences.
(or Adruino > Preferences in MAC)
Paste the URL http://arduino.esp8266.com/stable/package_esp8266com_index.json
into the Additional Board Manager URLs field. Click OK.
Go to Tools > Board:"..." > Board Manager and search for 'esp8266'.
Select the newest version (2.5.0 for MAC), and click install. (As of February 7th 2017, the
latest stable version is 2.3.0.)
Step 3:
Download code and libraries from github
https://github.com/opendatadurban/arduino_stations
Step 4:
Move the downloaded Arduino libraries:
ArduinoJson-master
ESP8266HTTPClient
HackAir-Arduino
into:
Documents\Arduino\libraries\
Step 5:
Open file "weather_station" and double click on "weather_station.ino"
Edit device_ID with the ID that has been assigned to you eg: Ad1
Edit wifi credentials (ssid, password)
***NOTE***: you'll need to change the wifi credentials to your own when you get home.
Save code
Step 6:
Go to Tools>Board
Select “NodeMCU 1.0 (ESP-12E Module)
Select Upload Speed “115200”
Select Port
MAC: "debug port" on serial
port: ...UART...
Step 7:
Open serial monitor (magnifying glass icon, top right)
Select 115200 baud
Step 8:
Upload your code by clicking on the arrow (pointing right) icon (top left)
Once the upload is complete, disconnect your board.
Step 9:
Connect the Nova PM SDS011 sensor to the ESP8266 as follows:
SD1011 – ESP8266
------------------
TDX – D7 (GPIO 13)
RXD – D6 (GPIO 12)
GND – GND
5V – Vin
Step 10:
Reconnect your board and it should run automatically