Skip to the content
PCBKitNew board
2 layersIotFarming, the printed circuit board in 3D

This project is designed to read data from various sensors, format the data into a JSON payload, and post the payload to a specific URL every minute.

Copper layers
2
Thickness
1.6 mm
Parts
4
Nets
47
Pads
70
Tracks, vias
3, 0
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
24 Apr 2024
Updated
24 Apr 2024

Overview

IotFarming is an open-source printed circuit board by simabuaboy, from the simabuaboy/IoTfarming-a-test repository on GitHub. It is a 2-layer board with 4 parts on 47 nets, routed with 3 tracks and 0 vias.

It is built around the DS18B20 and TMLM 04105. Its parts include 2 ICs and 1 resistor. It belongs with the ESP32 boards of this library.

Main components

2

README

README.md

IoT Sensor Data Post

This project is designed to read data from various sensors, format the data into a JSON payload, and post the payload to a specific URL every minute. The project is built for the ESP32 microcontroller using the ESP-IDF libraries and FreeRTOS.

Sensors

The project reads data from the following sensors:

- Soil Moisture Sensor: Measures the moisture level of the soil.

- Air Temperature Sensor: Measures the temperature of the air.

- Anemometer (Wind Speed Sensor): Measures the speed of the wind.

- Sunlight Sensor: Measures the intensity of sunlight.

Data Posting

The sensor data is posted to the following URL: https://cisea.bukitasam.co.id/api-iot/api/v1/iot/iot-test/post

The data is posted in the following JSON format:

json
{

   "sensor_code":"FF-001",

   "location":"Blok Timur A",

   "timestamp":"2023-09-11 10:30:00",

   "data":{

      "soil_moisture":45.6,

      "air_temperature":28.2,

      "wind_speed":5.4,

      "sunlight_intensity":750

   }
}

FreeRTOS

The project uses FreeRTOS to create a task that reads the sensor data, formats the JSON payload, and posts the payload every minute. The task is pinned to core 1 of the ESP32.

Building and Running

To build the project, navigate to the project directory and run the following command:

idf.py build

To flash the project onto the ESP32, connect the ESP32 to your computer and run the following command:

idf.py -p PORT flash

Replace PORT with the port that the ESP32 is connected to.

To view the output of the ESP32, run the following command:

idf.py -p PORT monitor

Replace PORT with the port that the ESP32 is connected to.

Note

  • The Project use hardware dummies, ie using some sort of mocked class to simulate the hardware
  • all the sensor class use the esp-idf paradigm components to seperate HAL code or userinterface codes
  • the code can be build can_be_build.png
  • it used esp-idf release/v4.4

esp-idf instalation

Parts

4
QtyValueFootprintReferences
1DS18B20Package_TO_SOT_THT:TO-92_InlineU3
1ESP32Package_DFN_QFN:QFN-48-1EP_6x6mm_P0.4mm_EP4.3x4.3mmU1
1LDR03OptoDevice:R_LDR_10x8.5mm_P7.6mm_VerticalR1
1TMLM04105Converter_ACDC:Converter_ACDC_TRACO_TMLM-04_THTPS2

Questions

What parts does the IotFarming use?

4 parts, built around the DS18B20 and TMLM 04105. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the IotFarming KiCad files?

From the simabuaboy/IoTfarming-a-test repository on GitHub, at the commit this page was made from: the board is hardware/kicad/IotFarming.kicad_pcb and its schematic hardware/kicad/IotFarming.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the IotFarming design in my own project?

Its repository states no licence, so its author keeps all rights: ask simabuaboy before reusing the design.

Similar boards

  • 2 layers33.7 × 97.8 mmHAN ESP TSS721, the printed circuit board in 3D

    HAN ESP TSS721

    UtilitechAS/amsreader-firmware

    ESP8266 and ESP32 compatible firmware to read, interpret and publish data to MQTT from smart electrical meters, both DLMS and DSMR is supported

    29 parts470
  • 2 layers121 × 68 mmFreeds sanchez, the printed circuit board in 3D

    Freeds sanchez

    pablozg/freeds

    Derivador de energía solar excedente creado por Pablo Zerón, Diseño PCB por Amcalo, Tester original por Aeizoon, Wiki por Zoilo Mora

    42 parts108
  • 2 layers80 × 54.9 mmESP32WifiAisTempVolt2, the printed circuit board in 3D

    ESP32WifiAisTempVolt2

    AK-Homberger/NMEA2000WifiGateway-with-ESP32

    This repository shows how to build a NMEA2000 WiFi Gateway with voltage and temperature alarms.

    18 parts94GPL-3.0
  • 2 layers52 × 61 mmArduino motorfocus, the printed circuit board in 3D

    Arduino motorfocus

    fehlfarbe/arduino-motorfocus

    Arduino motorfocus with moonlite protocol for telescopes

    23 parts58MIT
  • 2 layers69 × 57 mmBuoy4, the printed circuit board in 3D

    Buoy4

    wjpavalko/Maker-Buoy

    Repository of Open Source Maker Buoy Files

    46 parts39
  • 2 layers26 × 34.8 mmWemosD1Mini, the printed circuit board in 3D

    WemosD1Mini

    RuiSantosdotme/ESP8266-Multisensor-Shield

    Complete step-by-step instructions »

    10 parts29
  • 2 layers162 × 60 mmEsp shield, the printed circuit board in 3D

    Esp shield

    felixwittwer/homeassistant_automaic_greenhouse

    A cool Project to make your greenhouse smart. What about automaic irrigation and collecting enviromental data right from your garden.

    20 parts27
  • 2 layers123 × 87.5 mmFastLOGIC, the printed circuit board in 3D

    FastLOGIC

    Neumi/fastLOGIC

    An affordable Arduino-based board designed for straightforward (industrial) logic control, ideal for building small-scale automation and control solutions.

    180 parts23MIT