Flex Sensor 2.2 - original

bending sensor 26-52 kilo ohms


65 ₪

الناشر: ⚡ Electronic Store ⚡

القسم: Sensors

تاريخ النشر: 2023-03-08


connect flex sensor to arduino

توصيل مستشعر الانحناء والانثناء مع الاردوينو




Basic Flex Sensor Circuit



Interfacing Flex Sensor with Arduino



arduino code:

code
نسخ
اقتباس
عرض
تنزيل
	
								
const int flexPin = A0; void setup() { Serial.begin(9600); } void loop() { int flexValue; flexValue = analogRead(flexPin); Serial.print("sensor: "); Serial.println(flexValue); delay(20); }


After uploading code, you can check the raw value of the flex sensor by bending it. The raw value changes on the basis of bending of the sensor.