semiotproject / iot-device-first-prototype

Arduino MEGA 2560 and ESP8266 WiFi-Module based IoT Device prototype

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iot-device-first-prototype

Arduino MEGA 2560 and ESP8266 WiFi-Module based IoT Device prototype

HARDWARE:

  • Arduino MEGA 2560
  • ESP8266 Device connected to Mega 2560 via Serial 3
  • DHT11 sensor connected to 2nd digital pin

ScreenShot ScreenShot

SOFTWARE:

  • Arduino sketches, info about used libraries inside
  • I recommend to use for testing Wireshark and libcoap:
coap-client -v 1 -p 5683 -m get coap://DEVICE_IP/.well-known/core

or smcp:

smcpctl observe cp://DEVICE_IP:5683/dht_sensor/humidity

or and Copper Firefox Plugin.

ESP8266

It's highly recommended to use esp8266 firmware higher than 0.9.4 with AT commands send higher than v0.2 to get udp working more or less well.

You could find binary firmware for the esp8266 512KB flash memory version in the /software/esp8266 project repo with the PDF document containing apropriate AT commands description from Espressif Systems IOT Team (v0.23).

You could easly flash the esp8266 from lunux with the python esp8266tool like that:

esptool.py --port /dev/ttyACM0 --baud 115200 write_flash 0x000000 at023sdk101flash512k.bin

Note that after the flashing the firmware default baudrate will be 115200

If you have some problems with starting the flashing you could try to reset esp8266 VCC pin to enter the flash writing mode.

If you don't have the USB TTL converter to connect the esp8266 directly to your machine and have the arduino board, try to use the built-in arduino usb-ttl converter similar to the scheme:

ScreenShot

We are working on the libraries we using as well to provide better results.

About

Arduino MEGA 2560 and ESP8266 WiFi-Module based IoT Device prototype


Languages

Language:C++ 59.8%Language:C 25.8%Language:Arduino 12.4%Language:Processing 2.1%