SlideShare a Scribd company logo
1 of 6
Download to read offline
Flex Sensor 
Hang Do Thi Duc | Jane McDonough | Hsuan Chou
https://www.youtube.com/watch?v=1TfKs-PUL4U
https://www.youtube.com/watch?v=PIhmBszYHOU
void setup() { 
Serial.begin(9600); 
// the array elements are numbered from 0 to (pinCount - 1). 
// use a for loop to initialize each pin as an output: 
pinMode(A0, INPUT); 
} 
! 
void loop() { 
//mapped range for flex sensor is 0 - 24 
int flex = analogRead(A0); 
Serial.println(flex); 
! 
if (flex <= 4) { 
digitalWrite(2, HIGH); 
delay(100); 
digitalWrite(2, LOW); 
} 
else if (flex <= 8){ 
digitalWrite(3, HIGH); 
delay(100); 
digitalWrite(3, LOW); 
} 
else if (flex <= 12){ 
digitalWrite(4, HIGH); 
delay(100); 
digitalWrite(4, LOW); 
} 
else if (flex <= 16){ 
digitalWrite(5, HIGH); 
delay(100); 
digitalWrite(5, LOW); 
} 
else if (flex <= 20){ 
digitalWrite(6, HIGH); 
delay(100); 
digitalWrite(6, LOW); 
} 
else if (flex <= 25){ 
digitalWrite(7, HIGH); 
delay(100); 
digitalWrite(7, LOW); 
} 
}
Flex sensor

More Related Content

Viewers also liked

A seminar report on flex sensor
A seminar report on flex sensor A seminar report on flex sensor
A seminar report on flex sensor Vatsal N Shah
 
Gesture controlling of Robots
Gesture controlling of Robots Gesture controlling of Robots
Gesture controlling of Robots Jibin Poulose
 
Magic glove( sign to voice conversion)
Magic glove( sign to voice conversion)Magic glove( sign to voice conversion)
Magic glove( sign to voice conversion)Abhilasha Jain
 
Hand talk (assistive technology for dumb)- Sign language glove with voice
Hand talk (assistive technology for dumb)- Sign language glove with voiceHand talk (assistive technology for dumb)- Sign language glove with voice
Hand talk (assistive technology for dumb)- Sign language glove with voiceVivekanand Gaikwad
 
A Future For Printed And Flexible Electronics
A Future For Printed And Flexible ElectronicsA Future For Printed And Flexible Electronics
A Future For Printed And Flexible Electronicsn-tech Research
 
WEARABLE SENSOR FOR HUMAN ACTIVITY MONITORING
WEARABLE SENSOR FOR HUMAN ACTIVITY MONITORINGWEARABLE SENSOR FOR HUMAN ACTIVITY MONITORING
WEARABLE SENSOR FOR HUMAN ACTIVITY MONITORINGR.PRABHU R.RAJENDRAN
 
Flexible and strechable electronis
Flexible and strechable electronisFlexible and strechable electronis
Flexible and strechable electronisAvinash Kharche
 
E skin.pptx
E skin.pptxE skin.pptx
E skin.pptxfoysalmd
 
Latest ppt on flexible electronics could be helpful for transparent electroni...
Latest ppt on flexible electronics could be helpful for transparent electroni...Latest ppt on flexible electronics could be helpful for transparent electroni...
Latest ppt on flexible electronics could be helpful for transparent electroni...Azhar Syed
 
Presentation on FLEXIBLE ELECTRONICS.....
Presentation on FLEXIBLE ELECTRONICS.....Presentation on FLEXIBLE ELECTRONICS.....
Presentation on FLEXIBLE ELECTRONICS.....Yalagoud Patil
 
คู่มือการนิเทศ
คู่มือการนิเทศคู่มือการนิเทศ
คู่มือการนิเทศKrueed Huaybong
 
2б космос
2б космос2б космос
2б космосZoyaSGT
 
Utilizing Social Media to Promote Your Speaking Engagements (ILTA Speakers We...
Utilizing Social Media to Promote Your Speaking Engagements (ILTA Speakers We...Utilizing Social Media to Promote Your Speaking Engagements (ILTA Speakers We...
Utilizing Social Media to Promote Your Speaking Engagements (ILTA Speakers We...InsideLegal
 
รูปพื้นที่ผิว
รูปพื้นที่ผิวรูปพื้นที่ผิว
รูปพื้นที่ผิวKrueed Huaybong
 

Viewers also liked (20)

Flex sensor
Flex sensorFlex sensor
Flex sensor
 
A seminar report on flex sensor
A seminar report on flex sensor A seminar report on flex sensor
A seminar report on flex sensor
 
Flex sensor
Flex sensor   Flex sensor
Flex sensor
 
Gesture controlling of Robots
Gesture controlling of Robots Gesture controlling of Robots
Gesture controlling of Robots
 
Gesture vocalizer
Gesture vocalizerGesture vocalizer
Gesture vocalizer
 
Magic glove( sign to voice conversion)
Magic glove( sign to voice conversion)Magic glove( sign to voice conversion)
Magic glove( sign to voice conversion)
 
Hand talk (assistive technology for dumb)- Sign language glove with voice
Hand talk (assistive technology for dumb)- Sign language glove with voiceHand talk (assistive technology for dumb)- Sign language glove with voice
Hand talk (assistive technology for dumb)- Sign language glove with voice
 
A Future For Printed And Flexible Electronics
A Future For Printed And Flexible ElectronicsA Future For Printed And Flexible Electronics
A Future For Printed And Flexible Electronics
 
Flex Sensor
Flex SensorFlex Sensor
Flex Sensor
 
WEARABLE SENSOR FOR HUMAN ACTIVITY MONITORING
WEARABLE SENSOR FOR HUMAN ACTIVITY MONITORINGWEARABLE SENSOR FOR HUMAN ACTIVITY MONITORING
WEARABLE SENSOR FOR HUMAN ACTIVITY MONITORING
 
Flexible and strechable electronis
Flexible and strechable electronisFlexible and strechable electronis
Flexible and strechable electronis
 
E skin.pptx
E skin.pptxE skin.pptx
E skin.pptx
 
Latest ppt on flexible electronics could be helpful for transparent electroni...
Latest ppt on flexible electronics could be helpful for transparent electroni...Latest ppt on flexible electronics could be helpful for transparent electroni...
Latest ppt on flexible electronics could be helpful for transparent electroni...
 
Presentation on FLEXIBLE ELECTRONICS.....
Presentation on FLEXIBLE ELECTRONICS.....Presentation on FLEXIBLE ELECTRONICS.....
Presentation on FLEXIBLE ELECTRONICS.....
 
คู่มือการนิเทศ
คู่มือการนิเทศคู่มือการนิเทศ
คู่มือการนิเทศ
 
2б космос
2б космос2б космос
2б космос
 
Grafica grupal
Grafica grupalGrafica grupal
Grafica grupal
 
Metodos
MetodosMetodos
Metodos
 
Utilizing Social Media to Promote Your Speaking Engagements (ILTA Speakers We...
Utilizing Social Media to Promote Your Speaking Engagements (ILTA Speakers We...Utilizing Social Media to Promote Your Speaking Engagements (ILTA Speakers We...
Utilizing Social Media to Promote Your Speaking Engagements (ILTA Speakers We...
 
รูปพื้นที่ผิว
รูปพื้นที่ผิวรูปพื้นที่ผิว
รูปพื้นที่ผิว
 

Similar to Flex sensor

Interactive Music II ProcessingとSuperColliderの連携 -2
Interactive Music II ProcessingとSuperColliderの連携 -2Interactive Music II ProcessingとSuperColliderの連携 -2
Interactive Music II ProcessingとSuperColliderの連携 -2Atsushi Tadokoro
 
Programming ppt files (final)
Programming ppt files (final)Programming ppt files (final)
Programming ppt files (final)yap_raiza
 
codings related to avr micro controller
codings related to avr micro controllercodings related to avr micro controller
codings related to avr micro controllerSyed Ghufran Hassan
 
#include LPC17xx.h#include Lights.h#include traffic_fo.docx
#include LPC17xx.h#include Lights.h#include traffic_fo.docx#include LPC17xx.h#include Lights.h#include traffic_fo.docx
#include LPC17xx.h#include Lights.h#include traffic_fo.docxajoy21
 
CODING IN ARDUINO
CODING IN ARDUINOCODING IN ARDUINO
CODING IN ARDUINOS Ayub
 
openFrameworks、サウンド機能・音響合成、ofxMaxim, ofxOsc, ofxPd, ofxSuperCollider
openFrameworks、サウンド機能・音響合成、ofxMaxim, ofxOsc, ofxPd, ofxSuperCollideropenFrameworks、サウンド機能・音響合成、ofxMaxim, ofxOsc, ofxPd, ofxSuperCollider
openFrameworks、サウンド機能・音響合成、ofxMaxim, ofxOsc, ofxPd, ofxSuperColliderAtsushi Tadokoro
 
#include stdio.h #include stdlib.h #include unistd.h .pdf
 #include stdio.h #include stdlib.h #include unistd.h .pdf #include stdio.h #include stdlib.h #include unistd.h .pdf
#include stdio.h #include stdlib.h #include unistd.h .pdfnipuns1983
 
8051 C Assignments with all examples covered
8051 C Assignments with all examples covered8051 C Assignments with all examples covered
8051 C Assignments with all examples coveredAbdulMunaf52
 
PWM wave generator using microcontroller
 PWM wave generator using microcontroller  PWM wave generator using microcontroller
PWM wave generator using microcontroller Swapnil2515
 
DDAA FPGA - Multiplexor De Numeros en Display 7 Segmentos En Tiempo
DDAA   FPGA - Multiplexor De Numeros en Display 7 Segmentos En TiempoDDAA   FPGA - Multiplexor De Numeros en Display 7 Segmentos En Tiempo
DDAA FPGA - Multiplexor De Numeros en Display 7 Segmentos En TiempoFernando Marcos Marcos
 
The IoT Academy IoT Training Arduino Part 3 programming
The IoT Academy IoT Training Arduino Part 3 programmingThe IoT Academy IoT Training Arduino Part 3 programming
The IoT Academy IoT Training Arduino Part 3 programmingThe IOT Academy
 

Similar to Flex sensor (20)

Interactive Music II ProcessingとSuperColliderの連携 -2
Interactive Music II ProcessingとSuperColliderの連携 -2Interactive Music II ProcessingとSuperColliderの連携 -2
Interactive Music II ProcessingとSuperColliderの連携 -2
 
Javascript: The Important Bits
Javascript: The Important BitsJavascript: The Important Bits
Javascript: The Important Bits
 
Programming ppt files (final)
Programming ppt files (final)Programming ppt files (final)
Programming ppt files (final)
 
Direct analog
Direct analogDirect analog
Direct analog
 
Arduino
ArduinoArduino
Arduino
 
codings related to avr micro controller
codings related to avr micro controllercodings related to avr micro controller
codings related to avr micro controller
 
Ssaw08 0624
Ssaw08 0624Ssaw08 0624
Ssaw08 0624
 
Lập trình C
Lập trình CLập trình C
Lập trình C
 
#include LPC17xx.h#include Lights.h#include traffic_fo.docx
#include LPC17xx.h#include Lights.h#include traffic_fo.docx#include LPC17xx.h#include Lights.h#include traffic_fo.docx
#include LPC17xx.h#include Lights.h#include traffic_fo.docx
 
CODING IN ARDUINO
CODING IN ARDUINOCODING IN ARDUINO
CODING IN ARDUINO
 
openFrameworks、サウンド機能・音響合成、ofxMaxim, ofxOsc, ofxPd, ofxSuperCollider
openFrameworks、サウンド機能・音響合成、ofxMaxim, ofxOsc, ofxPd, ofxSuperCollideropenFrameworks、サウンド機能・音響合成、ofxMaxim, ofxOsc, ofxPd, ofxSuperCollider
openFrameworks、サウンド機能・音響合成、ofxMaxim, ofxOsc, ofxPd, ofxSuperCollider
 
Include
IncludeInclude
Include
 
Proga 0706
Proga 0706Proga 0706
Proga 0706
 
#include stdio.h #include stdlib.h #include unistd.h .pdf
 #include stdio.h #include stdlib.h #include unistd.h .pdf #include stdio.h #include stdlib.h #include unistd.h .pdf
#include stdio.h #include stdlib.h #include unistd.h .pdf
 
8051 C Assignments with all examples covered
8051 C Assignments with all examples covered8051 C Assignments with all examples covered
8051 C Assignments with all examples covered
 
8051 -5
8051 -58051 -5
8051 -5
 
PWM wave generator using microcontroller
 PWM wave generator using microcontroller  PWM wave generator using microcontroller
PWM wave generator using microcontroller
 
Pwm wave
Pwm wave Pwm wave
Pwm wave
 
DDAA FPGA - Multiplexor De Numeros en Display 7 Segmentos En Tiempo
DDAA   FPGA - Multiplexor De Numeros en Display 7 Segmentos En TiempoDDAA   FPGA - Multiplexor De Numeros en Display 7 Segmentos En Tiempo
DDAA FPGA - Multiplexor De Numeros en Display 7 Segmentos En Tiempo
 
The IoT Academy IoT Training Arduino Part 3 programming
The IoT Academy IoT Training Arduino Part 3 programmingThe IoT Academy IoT Training Arduino Part 3 programming
The IoT Academy IoT Training Arduino Part 3 programming
 

Recently uploaded

Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 

Recently uploaded (20)

The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 

Flex sensor

  • 1. Flex Sensor Hang Do Thi Duc | Jane McDonough | Hsuan Chou
  • 4.
  • 5. void setup() { Serial.begin(9600); // the array elements are numbered from 0 to (pinCount - 1). // use a for loop to initialize each pin as an output: pinMode(A0, INPUT); } ! void loop() { //mapped range for flex sensor is 0 - 24 int flex = analogRead(A0); Serial.println(flex); ! if (flex <= 4) { digitalWrite(2, HIGH); delay(100); digitalWrite(2, LOW); } else if (flex <= 8){ digitalWrite(3, HIGH); delay(100); digitalWrite(3, LOW); } else if (flex <= 12){ digitalWrite(4, HIGH); delay(100); digitalWrite(4, LOW); } else if (flex <= 16){ digitalWrite(5, HIGH); delay(100); digitalWrite(5, LOW); } else if (flex <= 20){ digitalWrite(6, HIGH); delay(100); digitalWrite(6, LOW); } else if (flex <= 25){ digitalWrite(7, HIGH); delay(100); digitalWrite(7, LOW); } }