Drought in Africa - Smart Irrigation System Example Program

Slides:



Advertisements
Similar presentations
IGCSE ICT Control Systems.
Advertisements

While Loops and If-Else Structures
The Dewi Sant Greenhouse Control Project Lesson 2.
VEX and Robot C Chris Patterson Presented by Modified by J. Andazola.
Sentinel Logic Assumes while loops and input statements.
Monitoring and Measurement
1 Ultrasonic Distance Sensor. 2 How it Works The distance sensor emits short bursts of sound and listens for this sound to echo off of nearby objects.
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lab 7P. 1Winter Quarter Stop Light Lab 7.
Control Systems Did you get these? Washing machine Microwave cooker
What Makes a Smart Controller “Smart”?. Definition “Smart controllers are irrigation clocks that automatically adjust irrigation run times in response.
LabVIEW Program and Data Flow Review LabVIEW Robotics Fundamentals.
Golf Course Irrigation
Module 1: Introduction to PLC
The Smart Greenhouse Realization of a smart autonomous Greenhouse Gianluca Belardinelli Istituto Tecnico Industriale Don Orione Fano State Exam
Manage the System Operation. © Irrigation Association Determine the System Interval Intervals during peak and non-peak periods Scheduling with the checkbook.
Material taken from Robotics with the Boe-Bot
Technical Writing for Robotic Coding!.  du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals.
ENGR 101: Robotics Lecture 4 – Making Decisions Outline  The Stall Sensor  Making Decisions  Random Number Generation References 
PROMGRAMING YOUR ROBOT How Servos Work: How to control your robot.
While and If-Else Loops ROBOTC Software. While Loops While loop is a structure within ROBOTC Allows a section of code to be repeated as long as a certain.
ECE 002 Robots and Sensors Group 14. Objectives Research sensors and their usefulness to analyze data Research sensors and their usefulness to analyze.
Topic 10 The Distribution of Organisms. Ecosystem Recall that an ecosystem is defined as a community of living organisms interacting with each other and.
By Mr. Putnam. In Catfall, the goal of the game is to touch the falling cats with the mouse. Every time you touch a cat, your score goes up by one point.
Programming with LabVIEW Intro to programming and.
Topic: Control Statements. Recap of Sequence Control Structure Write a program that accepts the basic salary and allowance amount for an employee and.
Introduction to Sensors and Calibration Factors. Choosing a suitable recording range on a data logger Logger will have several range options: e.g. -10.
VEX and Robot C Chris Patterson Frisco ISD CTE Center Presented by.
Unit 7.6 Lesson 4 Goals: Complete the control system (flowchart) to control all elements of the greenhouse. Test and refine the flowchart to improve how.
Python: Iteration Damian Gordon. Python: Iteration We’ll consider four ways to do iteration: – The WHILE loop – The FOR loop – The DO loop – The LOOP.
Casne.ncl.ac.uk Taking care of the CrumbleBot Please do NOT stress the robot's motors 1.Do NOT push the robot 2.Do NOT hold the.
Forward Until Near Stop when near a wall.
Iteration: FOR, DO, LOOP Loop Damian Gordon. FOR Loop The FOR loop does the same thing as a WHILE loop but is easier if you are using the loop to do a.
Sensor Information: while loops and Boolean Logic.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
DO NOW` 1. Write the equation for the speed of light. 2. What two ways does light behave? DO NOW` 1. Write the equation for the speed of light. 2. What.
Monitoring and Control
Introductory Presentation
Application Case Study Security Camera Controller
Module 1: Introduction to PLC
Raspberry pi controlled greenhouse
Monitoring and Control
Introductory Presentation
Selection Learning Objective: to be able to design algorithms that use selection.
Introductory Presentation
Warm Up: Read the following sentences
Programming – Using a Range Finder
Simple LED circuit.
1. Check reaction 2. Check water 3. Check heater 4. Check gas
Arduino Uno and sensors
Introduction To Flowcharting
Programming – Using a Range Finder
Control GCSE ICT.
Introductory Presentation
Better Line Following with PID
Controlling YOUR ROBOT
Evapotranspiration In Golf Courses
Control GCSE ICT.
Selection Learning Objective: to be able to design algorithms that use selection.
Red lights, yellow lights, and green lights
Some Common Issues: Iteration
What are variables? Or what changes during experiments….
if-else Structures Principles of Engineering
Introduction Digital Mood Ring with TI-Nspire and TI-Innovator™ Hub student STEM project Bring science and coding together (no coding experience necessary)
Module 4 Loops and Repetition 4/4/2019 CSE 1321 Module 4.
LC-3 Control Structures
Introduction Digital Mood Ring with TI-84 Plus CE and TI-Innovator™ Hub student STEM project Bring science and coding together (no coding experience.
Building Complex Behaviors: Actions and States
Obstacle Detection.
Simple Control System.
Project Overview.
Presentation transcript:

Drought in Africa - Smart Irrigation System Example Program for TI-Nspire CX OS 4.5

Background: Example Program Prgm Send "CONNECT LIGHTLEVEL 1 TO IN 1” Send "CONNECT DHT 1 TO IN 2” Send "CONNECT MOISTURE 1 TO IN 3” Send "RANGE LIGHTLEVEL 1 0 100” Send "RANGE MOISTURE 1 0 100” Send "CONNECT ANALOG.OUT 1 TO OUT 1” © ANALOG.OUT 1 is the object that sets the power level of the MOSFET and the speed of the pump Disp "Warming Up Sensors!” temperature:=−273 While temperature<−270 Send "READ DHT 1 TEMPERATURE” Get temperature Wait 1 EndWhile DispAt 1,”Sensors ready” For n,1,50 Send "READ LIGHTLEVEL 1” Get light Send "READ MOISTURE 1” Get moisture Send "READ DHT 1 TEMPERATURE” Get temperature Send "READ DHT 1 HUMIDITY” Get humidity DispAt 3,"T=",temperature DispAt 4,"H=",humidity DispAt 5,"L=",light DispAt 6,"M=",moisture Wait 1 If light<10 and moisture<5 Then Disp ”Good condition to pump” Send “SET ANALOG.OUT 1 128 TIME 3” Else Disp “Not a good condition to pump” EndIf EndFor EndPrgm Some possible challenges/tasks Have the students create the code to determine if the DHT sensor is warmed up or not. Have the students try simple If-Then-Else statements for determining the best conditions to pump Have the students create decision statements that incorporate multiple sensors using and and or. Incorporate light level, moisture, temperature and humidity into the decision to set the pump or not. Discuss and try different threshold values for the best conditions to pump or not. Try the pump at different levels (0-255) (and observe interaction with the soil) Try different patterns for pumping the water (trickle, pulse,…) Can you restructure the program to use a While loop with a way for you to stop the program instead of a For loop. …

Background: Example Program Prgm Send "CONNECT ANALOG.OUT 1 TO OUT 1” © ANALOG.OUT 1 is the object that sets the power level of the MOSFET and the speed of the pump. For n,1,5 Send "SET ANALOG.OUT 1 eval(45*n)” Wait 3 Send "SET ANALOG.OUT 1 0” EndFor EndPrgm The loop pulses the pump in 3 second increments at increasing power levels from the MOSFET starting at level 45 and growing to 225 in steps of 45. The pump stays on during a 3 second waiting period followed by a command to turn the pump off (power level 0). Some possible challenges/tasks Try the pump at different levels (0-255) (and observe interaction with the soil) Try different patterns for pumping the water (trickle, pulse,…) …

Background: Control System