-
Notifications
You must be signed in to change notification settings - Fork 1
Home
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 to receive sensor data from anywhere.
OD-AWS use data structure JSON with arduinojson and using POST method GPRS with Arduino-SIM800L-driver.
- vscode recommendation
- install platformio extension
- prepare your board to connect stlink port & serial pin with FTDI usb and connect to selected pin
*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"
- 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
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
You can set all functions in default configuration /src/main.cpp
DF Robot SEN0186
- 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.
- change
var = 2;
tovar = 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