Skip to content
fandilladp edited this page Sep 20, 2022 · 8 revisions

Welcome to the OD-AWS wiki!

OD-AWS | automatically weather station was created due to the high price of AWS in the market, now everyone can have their own AWS, OD-AWS is supported with stm32f4 and supports two GPRS and LoRa connections, GPRS has the main connection for uploading data to the server, and LoRa uses mesh concept mesh concept to receive sensor data from anywhere.

OD-AWS use data structure JSON with arduinojson and using POST method GPRS with Arduino-SIM800L-driver.


Environment Requirements

  1. vscode recommendation
  2. install platformio extension
  3. prepare your board to connect stlink port & serial pin with FTDI usb and connect to selected pin connection

*note don't include your vcc stlink & FTDI "if you don't have FTDI, you can have serial by connecting arduino to UART / USART pin, yup you can print serial now"

  1. power supply or battrey, the board works in the range of 3.7 - 4.6 v, so you set the 18650 battrey already in use

Uploading & Debugging

if the connection board is successful, you can upload this source using the io platform, and now the serial monitor is using the FTDI port.

  • debug & calibration

set up your platformio.ini upload_protocol = stlink monitor_speed = 115200 and initialize in /src/main.cpp HardwareSerial Serial2(PD6, PD5); Serial2.begin(115200); You can print everything you want on the monitor to Serial2

Calibration

You can set all functions in default configuration /src/main.cpp DF Robot SEN0186

  1. first run, you can enable code commenting // myRTC.setDS1302Time(40, 24, 20, 7, 10, 9, 2022); and configure it according to your time.

please upload only 1 time, then you comment on this line otherwise the new time will be updated.

  1. change var = 2; to var = 1; in case 1, you have loop for easy tuning calibration in real time no communication

*tips to disable SD card mode if you don't have SD card anymore

Clone this wiki locally