10. Input Devices

This week we discussed abut Input devices , I chose to work with a bending sensor and connect to Ardoaino
This is my first step in programming so I chose to make an attempt ahead of the final project Programming

השבוע עסקנו באינפוטים, אני בחרתי לעבוד עם ארדואינו ולחבר אליו חיישן כיפוף
זהו הצעד הראשון שלי בעולם התכנות לכן בחרתי לעשות ניסיון מקדים לתכנות של הפרויקט הסופי

How The Flex Sensor work:
One side of the sensor is printed with a polymer ink that has conductive particles embedded in it. When the sensor is straight, the particles give the ink a resistance of about 30k Ohms. When the sensor is bent away from the ink, the conductive particles move further apart, increasing this resistance (to about 50k Ohms when the sensor is bent to 90º). When the sensor straightens out again, the resistance returns to the original value. By measuring the resistance, you can determine how much the sensor is being bent.

:כיצד חיישן הכיפוף עובד
צד אחד של החיישן מודפס עם דיו פולימר שיש חלקיקים מוליכים מוטבעים בו. כאשר החיישן הוא ישר, החלקיקים נותנים לדיו התנגדות של כ- 30 קילו אוהם. כאשר החיישן התכופף מהדיו, החלקיקים מוליכים מתרחקים עוד יותר, ומגדילים את  התנגדות (לבערך כ-50 קילו אוהם כאשר החיישן מכופף ב-90 מעלות). כאשר החיישן מתיישר שוב, ההתנגדות חוזרת לערכו המקורי. על ידי מדידת ההתנגדות, אתה יכול לקבוע כמה החיישן מכופף

fs

Connections:
The simplest way to incorporate this sensor into your project is by using it in a voltage divider. This circuit requires one resistor. Many values from 10-100 will work, but we’ll use a 10K resistor here . Connect the flex sensor to your microcontroller using the following circuit

:חיבורים
הדרך הפשוטה לשלב החיישן הזה בפרויקט שלי היא על ידי השימוש בו כמפצל מתח. מעגל זה דורש נגד אחד, בעל ערכים 10-100 , אבל אנחנו נשתמש בנגד 10 כאן. חבר את החיישן לבקר שלך באמצעות המעגל הבא

schematic1

fs3

The resistor and the flex sensor form a voltage divider, which divides  a ratio determined by the two resistances. When the sensor is straight, will cause the output voltage to be about 75 percent. When the sensor is bent, the voltage will increase to about 83 percent. for the most accurate results, test your specific sensor and use those numbers in your code.

הנגד והחיישן יוצרים מחלק מתח, על ידי יחס שנקבע על ידי שתי ההתנגדויות. כאשר החיישן הוא ישר, הנגד והחיישן יגרמו למתח היציאה להיות כ -75 אחוזים. כאשר החיישן כפוף, המתח יגדל לכ -83 אחוזים . לתוצאות המדויקות ביותר, יש לבדוק את החיישן הספציפי שלך ולהשתמש באותם מספרים בקוד שלך

Programming:

:תכנות

program

If the movie does not cost you try this link

במידה והסרט לא עולה תנסה את הלינק

http://www.youtube.com/watch?v=uPn0c3dnddg

Final file:

:קובץ סופי

10FlexSensor.zip