Prepared By:
Riyaz Sarvaiya(09BEC078)
Pankaj Khodifad(09BEC027)
Guided By:
Prof. Sachin Gajjar and Asst. Prof. Amit Degada
(Electronics and Communication department)
Minor Project
Institute of Technology
Outline(Review-I)
• Introduction
• Drip Irrigation
• Wireless Implementation
• MSP430 Kit
• TinyOS
• Conclusion
• Reference
Introduction
• Humanity depends on agriculture and water forsurvival
• New trends have emerged in precision agriculture
• More demand for controlling agriculture practices
• horticulture to field crop production
• Concerns pre- and post-production aspects ofagriculture enterprises.
Drip Irrigation
• Saves water up to 70%. More land can be irrigated with theavailable water
• Crop grows consistently, healthier and mature fast
• Early maturity results in higher and faster returns on investment
• Increase in Crop area up to 50%
• Fertilizer use efficiency increases by 30%
• Undulating & hilly lands can be brought under cultivation
Wireless Implementation
Wireless Implementation
Wireless Implementation
MSP430 Kit
MSP430 Kit
MSP430 Kit Feature
• 100-pin socket for MSP430F5438• Power Supply sources: USB, FET, 2x AA batteries• Digital I/O Pins: 34• Accessible analog inputs (12-bit ADC): 5• PWM outputs: 12• Flash Memory (MSP430F5438): 256KB• RAM (MSP430F5438): 16KB• Clock Speed (MSP430F5438): 18MHz• Communication (MSP430F5438):• 4x UART/LIN/IrDA/SPI• 4x I2C/SPI• 5-position joystick (up, down, left, right, push down)
MSP430 Kit Feature
• 2 push buttons• 2 LEDs• 138x110 grayscale, dot-matrix LCD• 3-Axis Accelerometer (ADXL330)• Microphone (Amplified by TLV2760)• 3.5mm audio output jack (Features TPA301, 350mW Mono Audio Power
Amplifier)• Support for TI Low Power RF Wireless Evaluation Modules and eZ430-
RF2500T. Currently supported modules:• CC1100/CC1101EMK – Sub-1GHz radio• CC2500EMK – 2.4 GHz radio• CC2420/CC2430EMK – 2.4 GHz 802.15.4 radio• CC2520/CC2530EMK – 2.4 GHz 802.15.4 radio• USB connectivity for data transfer• JTAG header for real-time, in-system programming
MSP430 Kit Project(Blinking LED)
MSP430 Kit Project(Blinking LED)
MSP430 Kit Project(Blinking LED)
MSP430 Kit Project(Blinking LED)
MSP430 Kit Project(Blinking LED)
MSP430 Kit Project(Blinking LED)
MSP430 Kit Project(Blinking LED)
MSP430 Kit Project(Blinking LED)
MSP430 Kit Demo Project
MSP430 Kit Demo Project
MSP430 Kit Demo Project
MSP430 Kit Demo Project
MSP430 Kit Demo Project
MSP430 Kit Demo Project
MSP430 Kit Demo Project
MSP430 Kit Demo Project
MSP430 Kit Demo Project
MSP430 Kit Demo Project
MSP430 Kit Demo Project
MSP430 Kit Demo Project
MSP430 Kit Demo Project
USB debugging interface (MSP-FET430UIF)
• A TI Flash Emulation Tool required to program and debug
devices on the experimenter board.
• Software configurable supply voltage between 1.8 and 3.6
volts at 100mA
• Supports JTAG Security Fuse blow to protect code
• Supports all MSP430 boards with JTAG header
• Supports both JTAG and Spy-Bi-Wire (2-wire JTAG) debug
protocols
OUTLINE
Required OS for low power application
Why TinyOS?
Programming in TinyOS
Hardware
Example : Blink
Example : Dissemination Protocol
Conclusion
Reference
OUTLINE of Review II
Required OS for low power
application
1. Small memory footprint
2. Low power consumption
3. Concurrency intensive operation
4. Diversity in design and usage
5. Robust operation
Problems with traditional OS
• The traditional OS is too big (Memory)
• It was not build considering constraints for energy and power
• It has a multithreaded architecture so it leaves large memory
footprint
Need a new OS…
Why TinyOS?
Developer Tiny OS Alliance
Programmed in nesC
OS Family Embedded operating systems
Source model Open Source
Initial Release 0.43 (2000)
Latest Release 2.1.1 (April,2010)
Marketing Target Wireless Sensor Networks
Why TinyOS?
• It features a Component based Architecture
• It has a single Stack
– used by both Interrupt and function calls
• Tasks are non-preemptive
• Tasks run in FIFO order
• It does not have Kernel because of direct hardwaremanipulation
• TinyOS's component library includes network protocols,distributed services, sensor drivers, and data acquisitiontools
Why TinyOS?
Three file needed in same folder(suppose „Blink‟)
1. Configuration file nesC file (e.g. BlinkAppC.nc)
2. Component file nesC file (e.g. BlinkC.nc)
3. Make file Contains TinyOS commands (e.g. Makefile)
Programming in TinyOS
Example : Blink
BlinkAppC.nc (Configuration file)
configuration BlinkAppC {}implementation {
components MainC, BlinkC, LedsC;components new TimerMilliC() as Timer0;components new TimerMilliC() as Timer1;
BlinkC -> MainC.Boot;
BlinkC.Timer0 -> Timer0;
BlinkC.Timer1 -> Timer1;
BlinkC.Leds -> LedsC;
}
BlinkC.nc (Component file)
#include "Timer.h"
module BlinkC {
uses interface Timer<TMilli> as Timer0;
uses interface Timer<TMilli> as Timer1;
uses interface Leds;
uses interface Boot;
}
implementation {
// In next slide
Example : Blink (cont.)
BlinkC.nc (Component file)
implementation {event void Boot.booted(){
call Timer0.startPeriodic( 500 );call Timer1.startPeriodic( 1000 );
}event void Timer0.fired(){
call Leds.led0Toggle();}event void Timer1.fired(){
call Leds.led1Toggle();}
}
Example : Blink (cont.)
Makefile (Make file )
COMPONENT=BlinkAppC
include $ (MAKERULES)
Example : Blink (cont.)
Compile
make iris
Dumpmake iris install,<node id> mib520,<serial port>make iris install,4 mib520,com8 (In Windows)
make iris install,4 mib520,/dev/ttyUSB0 (In Linux)
Blink Video
Example : Blink (cont.)
• Dissemination is a service for establishing eventual consistency on a sharedvariable.
• It allows administrators to reconfigure, query, and reprogram a network.
Program:1. EasyDisseminationC.nc:-
Component (Module) file, contains implementation.
2. EasyDisseminationAppC.nc:- Configuration file, contains wiring.
3. Makefile: - For compilation.
Dissemination Video
Example : Dissemination
• “IRIS”:- Radio Module– IEEE 802.15.4 compliant RF transceiver
– 2.4 to 2.48 GHz, an ISM band
– 250 kbps data rate
• Sensorboards:-– MTS300
• Light
• Temperature
• Acoustic
• Sounder
– MDA100• Light
• Temperature
• General Prototyping area.
Hardware
• Exploration of the kit MSP430
• Basics of TinyOS
Conclusion (Review-I)
1. http://processors.wiki.ti.com/index.php/MSP-EXP430F5438_Experimenter_Board
2. http://www.ti.com/product/msp430f5438
3. www.jains.com
4. http://www.ti.com/tool/msp-exp430f5438
5. "A wireless application of drip irrigation automation supported by soil moisture sensors" by
Mahir Dursun and Semih Ozden in Scientific Research and Essays Vol. 6(7)
6. http://en.wikipedia.org/wiki/Wsn
7. http://en.wikipedia.org/wiki/TinyOS
8. http://docs.tinyos.net/index.php/Installing_TinyOS_2.1#Manual_installation_on_your_host_OS_
with_RPMs
9. http://docs.tinyos.net/index.php/TinyOS_Tutorials
10. http://www.tinyos.net/tinyos-2.x/doc/html/tep118.html
11. http://docs.tinyos.net/index.php/Network_Protocols
12. http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder
References
1. MSP430
1. RF Intrerface with CC2500
2. TinyOS1. Multihop dissemination protocol
2. DYMO protocol
Outline for Review-II
CC2500 Kit Introduction
CC2500 Kit Introduction
CC2500 Kit Introduction
SENSORS
For the automated drip irrigation sensors are required
to sense necessary data and microcontroller is required
to controlled the whole system.
SensorsHumidity sensor
Temperature Sensor
Soil Moisture Sensor (Watermark)leaf wetness sensor
etc..
Humidity sensor
• Humidity sensors are used for determining the moisture content.
• Therefore, an accurate and precise means of testing moisture content in grain will help farmers monitor their crops.
• Moisture content measurements are important to sampling grain water content, field water content, and storage water content.
Humidity Sensor (808H5V5)
• Measurement range: 0 ~ 100%RH• Output signal: 0,8 ~ 3.9V (25ºC)• Accuracy: <±4%RH (a 25ºC, range
30 ~ 80%), <±6%RH (range 0 ~ 100)
• Typical consumption: 0.38mA• Maximum consumption: 0.5mA• Power supply: 5VDC ±5%• Operation temperature: -40 ~
+85ºC• Storage temperature: -55 ~
+125ºC• Response time: <15 seconds
Humidity Sensor (808H5V5)
Temperature Sensor• A thermocouple consists of two conductors of
different materials (usually metal alloys) thatproduce a voltage in the vicinity of the pointwhere the two conductors are in contact.
Temperature Sensor (MCP9700A)
• Measurement range: -40ºC ~ +125ºC
• Output voltage (0ºC): 500mV• Sensitivity: 10mV/ºC• Accuracy: ±2ºC (range 0ºC ~
+70ºC), ±4ºC (range -40 ~ +125ºC)• Typical consumption: 6μA• Maximum consumption: 12μA• Power supply: 2.3 ~ 5.5V• Operation temperature: -40 ~
+125ºC• Storage temperature: -65 ~ 150ºC• Response time: 1.65 seconds
(63% of the response for a range from +30 to +125ºC)
Temperature Sensor (MCP9700A)
Soil Moisture Sensor (Watermark)
• Measurement range: 0 ~ 200cb
• Frequency Range: 50 ~ 10000Hz approximately
• Diameter: 22mm
• Length: 76mm
• Terminals: AWG 20
leaf wetness sensor
• Leaf wetness is an meteorological parameter that describes the amount of dew and precipitation left on surfaces.
• It is used for monitoring leaf moisture for agricultural purposes, such as fungus and disease control, for control of irrigation systems, and for detection of fog and dew conditions, and early detection of rainfall.
leaf wetness sensor
• Resistance Range: 5kΩ ~ >2MΩ
• Output Voltage Range: 1V ~ 3.3V
• Length: 3.95cm
• Width: 1.95 cm