SlideShare a Scribd company logo
1 of 29
Download to read offline
Agrino
應用於農業感測的開源專案
Kobe Yu
授權聲明
投影片內容採 創用 CC BY (姓名標示) 3.0 台灣。
完整授權內容 : https://creativecommons.org/licenses/by/3.0/tw/
Kobe Yu (kobeyu@agrino.cc)
軟體工程師 ~8y
目前是清華大學資工系博士班學生不務正業的博士班學生
研究主題
從系統軟體提升深度網路與電腦視覺的運算效能(NNEF/OpenVX/NNAPI )
興趣是參與開源農業專案
專案起源
“大家都知道,農業是看天吃飯,這個『天』包括陽光、空氣、水,所以日照、溫、濕度、
雨量土壤酸鹼度,這氣候氣象因素都會影響植物生長,而我們的農友可以透過獲得這
些資訊,來創造適合生長的環境,以得到更好的收穫與農作品質。”
Since 2016
Source:http://lass-net.org/2016/06/sensors-for-farm/
Agriculture Environment Sensing
● 陽光
○ 光強度、太陽輻射、UV
● 空氣
○ 風速、風向、CO2
● 水
○ 降雨量、水位高度
● 土壤
○ 溫度、溼度、EC、PH
● 大氣
○ 溫度、溼度、氣壓
● 影像
Why Agrino
● Commercial product is too expensive
● Sensor components for maker is too short life cycle
● We can do it by ourselves!
Project Positioning
Arduino Agrino Commercial
Function Yes Yes Yes
Durability L M H
Development resource H H L
Accuracy L M H
Manitain and calibration No DIY Yes
Cost L M H
Open source Yes Yes No
Agrino
An open source project designed for agricultural sensing,Based on the
Arduino source code。
Hardware
customize hardware
Software
Arduino core
Sensor library
Software Architecture
● Arduino samd core
● Sensor library
Hardware
(ARM Samd21 (ARM M0+))
Arduino library
(adding agrino build-in functions)
Sensor library
Application
Arduino Samd Core
● Pin define
○ Sensor
○ Power gate (ldo enable)
● Buildin functions
○ Device manager
■ LPWAN management (Lora/Sigfox)
■ RTC management
■ Power management
■ Storage management
Sensor Library
● HAL
○ Arduino
○ Atmel studio
● Modulize
● Reusable
Micro Weather Station
Sensor Library Interaction Diagram
More...
● validation
● calibration
Hardware Design
● Power
○ Solar battery charger
○ Power gate
■ weather board
■ LPWAN
■ External sensor(soild sensor or others).
● Storage
○ SD Card
● Sensors
○ onboard sensor
○ External sensor.
● RTC
○ timestamp
○ System deep sleep
Agrino Hardware(EVB)
Weather
Board
Main Board
LPWAN
Module
External
Sensors
Agrino Main Board
Main Chip
● MTDuino
● MT7688
● Arduino Nano
Power:
● Li-Polymer charger
● LDO(PG)
RTC
SD
Card
Weather Board
● Sunshine duration
○ BH1603 upto 100000lux
● Solar radiation
○ BPW21
● Temperature and Humidity
○ SHT31
● APRS
○ Wind and ranin
Target: Field Sensor Station
● Sensor module
○ Micro weather station
○ Soil sensor
● LPWAN
● Power system
○ Solar Power Supply
○ Powergate
● Local storage
● RTC
Fieldsensor : MTDuino(sigfox) and Sensor Library.
https://thingspeak.com/channels/550467 https://thingspeak.com/channels/548078
MTDuino
The MTDuino-SigFox is powered by Atmel’s
SAMD21 MCU, featuring a 32-bit ARM
Cortex® M0 core.
With the addition of the M0 board, the
Arduino family becomes larger with a new
member providing increased performance.
LPWAN - Sigfox
● 12Byte data
● 140 message/day
Sigfox
backend
OHF Server
FieldSensor
Soil Sensor - MEC10
Soil Sensor and Sensor Library
1. Define sensor
2. Define data package (12byte)
3. Get sensor data to data package
4. Packet data to hex string
5. Send data by sigfox module
Example
typedef struct _mec10_data
{
int temp:13; //value range maxiumu: 8000
unsigned int vwc:14; //value range maximum: 10000
unsigned int ec:15; //value range maximum: 20000
unsigned int salinity:15; //value range maximum:20000
unsigned int tds:15; //value range maximum: 20000
unsigned int epsilon:13; //value range maximum: 8200
unsigned int batvol:10;//value range maximum: 1024
bool avaliable:1;
}MEC10Data ;
const int sigfoxPayloadSize = 12; //in byte.
typedef union _sigfox_data_pack
{
MEC10Data mecData;
byte dataArray[sigfoxPayloadSize];
} SigfoxDataPacket;
void encodeMEC10Data(SigfoxDataPacket &data,char* payload)
{
array_to_string(data.dataArray,sigfoxPayloadSize,payload);
}
void array_to_string(byte array[], unsigned int len, char buffer[])
{
for (unsigned int i = 0; i < len; i++)
{
byte nib1 = (array[i] >> 4) & 0x0F;
byte nib2 = (array[i] >> 0) & 0x0F;
buffer[i*2+0] = nib1 < 0xA ? '0' + nib1 : 'A' + nib1 - 0xA;
buffer[i*2+1] = nib2 < 0xA ? '0' + nib2 : 'A' + nib2 - 0xA;
}
buffer[len*2] = '0';
}
void loop()
{
SigfoxDataPacket data;
if(readMEC10Data(data) == 0x00/*ModbusMaster.ku8MBSuccess*/)
{
char sigfoxpayload[sigfoxPayloadSize*2];
encodeMEC10Data(data,sigfoxpayload);
sigfox_atcommand_tx("AT$SF=" + String(sigfoxpayload)+"r");
}
}
Sigfox Data Field
● How to parse raw data on server like…
○ 1cadcee80040001c0075c3bc
● What if difference device type
○ Field sensor
○ Micro weather station
○ ...more
● Solutions:
○ Parser rule by configuration with device id, but should be setting before device online.
○ message type in data filed like Unabiz Message class
■ but payload only 12byte!
source:https://unabiz.github.io/unashield/
Dashboard Base on InfluxDB
Q & A
感謝
陳幸延 - Open Hack Farm
Victor Sue - Pegatron
YK - NTHU
王祥恒 – NTU
Ray Tai– Might
Antony – LaBest
Owen – LaBest
Jimmy - LaBest
王英傑 - 公信電子
哈爸 - LASS
Owen - MakerPRO
沒有人 - g0v

More Related Content

Similar to Agrino 應用於農業感測的開源專案

Similar to Agrino 應用於農業感測的開源專案 (20)

OpenTelemetry Introduction
OpenTelemetry Introduction OpenTelemetry Introduction
OpenTelemetry Introduction
 
IRJET - Live and Smart Agriculture
IRJET - Live and Smart AgricultureIRJET - Live and Smart Agriculture
IRJET - Live and Smart Agriculture
 
IOT Personal Weather Station
IOT Personal Weather StationIOT Personal Weather Station
IOT Personal Weather Station
 
IRJET- Smart Management of Crop Cultivation using IoT and Machine Learning
IRJET- Smart Management of Crop Cultivation using IoT and Machine LearningIRJET- Smart Management of Crop Cultivation using IoT and Machine Learning
IRJET- Smart Management of Crop Cultivation using IoT and Machine Learning
 
IRJET- Agricultural Parameters Monitoring System using IoT
IRJET- Agricultural Parameters Monitoring System using IoTIRJET- Agricultural Parameters Monitoring System using IoT
IRJET- Agricultural Parameters Monitoring System using IoT
 
Smart Environment Monitoring Display Using IOT
Smart Environment Monitoring Display Using IOTSmart Environment Monitoring Display Using IOT
Smart Environment Monitoring Display Using IOT
 
Industrial Hazard Monitoring using IOT
Industrial Hazard Monitoring using IOTIndustrial Hazard Monitoring using IOT
Industrial Hazard Monitoring using IOT
 
IRJET- Automated Smart Greenhouse Environment using IoT
IRJET- Automated Smart Greenhouse Environment using IoTIRJET- Automated Smart Greenhouse Environment using IoT
IRJET- Automated Smart Greenhouse Environment using IoT
 
Presentation On Advance Monitoring of Cold chain truck
Presentation On Advance Monitoring of Cold chain truckPresentation On Advance Monitoring of Cold chain truck
Presentation On Advance Monitoring of Cold chain truck
 
Advanced Rescue and Monitoring Robot for Coal Mine
Advanced Rescue and Monitoring Robot for Coal MineAdvanced Rescue and Monitoring Robot for Coal Mine
Advanced Rescue and Monitoring Robot for Coal Mine
 
A RESEARCH PAPER ON SMART AGRICULTURE SYSTEM USING IOT
A RESEARCH PAPER ON SMART AGRICULTURE SYSTEM USING IOTA RESEARCH PAPER ON SMART AGRICULTURE SYSTEM USING IOT
A RESEARCH PAPER ON SMART AGRICULTURE SYSTEM USING IOT
 
IRJET- Smart Irrigation System and Crop Prediction
IRJET-  	  Smart Irrigation System and Crop PredictionIRJET-  	  Smart Irrigation System and Crop Prediction
IRJET- Smart Irrigation System and Crop Prediction
 
A Survey on Solar Based Smart Antibiotic Sprinkler System Using Internet of T...
A Survey on Solar Based Smart Antibiotic Sprinkler System Using Internet of T...A Survey on Solar Based Smart Antibiotic Sprinkler System Using Internet of T...
A Survey on Solar Based Smart Antibiotic Sprinkler System Using Internet of T...
 
IRJET - Drip Irrigation in Agricultural Land through Android Mobile Application
IRJET - Drip Irrigation in Agricultural Land through Android Mobile ApplicationIRJET - Drip Irrigation in Agricultural Land through Android Mobile Application
IRJET - Drip Irrigation in Agricultural Land through Android Mobile Application
 
IRJET - Study on Smart Air Pollution Monitoring System based on IoT
IRJET - Study on Smart Air Pollution Monitoring System based on IoTIRJET - Study on Smart Air Pollution Monitoring System based on IoT
IRJET - Study on Smart Air Pollution Monitoring System based on IoT
 
IRJET- Raspberry Pi and NodeMCU based Home Automation System
IRJET- Raspberry Pi and NodeMCU based Home Automation SystemIRJET- Raspberry Pi and NodeMCU based Home Automation System
IRJET- Raspberry Pi and NodeMCU based Home Automation System
 
IRJET- Air and Sound Pollution Monitoring System using IoT
IRJET- Air and Sound Pollution Monitoring System using IoTIRJET- Air and Sound Pollution Monitoring System using IoT
IRJET- Air and Sound Pollution Monitoring System using IoT
 
OPENCoastS: An open-access service for producing on-demand coastal hydrodynam...
OPENCoastS: An open-access service for producing on-demand coastal hydrodynam...OPENCoastS: An open-access service for producing on-demand coastal hydrodynam...
OPENCoastS: An open-access service for producing on-demand coastal hydrodynam...
 
IRJET- Design and Development of Low Power Sensor Node For Plant Monitori...
IRJET-  	  Design and Development of Low Power Sensor Node For Plant Monitori...IRJET-  	  Design and Development of Low Power Sensor Node For Plant Monitori...
IRJET- Design and Development of Low Power Sensor Node For Plant Monitori...
 
IRJET- Electronic Notice Board Remotely Operated using Android Phone
IRJET-  	  Electronic Notice Board Remotely Operated using Android PhoneIRJET-  	  Electronic Notice Board Remotely Operated using Android Phone
IRJET- Electronic Notice Board Remotely Operated using Android Phone
 

More from Kobe Yu (7)

Neural Network File Format for Inference Framework
Neural Network File Format for Inference FrameworkNeural Network File Format for Inference Framework
Neural Network File Format for Inference Framework
 
Tensorflow Lite and ARM Compute Library
Tensorflow Lite and ARM Compute LibraryTensorflow Lite and ARM Compute Library
Tensorflow Lite and ARM Compute Library
 
Halide - 2
Halide - 2 Halide - 2
Halide - 2
 
Halide - 1
Halide - 1Halide - 1
Halide - 1
 
社群與企業之開源專案合作經驗分享:以阿龜微氣候天眼通為例
社群與企業之開源專案合作經驗分享:以阿龜微氣候天眼通為例社群與企業之開源專案合作經驗分享:以阿龜微氣候天眼通為例
社群與企業之開源專案合作經驗分享:以阿龜微氣候天眼通為例
 
FarmHarvestBot 開源授權建議
FarmHarvestBot 開源授權建議FarmHarvestBot 開源授權建議
FarmHarvestBot 開源授權建議
 
機器學習應用於蔬果辨識
機器學習應用於蔬果辨識機器學習應用於蔬果辨識
機器學習應用於蔬果辨識
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 

Agrino 應用於農業感測的開源專案