Hackathon how to:
- open arduino IDE
- copy this: http://arduino.esp8266.com/stable/package_esp8266com_index.json
- put it into preferences: “additional boards manager URL”
- go to “tools” at the top of arduino menu, hover over “board” at the top click “boards manager”
- wait for the boards manager to update (30 seconds or so)
- search “esp8266” click to install the board
- Plug in your esp8266 board into the micro usb cable
- under tools > boards > select NODEMCU 1.0 (ESP 12-E)
- under tools > port > select the ch340 address / com address of the board
- If you don’t see a com port and windows doesn’t recognize the usb device
- go here and follow the steps https://sparks.gogo.co.nz/ch340.html
- make sure your board now shows up
- Go to dashboard.waziup.io
- register and account
- confirm your email
- login to dashboard.waziup.io
- open api.waziup.io/docs/
- scroll down to “sensors” and select /domains/{domain}/sensors to create a new sensor
- click “try it out” and edit the text with your data. Change “id” “name” to the name of your sensor, and “owner” to your username, and timestamp to now.
- scroll down to /domains/{domain}/sensors/{sensor_id}/measurements
insert new measurement. change text as in step above. if your sensor has a few different outputs (like temp, humidity, light. then add one for each)
- on dashboard.waziup.io click “table view”, find your sensor name above, click on it
- your sensor should be green and have posted all the details you edited in step 16
- download this sketch: https://github.com/themakerspace/Amaphiko_LDR
- open and see if you can upload it to your device
- In Arduino Go to libraries > manage libraries > search for “DHT11” and install the adafruit library
- In Arduino Go to libraries > manage libraries > search for “adafruit unified sensor by adafruit” install
- edit the sketch in arduino to update the sensor id and measurement id
SIDE PROJECT IF YOU ARE BORED:
- download: 626 KB Blynk_Release_v0.5.2.zip
- install library in Arduino: sketch > include library > add a zip library (browse in the file above)
- download the BLYNK app from app store or play store on your smartphone
- register with your email address
- create your first project
- get the
- in Arduino open File > Examples > BLYNK > boardswifi > esp8266 standalone