SlideShare ist ein Scribd-Unternehmen logo
1 von 3
Importing the Adafruit_MotorShield library which is
necessary for running stepper motors. Creating the motor
objects
https://github.com/adafruit/Adafruit_Motor_Shield_V2_Li
brary/blob/master/Adafruit_MotorShield.h
Defining variables
Starts logging the time, starts sending current to the
switch input and measuring whether current leaves the
switch. Starts the valve closed
This is a loop, i.e. the Arduino does this continuously while
the pump is running. It reads the pressure, reads the time,
and checks if enough iterations (1000) have passed for it
to take the running average of its last few pressure reads.
If not it keeps iterating
If enough iterations have passed it takes the running
average, resets its iterator (iter and pressureSum) and
starts deciding what to do.
If the voltage is tiny or negative, the circuit is broken, it
does nothing and notifies the user.
If the sliding switch is closed it does nothing and reports
the closure. Since the switch input is set to Input_Pullup,
HIGH means its closed, and LOW means its open. This
creates resistance to environmental perturbations.
If pressure is far above threshold it opens the valve to
release pressure
If pressure is far below threshold it closes valve and takes
a step
Mission accomplished! We’re within tolerance
of the set point! First, close the valve
Occasional steps to make sure flow is
maintained. Otherwise no step
Based on experimental data, maps sensor
voltage outputs to actual pressures (data not
reported here)
Heaviside/Unit Step function. Part of
timekeeping algorithm.

Weitere ähnliche Inhalte

Was ist angesagt?

How to use a digital multimeter
How to use a digital multimeterHow to use a digital multimeter
How to use a digital multimeterJim Licht
 
Analog multimeter and ohmmeter
Analog multimeter and ohmmeterAnalog multimeter and ohmmeter
Analog multimeter and ohmmeterRahul Ranjan
 
Brookfield Dial Viscometer Technical Brochures for Models LVT, RVT, HAT, HBT
Brookfield Dial Viscometer Technical Brochures for Models LVT, RVT, HAT, HBTBrookfield Dial Viscometer Technical Brochures for Models LVT, RVT, HAT, HBT
Brookfield Dial Viscometer Technical Brochures for Models LVT, RVT, HAT, HBTDFT TECH
 
Measuring tools and instruments
Measuring tools and instrumentsMeasuring tools and instruments
Measuring tools and instrumentsRhocell Cupino
 
Physics Lab Equipment And Their Uses
Physics Lab Equipment And Their UsesPhysics Lab Equipment And Their Uses
Physics Lab Equipment And Their UsesNitendra Kumar Singh
 
Digital & Analog Mulitmeters
Digital & Analog MulitmetersDigital & Analog Mulitmeters
Digital & Analog MulitmetersDhruv Shah
 
Physics Lab Equipment and Its Type
Physics Lab Equipment and Its TypePhysics Lab Equipment and Its Type
Physics Lab Equipment and Its TypeAbhishek Nayak
 
Multimeter+basics+step+by+step
Multimeter+basics+step+by+stepMultimeter+basics+step+by+step
Multimeter+basics+step+by+stepCDKTCaoThangBMDTCN
 
Electrical testing equipment clamp meters- Usage, operations and Safety
Electrical testing equipment   clamp meters- Usage, operations and SafetyElectrical testing equipment   clamp meters- Usage, operations and Safety
Electrical testing equipment clamp meters- Usage, operations and SafetyAniruddha Kulkarni
 
Appendix 6 prelab powerpoint
Appendix 6   prelab powerpointAppendix 6   prelab powerpoint
Appendix 6 prelab powerpointeric_hauenstein
 
Digital multimeter
Digital multimeterDigital multimeter
Digital multimeterVivek Pathak
 
Digital multimeters
Digital multimetersDigital multimeters
Digital multimetersB.k. Das
 
Vom reading
Vom  readingVom  reading
Vom readingEMEC101
 
Hioki short-catalog-field-measuring-instruments-2020
Hioki short-catalog-field-measuring-instruments-2020Hioki short-catalog-field-measuring-instruments-2020
Hioki short-catalog-field-measuring-instruments-2020NIHON DENKEI SINGAPORE
 
3 axis accelorometer- ADXL345
3 axis accelorometer- ADXL3453 axis accelorometer- ADXL345
3 axis accelorometer- ADXL345Raghav Shetty
 

Was ist angesagt? (20)

How to use a digital multimeter
How to use a digital multimeterHow to use a digital multimeter
How to use a digital multimeter
 
Analog multimeter and ohmmeter
Analog multimeter and ohmmeterAnalog multimeter and ohmmeter
Analog multimeter and ohmmeter
 
Brookfield Dial Viscometer Technical Brochures for Models LVT, RVT, HAT, HBT
Brookfield Dial Viscometer Technical Brochures for Models LVT, RVT, HAT, HBTBrookfield Dial Viscometer Technical Brochures for Models LVT, RVT, HAT, HBT
Brookfield Dial Viscometer Technical Brochures for Models LVT, RVT, HAT, HBT
 
Measuring tools and instruments
Measuring tools and instrumentsMeasuring tools and instruments
Measuring tools and instruments
 
Lab 2 multimeter
Lab 2 multimeterLab 2 multimeter
Lab 2 multimeter
 
Physics Lab Equipment And Their Uses
Physics Lab Equipment And Their UsesPhysics Lab Equipment And Their Uses
Physics Lab Equipment And Their Uses
 
Digital & Analog Mulitmeters
Digital & Analog MulitmetersDigital & Analog Mulitmeters
Digital & Analog Mulitmeters
 
Physics Lab Equipment and Its Type
Physics Lab Equipment and Its TypePhysics Lab Equipment and Its Type
Physics Lab Equipment and Its Type
 
Multimeter+basics+step+by+step
Multimeter+basics+step+by+stepMultimeter+basics+step+by+step
Multimeter+basics+step+by+step
 
Electrical testing equipment clamp meters- Usage, operations and Safety
Electrical testing equipment   clamp meters- Usage, operations and SafetyElectrical testing equipment   clamp meters- Usage, operations and Safety
Electrical testing equipment clamp meters- Usage, operations and Safety
 
Appendix 6 prelab powerpoint
Appendix 6   prelab powerpointAppendix 6   prelab powerpoint
Appendix 6 prelab powerpoint
 
Digital multimeter
Digital multimeterDigital multimeter
Digital multimeter
 
Clamp meter
Clamp meterClamp meter
Clamp meter
 
Ohmmeter
OhmmeterOhmmeter
Ohmmeter
 
Digital multimeter
Digital multimeterDigital multimeter
Digital multimeter
 
Digital multimeters
Digital multimetersDigital multimeters
Digital multimeters
 
Vom reading
Vom  readingVom  reading
Vom reading
 
Hioki short-catalog-field-measuring-instruments-2020
Hioki short-catalog-field-measuring-instruments-2020Hioki short-catalog-field-measuring-instruments-2020
Hioki short-catalog-field-measuring-instruments-2020
 
Summer 2015 Internship
Summer 2015 InternshipSummer 2015 Internship
Summer 2015 Internship
 
3 axis accelorometer- ADXL345
3 axis accelorometer- ADXL3453 axis accelorometer- ADXL345
3 axis accelorometer- ADXL345
 

Andere mochten auch

Claudia Milena Guerrero Bañol
Claudia Milena Guerrero Bañol	Claudia Milena Guerrero Bañol
Claudia Milena Guerrero Bañol astrydquintero
 
Fernandavillacres slideshare
Fernandavillacres slideshareFernandavillacres slideshare
Fernandavillacres slideshareFernandaSol39
 
Julian Botero Vallecilla Taller practico
Julian Botero Vallecilla Taller practicoJulian Botero Vallecilla Taller practico
Julian Botero Vallecilla Taller practicoastrydquintero
 
Євдокимова Ж. О
Євдокимова Ж. ОЄвдокимова Ж. О
Євдокимова Ж. ОSchoolno1Kovel
 
Aprendizaje ubicuo
Aprendizaje ubicuo Aprendizaje ubicuo
Aprendizaje ubicuo pealem
 
Екологічне вихованні на уроках географії
Екологічне вихованні на уроках географії Екологічне вихованні на уроках географії
Екологічне вихованні на уроках географії Schoolno1Kovel
 
DEMOKRATIE >< CETA_2016de
DEMOKRATIE >< CETA_2016deDEMOKRATIE >< CETA_2016de
DEMOKRATIE >< CETA_2016deFESD GKr
 
Білінська В. С
Білінська В. СБілінська В. С
Білінська В. СSchoolno1Kovel
 
презентация 23 (3)
презентация 23 (3)презентация 23 (3)
презентация 23 (3)Maria Spitsyna
 
день здоровья
день здоровьядень здоровья
день здоровьяMaria Spitsyna
 
Roger Weissberg Slides
Roger Weissberg SlidesRoger Weissberg Slides
Roger Weissberg Slidesyouth_nex
 

Andere mochten auch (16)

Claudia Milena Guerrero Bañol
Claudia Milena Guerrero Bañol	Claudia Milena Guerrero Bañol
Claudia Milena Guerrero Bañol
 
TICMUNDIAL
TICMUNDIALTICMUNDIAL
TICMUNDIAL
 
Портфоліо
ПортфоліоПортфоліо
Портфоліо
 
Fernandavillacres slideshare
Fernandavillacres slideshareFernandavillacres slideshare
Fernandavillacres slideshare
 
Griega
GriegaGriega
Griega
 
Julian Botero Vallecilla Taller practico
Julian Botero Vallecilla Taller practicoJulian Botero Vallecilla Taller practico
Julian Botero Vallecilla Taller practico
 
Євдокимова Ж. О
Євдокимова Ж. ОЄвдокимова Ж. О
Євдокимова Ж. О
 
Aprendizaje ubicuo
Aprendizaje ubicuo Aprendizaje ubicuo
Aprendizaje ubicuo
 
Екологічне вихованні на уроках географії
Екологічне вихованні на уроках географії Екологічне вихованні на уроках географії
Екологічне вихованні на уроках географії
 
DEMOKRATIE >< CETA_2016de
DEMOKRATIE >< CETA_2016deDEMOKRATIE >< CETA_2016de
DEMOKRATIE >< CETA_2016de
 
Білінська В. С
Білінська В. СБілінська В. С
Білінська В. С
 
презентация 23 (3)
презентация 23 (3)презентация 23 (3)
презентация 23 (3)
 
день здоровья
день здоровьядень здоровья
день здоровья
 
Roger Weissberg Slides
Roger Weissberg SlidesRoger Weissberg Slides
Roger Weissberg Slides
 
Life on Clouds: a forensics overview
Life on Clouds: a forensics overviewLife on Clouds: a forensics overview
Life on Clouds: a forensics overview
 
REAL TIME DATA TRANSFER VIA VIDEO USING REVERSIBLE DATA HIDING TECHNIQUE
REAL TIME DATA TRANSFER VIA VIDEO USING REVERSIBLE DATA HIDING TECHNIQUEREAL TIME DATA TRANSFER VIA VIDEO USING REVERSIBLE DATA HIDING TECHNIQUE
REAL TIME DATA TRANSFER VIA VIDEO USING REVERSIBLE DATA HIDING TECHNIQUE
 

Ähnlich wie Program on Demand

Twin wheeler modified for arduino simplified serial protocol to sabertooth v22
Twin wheeler modified for arduino simplified serial protocol to sabertooth v22Twin wheeler modified for arduino simplified serial protocol to sabertooth v22
Twin wheeler modified for arduino simplified serial protocol to sabertooth v22josnihmurni2907
 
04 ptcc protection feautres
04 ptcc protection feautres04 ptcc protection feautres
04 ptcc protection feautresduytn1
 
Plant monitoring system
Plant monitoring systemPlant monitoring system
Plant monitoring systemSai Kumar
 
plantmonitoringsystem-180116071636 (1).pdf
plantmonitoringsystem-180116071636 (1).pdfplantmonitoringsystem-180116071636 (1).pdf
plantmonitoringsystem-180116071636 (1).pdfSohailShaikh581630
 
Dg synchronisation process
Dg synchronisation processDg synchronisation process
Dg synchronisation processVNIT Nagpur
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYArduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYVishnu
 
Instrumentation Interview Q&A EMERSON EDUARDO RODRIGUES
Instrumentation Interview Q&A EMERSON EDUARDO RODRIGUESInstrumentation Interview Q&A EMERSON EDUARDO RODRIGUES
Instrumentation Interview Q&A EMERSON EDUARDO RODRIGUESEMERSON EDUARDO RODRIGUES
 
LCE12: How to measure SoC power
LCE12: How to measure SoC powerLCE12: How to measure SoC power
LCE12: How to measure SoC powerLinaro
 
Basic Instrument Presentation ( pressure )
Basic Instrument Presentation ( pressure  )Basic Instrument Presentation ( pressure  )
Basic Instrument Presentation ( pressure )Aziz u rehman Jamali
 
Automatic Plant Irrigator -Mini Project ECE(without micro controller)
Automatic Plant Irrigator -Mini Project ECE(without micro controller) Automatic Plant Irrigator -Mini Project ECE(without micro controller)
Automatic Plant Irrigator -Mini Project ECE(without micro controller) Sushant Shankar
 
Twin wheeler modified for arduino simplified serial protocol to sabertooth v21
Twin wheeler modified for arduino simplified serial protocol to sabertooth v21Twin wheeler modified for arduino simplified serial protocol to sabertooth v21
Twin wheeler modified for arduino simplified serial protocol to sabertooth v21josnihmurni2907
 
Sushant 131119022958-phpapp02
Sushant 131119022958-phpapp02Sushant 131119022958-phpapp02
Sushant 131119022958-phpapp02K. Suresh Kumar
 
Various electronic equipments used in any industry
Various electronic equipments used in any industryVarious electronic equipments used in any industry
Various electronic equipments used in any industryJatin Chauhan
 

Ähnlich wie Program on Demand (20)

Twin wheeler modified for arduino simplified serial protocol to sabertooth v22
Twin wheeler modified for arduino simplified serial protocol to sabertooth v22Twin wheeler modified for arduino simplified serial protocol to sabertooth v22
Twin wheeler modified for arduino simplified serial protocol to sabertooth v22
 
04 ptcc protection feautres
04 ptcc protection feautres04 ptcc protection feautres
04 ptcc protection feautres
 
Plant monitoring system
Plant monitoring systemPlant monitoring system
Plant monitoring system
 
plantmonitoringsystem-180116071636 (1).pdf
plantmonitoringsystem-180116071636 (1).pdfplantmonitoringsystem-180116071636 (1).pdf
plantmonitoringsystem-180116071636 (1).pdf
 
Dg synchronisation process
Dg synchronisation processDg synchronisation process
Dg synchronisation process
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYArduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIY
 
Vt plc
Vt plcVt plc
Vt plc
 
Instrumentation Interview Q&A EMERSON EDUARDO RODRIGUES
Instrumentation Interview Q&A EMERSON EDUARDO RODRIGUESInstrumentation Interview Q&A EMERSON EDUARDO RODRIGUES
Instrumentation Interview Q&A EMERSON EDUARDO RODRIGUES
 
LCE12: How to measure SoC power
LCE12: How to measure SoC powerLCE12: How to measure SoC power
LCE12: How to measure SoC power
 
Basic Instrument Presentation ( pressure )
Basic Instrument Presentation ( pressure  )Basic Instrument Presentation ( pressure  )
Basic Instrument Presentation ( pressure )
 
Fy3610821086
Fy3610821086Fy3610821086
Fy3610821086
 
Automatic Plant Irrigator -Mini Project ECE(without micro controller)
Automatic Plant Irrigator -Mini Project ECE(without micro controller) Automatic Plant Irrigator -Mini Project ECE(without micro controller)
Automatic Plant Irrigator -Mini Project ECE(without micro controller)
 
Arduino
ArduinoArduino
Arduino
 
Twin wheeler modified for arduino simplified serial protocol to sabertooth v21
Twin wheeler modified for arduino simplified serial protocol to sabertooth v21Twin wheeler modified for arduino simplified serial protocol to sabertooth v21
Twin wheeler modified for arduino simplified serial protocol to sabertooth v21
 
E textiles tutorial
E textiles tutorialE textiles tutorial
E textiles tutorial
 
I/O Ports
I/O Ports I/O Ports
I/O Ports
 
Sushant 131119022958-phpapp02
Sushant 131119022958-phpapp02Sushant 131119022958-phpapp02
Sushant 131119022958-phpapp02
 
Irrigation
IrrigationIrrigation
Irrigation
 
Automated Irrigation
Automated IrrigationAutomated Irrigation
Automated Irrigation
 
Various electronic equipments used in any industry
Various electronic equipments used in any industryVarious electronic equipments used in any industry
Various electronic equipments used in any industry
 

Program on Demand

  • 1. Importing the Adafruit_MotorShield library which is necessary for running stepper motors. Creating the motor objects https://github.com/adafruit/Adafruit_Motor_Shield_V2_Li brary/blob/master/Adafruit_MotorShield.h Defining variables Starts logging the time, starts sending current to the switch input and measuring whether current leaves the switch. Starts the valve closed
  • 2. This is a loop, i.e. the Arduino does this continuously while the pump is running. It reads the pressure, reads the time, and checks if enough iterations (1000) have passed for it to take the running average of its last few pressure reads. If not it keeps iterating If enough iterations have passed it takes the running average, resets its iterator (iter and pressureSum) and starts deciding what to do. If the voltage is tiny or negative, the circuit is broken, it does nothing and notifies the user. If the sliding switch is closed it does nothing and reports the closure. Since the switch input is set to Input_Pullup, HIGH means its closed, and LOW means its open. This creates resistance to environmental perturbations. If pressure is far above threshold it opens the valve to release pressure If pressure is far below threshold it closes valve and takes a step
  • 3. Mission accomplished! We’re within tolerance of the set point! First, close the valve Occasional steps to make sure flow is maintained. Otherwise no step Based on experimental data, maps sensor voltage outputs to actual pressures (data not reported here) Heaviside/Unit Step function. Part of timekeeping algorithm.