Skip to content

Program for microcontroller STM32 NUCLEOF401RE with WiFi expansion board X-NUCLEO-IDW04A1, microSD adapter (SPI), and Air Quality sensor MQ-135.

License

Notifications You must be signed in to change notification settings

N0menIllisLegio/NUCLEO-F401RE-Sensor

Repository files navigation

Description

Program for microcontroller STM32 NUCLEOF401RE with WiFi expansion board X-NUCLEO-IDW04A1, microSD adapter (SPI) and Air Quality sensor MQ-135. Its purpose - read data from sensor and save it on microSD and/or transmit it to server by WiFi.

Configuration

Configuration file should be placed in the root directory of SDCard with name: config.txt.

File contents:

  1. Date & Time configuration This date and time will be set as current for microcontroller.
Date=7;
Month=6;
Year=21;
WeekDay=3;
Hours=0;
Minutes=14;
Seconds=47;
  1. WiFi configuration Private modes:
    • 0 - None
    • 1 - WEP
    • 2 - WPA Personal
SSID=;
SecurityKey=;
PrivateMode=2;
  1. Intervals configuration Configure with what interval data will be send to server (transmitIntervalSeconds) or written to microSD (writeSDIntervalSeconds) and longpolling interval (requestIntervalSeconds).
writeSDIntervalSeconds=60;
transmitIntervalSeconds=1800;
requestIntervalSeconds=900;
  1. Server connection configuration IP address and port of server which will be receiving data Protocols for data transmitting:
    • t - TCP
    • u - UDP (Not supported)
IP=;
Port=;
Protocol=t;
  1. Credentials configuration
OwnerID=;
MicrocontrollerID=;
MicrocontrollerPassword=;
SensorID=;

About

Program for microcontroller STM32 NUCLEOF401RE with WiFi expansion board X-NUCLEO-IDW04A1, microSD adapter (SPI), and Air Quality sensor MQ-135.

Resources

License

Stars

Watchers

Forks