This is a simple demo using the ESP8266 and Cactus Micro (a arduino compatible board) to update a remote server (https://data.sparkfun.com/) using a digital temperature sensor.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Materials
The Cactus Micro is an arduino compatible dev board, it integrated a WIFI chip ESP8266.
- 1 x Cactus Micro - contains a ESP8266 module ESP-11 (https://www.tindie.com/products/AprilBrother/cactus-micro-arduino-compatible-plus-wifi-esp8266/)
1 x DS18B20 Digital Temperature Sensor
1 x 4.7k resistor
1 x Power supply (4.3V up to 12V, I used a 3.7v)
Step 2: Connecting the Wires Together
- Connect esp8266 module is easy. Just plug in to the pins.
- DS18B20 - DQ(2) -> Cactus pin 14, DQ(2) -> 4.7KR -> VCC(3.3V)
Step 3: Arduino Setup and Sketch
The sketch code: https://github.com/AprilBrother/cactus-micro/blob/...
For Cactus Micro Rev2, the default firmware for esp8266 is espduino. Please use this sketch instead. https://github.com/AprilBrother/cactus-micro-r2/tree/master/libraries/CactusMicro/examples/temperatureLogger
Step 4: SparkFun Setup
We create a data stream at SparkFun, follow this link to do this. https://data.sparkfun.com/streams/make
Once you've created your stream, keep the window open so you have easy access to your public and private keys handy - you'll need those to replace the KEY in the Arduino sketch.
Now you are ready to start sending data.