Тёмный

Flex Sensor with Arduinos - Beginner to Advanced 

Fungineers
Подписаться 21 тыс.
Просмотров 28 тыс.
50% 1

This tutorial demonstrated how to use Flex sensors with Arduino.
Get your Arduino kit here to get started:
bit.ly/3d8VHfg

Наука

Опубликовано:

 

21 фев 2018

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 29   
@Fungineers
@Fungineers 6 лет назад
Here's the original sketch from Sparkfun: // 47k resistor, and enter them below: const float VCC = 4.98; // Measured voltage of Ardunio 5V line const float R_DIV = 47500.0; // Measured resistance of 3.3k resistor // Upload the code, then try to adjust these values to more // accurately calculate bend degree. const float STRAIGHT_RESISTANCE = 37300.0; // resistance when straight const float BEND_RESISTANCE = 90000.0; // resistance at 90 deg void setup() { Serial.begin(9600); pinMode(FLEX_PIN, INPUT); } void loop() { // Read the ADC, and calculate voltage and resistance from it int flexADC = analogRead(FLEX_PIN); float flexV = flexADC * VCC / 1023.0; float flexR = R_DIV * (VCC / flexV - 1.0); Serial.println("Resistance: " + String(flexR) + " ohms"); // Use the calculated resistance to estimate the sensor's // bend angle: float angle = map(flexR, STRAIGHT_RESISTANCE, BEND_RESISTANCE, 0, 90.0); Serial.println("Bend: " + String(angle) + " degrees"); Serial.println(); delay(500); }
@allweneedtoknow.5099
@allweneedtoknow.5099 6 лет назад
Please help me connect a relay to a flex sensor
@allweneedtoknow.5099
@allweneedtoknow.5099 6 лет назад
On a adrino uno 3
@Fungineers
@Fungineers 6 лет назад
Allweneedtoknow. Watch my video 'Relay for beginners'. In that I have connected a relay to an arduino. If you want your flex sensor to be the input, you can connect it to one of the arduino pins say pin X, and declare pin X as input in your code. Then you can write a simple code to say: "if the input from flex sensor (pin X)is high then activate pin Y", and you can connect pin Y to relay. Hope this helps.
@Osmanity
@Osmanity 6 лет назад
Were have you been all my life. Really good explation. Keep the good work!!!!:))
@Fungineers
@Fungineers 6 лет назад
Thanks for appreciating :)
@anoneris
@anoneris 3 года назад
I‘m new to the topic but really interested, thank you so freaking much! This actually is exactly the topic I searched for. Can you maybe tell me if you got the data via a raspberry pi and is that python on your pc, or a whole different thing? Thank you so much!
@sienta000
@sienta000 5 лет назад
With sound is great
@MsEngrS
@MsEngrS 5 лет назад
Thanks for the video. How did you connect the end of the flex sensor to the breadboard? Did you soldered them? what is the thickness of the wire?
@Fungineers
@Fungineers 5 лет назад
Just shoved them in. It's good for testing but keeps coming off it's annoying lol
@aartidhowtall5591
@aartidhowtall5591 4 года назад
Could you explain how to set up the circuit in more details? How to connect the pins. You went rather fast on that.
@genaromarzotta6149
@genaromarzotta6149 4 года назад
For the resistor, does it matter the amount of resistance it has? What's the ideal resistor for it?
@Fungineers
@Fungineers 4 года назад
I mentioned the resistance. 10k to 100k
@PurpleGround
@PurpleGround 6 лет назад
Noice! i'm gonna use this in my projects
@Fungineers
@Fungineers 6 лет назад
I hate the fact that these are still so expensive. $20 dollars a piece pfff
@PurpleGround
@PurpleGround 6 лет назад
Aww that's a lot
@PurpleGround
@PurpleGround 6 лет назад
I'm gonna tell my friends about u. your so helpful, straight to the point and these videos are not that long.
@maxrobotics3703
@maxrobotics3703 3 года назад
@@Fungineers you can get ones for $2 that i use and they have NEVER caused problems.
@maxrobotics3703
@maxrobotics3703 3 года назад
*they also last a long time
@ankitarnav4584
@ankitarnav4584 5 лет назад
i want to interface flex sensor with pi3 but problem is that pi has 3.3v o/p whereas flex has 5v.pLease help.
@jgsh8062
@jgsh8062 5 лет назад
use a switching regulator
@nabeelabegum8398
@nabeelabegum8398 2 года назад
How can i get a notification in blynk app when finfers are bend .
@vectors1970
@vectors1970 2 года назад
The light will still be OFF only since the fingers are further bent which increases the resistance of the flex sensor and thereby decreases the voltage.
@ango5015
@ango5015 3 года назад
nices
@vectors1970
@vectors1970 2 года назад
With all due respect, the way you explain is misguiding about the working principle of flex sensors. When the resistive coating layer bends backward, it is extension. It further decreases the resistance of the sensor. This sensor is supposed to work based on flexion which increases the resistance. The movement you do here is extension which further decreases the resistance from standard value 25 kilo ohms and making the LED to glow.
@serdalcitak6539
@serdalcitak6539 Год назад
exactly
@bharathiraja5281
@bharathiraja5281 6 лет назад
Sir pls send source code
@Fungineers
@Fungineers 6 лет назад
Its right here in the comments :)
@furkaneravsar9627
@furkaneravsar9627 5 лет назад
bad microphone
Далее
Product Showcase: Bend Labs Digital Flex Sensors
3:17
▼ЕГО БОЯЛИСЬ МОНГОЛЫ 🍣
32:51
Просмотров 328 тыс.
Hand Talk Using Flex Sensor With Voice Output
3:33
Просмотров 35 тыс.
Introducing Funwheel Footpad Sensors!
10:44
Просмотров 1,1 тыс.
Smart Gloves for Deaf & Dumb
7:01
Просмотров 41 тыс.
Flex Sensor - Introduction and Use
8:22
Просмотров 67 тыс.
Flex Sensor Glove and Robotic Arm
5:37
Просмотров 113 тыс.
Arduino Flex Sensor Glove Tutorial
4:44
Просмотров 75 тыс.
ЗАКОПАЛ НОВЫЙ ТЕЛЕФОН!!!🎁😱
0:28
ЗАКОПАЛ НОВЫЙ ТЕЛЕФОН!!!🎁😱
0:28