Arduino Prototyping Inputs #31: Force Sensitive Resistor (FSR)

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ค. 2024
  • Force sensitive resistors (FSR) are a simple sensor that makes adding user input easy. They aren't particularly accurate, but they will still give a good range of analog feedback. They are wired up similar to a button, and are a very popular component. 👉 Leave a tip via cryptocurrency if I've helped you out:
    Bitcoin: bc1q2whh7h7nddf6lzzsns6phxdf2pyr6z0pvgy98t
    Doge: DDgFpxEsBTdjgJDg3vxwuagia9UU5UmSVL
    Etherium: 0x952e75561491951C50561b76eCFFFE1AC493d495
    XRP: rPVaL4TNr3aMPhwgYsWZdgirM99S9QnfCA
    Polkadot: 15pNwwPAsMwi59cMJC441P6KwYzCsq9WqQu156FF8KffRaee
    FSR Sensor -- amzn.to/319oZXt
    NEW! Learn to Solder Course (Free to LinkedIn Pro users) - bit.ly/2ILSzx3
    Prototyping Supplies:
    • Inexpensive Arduino Compatible Kit -- amzn.to/2Dfqs5U
    • A More Deluxe Starter Kit -- amzn.to/3g9nFtR
    • Jumper Wire Kit - amzn.to/3f9rtK4
    • Breadboard Kit - amzn.to/3hIEPib
    • WaveShield Kit -- amzn.to/3g9vMq6
    • Motor Shield Kit -- amzn.to/3hISQfL
    • Adafruit Circuit Playground Kit -- amzn.to/39yBfo9
    My Camera Equipment:
    • Primary Camera -- amzn.to/3fewxgA
    • Camera Kit -- amzn.to/3jQvaI8
    • Primary Lens -- amzn.to/3jQvaI8
    • Macro Probe Lens -- amzn.to/3jQvaI8
    • Main Light -- amzn.to/2X1SwB6
    • Secondary (RGB) Lights -- amzn.to/3jQvaI8
    • Mini Lights -- amzn.to/3jQvaI8
    A few other FREE sensor tutorials you might like: (I have 100's!)
    • Cellular Data shield - • Arduino Prototyping Te... z
    • Capacitive Sensing - • Arduino Prototyping In...
    • Luminosity Sensors - • Arduino Prototyping In...
    • Thermocouples - • Arduino Prototyping In...
    • Sensing Vibration - • Arduino Prototyping In...
    And some playlists on prototyping with Arduino:
    • The Basics - • Arduino Prototyping: T...
    • Inputs - • Arduino Prototyping: I...
    • Outputs - Arduino Prototyping, Techniques - • Arduino Prototyping Ba...
    • Complete Prototyping Series! - • Arduino Prototyping: T...
    Instagram - / marcdevinck
    Twitter - / devinck
    Don't forget to like and subscribe if you'd like me to make more videos!
    My company, Panoptic Labs - www.panopticlabs.com
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 103

  • @3i663
    @3i663 4 ปีที่แล้ว +4

    Wow nice, thanks!

    • @MarcdeVinck
      @MarcdeVinck  4 ปีที่แล้ว

      Thanks! Hope it was helpful!

  • @bathiyaseneviratne9570
    @bathiyaseneviratne9570 3 ปีที่แล้ว +1

    This is nice. You are explaining this very well. 🔥

  • @Simone-lb8zr
    @Simone-lb8zr 4 ปีที่แล้ว +2

    Very well done video, nice explanation.

    • @MarcdeVinck
      @MarcdeVinck  4 ปีที่แล้ว

      Thank you! There are 110 more videos to watch in my complete collection.

  • @terjegulowsen6853
    @terjegulowsen6853 2 ปีที่แล้ว +1

    Great video. Thanks!

    • @MarcdeVinck
      @MarcdeVinck  2 ปีที่แล้ว

      Thanks for the feedback. I really appreciate it.

  • @zakizdaman
    @zakizdaman 2 ปีที่แล้ว +2

    Little did we know two years later this would become the standard for dance games

  • @deandre1529
    @deandre1529 11 หลายเดือนก่อน

    Hello, i was wondering if it’s possible to connect an FSR with a DC motor and motor drive? Ideally if a certain weight is added on the device then the FSR, instead of activating an LED, would activate a DC motor to spin the device a certain amount. The device is a multiple mold for casting designed like a revolver’s bullet cylinder. Im wondering how i can code it to spin the cylinder to the next chamber once the prior chamber is filled for casting. If it’s alright to request help on how to code smthg like that?

  • @artinmajd4091
    @artinmajd4091 3 ปีที่แล้ว +2

    Thanks for the helpful video!
    could you please guide me about the case in which I would like to have multiple FSRs? Could it be done with a single arduino?

    • @MarcdeVinck
      @MarcdeVinck  3 ปีที่แล้ว +1

      Yes, of course. As long as you have a feee analog pins, you can keep adding more FSRs. (or digital, but that only give you an on/off and not ideal)

  • @sarahnasser6603
    @sarahnasser6603 ปีที่แล้ว

    Hi, thanks for the great video. I want to ask what is the unit of the numbers shown in the serial ?

    • @MarcdeVinck
      @MarcdeVinck  ปีที่แล้ว

      It's just a range of pressure from 0 - 1023 which can be mapped to any range. No specific unit. For more calibrated measurements, look into load cells.

  • @michael-ii9ls
    @michael-ii9ls 3 ปีที่แล้ว

    hi, nice video. i have a question. i was wondering if it is possible to set the force sensor in such a way that the brightness of the LED decreases as you push the force sensor?

    • @MarcdeVinck
      @MarcdeVinck  3 ปีที่แล้ว +1

      That is actually very easy! The nice thing about microcontrollers is you can easy reverse the #'s to decrease the LED strength (voltage to the pin) based on force. There are severals ways to accomplish that, but I recommend you look at the "map" function. For example: map(value, fromLow, fromHigh, toLow, toHigh) in practice would look like y = map(x, 0, 255, 255,0); That would inverse the range of numbers and you could apply that to the LED brightness. Hope that makes sense! Good luck! And thanks for the sub! Please share!

  • @fredd9740
    @fredd9740 3 ปีที่แล้ว

    Hi, great video and very informative. Do you know if this sensor would be appropriate as a hit sensor in a target to be used by bb guns? Seeing the high speed of a bb pellet and how quickly it would bounce off the sensor would you think this sensor would be able to record any force/pressure? Or is there a better sensor for this?

    • @MarcdeVinck
      @MarcdeVinck  3 ปีที่แล้ว

      It might be, that's a tough one as the speed of the Arduino might be a limiting factor too. I would assume you could in a test setup. You might be able to get some idea with a piezo sensor mounted to a metal plate and measure the amount of electrical energy created. But that would only be relative to the BB and gun, not an actual fore measurement. I have a video on those -- th-cam.com/video/X3XXRZMBPO0/w-d-xo.html

    • @fredd9740
      @fredd9740 3 ปีที่แล้ว

      @@MarcdeVinck Thanks, yeah that could be enough. The goal is to just record that it has hit it, not how strongly so it should be enough. I will take a look at your other videos thanks! Subbed :)

    • @MarcdeVinck
      @MarcdeVinck  3 ปีที่แล้ว +1

      @@fredd9740 Oh, then a piezo 100%. Will work perfectly. Easy too! Just adhere it to the back of the metal target plate. Thanks for the sub!

  • @GloriousMaleck
    @GloriousMaleck 4 ปีที่แล้ว +2

    If you were to use a load sensor, would the code or wiring set up be changed in any way. Thanks great video

    • @MarcdeVinck
      @MarcdeVinck  4 ปีที่แล้ว +2

      The concept is very similar but the code would need to be changed. Load sensors typically need a small daughterboard to amplify the signal they create. You would normally connect that amplifier circuit (an HX711 breakout board is an inexpensive and good choice) up to power, ground, and 2 of the analog pins. You can measure weight with an FSR, but it's not going to be accurate and also not as robust.

    • @GloriousMaleck
      @GloriousMaleck 4 ปีที่แล้ว

      @@MarcdeVinck Thanks marc,
      can you contact me at: malikhussain97@hotmail.co.uk
      I have a few more questions and a private query to ask you.
      Hope to hear from you soon thanks

    • @MarcdeVinck
      @MarcdeVinck  4 ปีที่แล้ว

      @@GloriousMaleck Please ask any questions here, that way the answers can help more than just 1 person. Thanks!

  • @miguelangelcasado3431
    @miguelangelcasado3431 4 ปีที่แล้ว +2

    Hi, it was an extremely helpful video. Do you know the units of the values displayed?

    • @MarcdeVinck
      @MarcdeVinck  4 ปีที่แล้ว

      Miguel Angel Casado Unfortunately it is only a proportional amount of the minimum to maximum range. This can be helpful for some projects, but it isn’t going to work like a scale. For calibrated and precise measurements you need to look at a load sensor. A bit trickier to use, but they will give you precise results.

  • @scottfitzsimmons1068
    @scottfitzsimmons1068 3 ปีที่แล้ว

    Hi Marc, are there FSR's that can work in higher weight ranges, for example, bodyweight? A load sensor would not be ideal as this is for a wearable tech idea and needs to be low profile. Essentially I would like to monitor when too much force is applied e.g green LED comes on when within normal range and a red LED comes on when outside of this range.

    • @MarcdeVinck
      @MarcdeVinck  3 ปีที่แล้ว

      Not to my knowledge, but the easy fix for that is protecting the FSR. Imagine wrapping it in a layer of rubber. It reduces the force and response rate. Just keep in mind if it's for repeated high forces, a non-mechanical, or non contact sensor might be best light an accelerometer. They are very reliable, have more lots of g-force ranges available, and can be incredibly small.

    • @scottfitzsimmons1068
      @scottfitzsimmons1068 3 ปีที่แล้ว +1

      @@MarcdeVinck Thanks for the response, I;m not sure if the accelerometer will work for my project, I am trying to determine the forces inside a prosthetic socket. But the rubber wrap seems like a great idea, I guess it will take some trial and error to determine the correct amount of rubber.

  • @UCSBRamila
    @UCSBRamila 2 หลายเดือนก่อน

    Shall I use 100k ohm resistor instead of 10k ohm resistor

  • @sjw0233
    @sjw0233 2 ปีที่แล้ว

    Great video! I have a question how would you connect multiple FSR? Would you need multiple arduinos for that?

    • @MarcdeVinck
      @MarcdeVinck  2 ปีที่แล้ว

      Just use other pins. However, any vibration from one, can typically be picked up with additional FSRs, so isolation, etc, may be necessary.

    • @sjw0233
      @sjw0233 2 ปีที่แล้ว

      @@MarcdeVinck would the code for the arduino still be the same? Do you have a video about it by any chance?

    • @MarcdeVinck
      @MarcdeVinck  2 ปีที่แล้ว

      @@sjw0233 Any time you change a component, or add a component, the code is more than likely going to change. In this case you most likely could use the same lines of code and change the pins to read an FSR, but it really depends on what you are building.

    • @sjw0233
      @sjw0233 2 ปีที่แล้ว

      @@MarcdeVinck is there a video or anything you know of that can help me more?

    • @MarcdeVinck
      @MarcdeVinck  2 ปีที่แล้ว +1

      @@sjw0233 Sure, Google "arduino multiple FSR". Lots of results.

  • @Nabz1635
    @Nabz1635 2 ปีที่แล้ว

    thanks for the vid, is it ok to solder on wires to the pressure sensor to increase the length before attaching it to the white pcb board?

    • @MarcdeVinck
      @MarcdeVinck  2 ปีที่แล้ว +1

      Yes! There are small pins on the sensor you can solder wires onto.

    • @Nabz1635
      @Nabz1635 2 ปีที่แล้ว +1

      thanks for the quick reply appreciate it.

  • @Thespiritofice
    @Thespiritofice 3 ปีที่แล้ว +2

    Nice video, anyone knows if there is a more precise sensore? I'm working on a project that invovles measuring finger's force on hands rehabilitation sessions and I need a precise measure and I think this is not as accurate as I want

    • @MarcdeVinck
      @MarcdeVinck  3 ปีที่แล้ว +1

      Yep! Use a load cell. They require a bit more electronics and are a little more complicated, but are also very accurate. It's what a scale would use.

    • @Thespiritofice
      @Thespiritofice 3 ปีที่แล้ว

      @@MarcdeVinck Thanks! I'll give it a try

    • @MarcdeVinck
      @MarcdeVinck  3 ปีที่แล้ว

      @@Thespiritofice Glad I could help. Good luck with your project!

  • @rianmoore8693
    @rianmoore8693 2 ปีที่แล้ว

    hey i was wondering if you know how i could convert the 0 -1023 resolution to newtons inside the Arduino program. great video by the way. very easy to follow

    • @MarcdeVinck
      @MarcdeVinck  2 ปีที่แล้ว

      1N is ~ 6k Ohm depending on your sensor and hardware. You can google Simple conversion tables that will get you in the ballpark. Code is available too.

    • @rianmoore8693
      @rianmoore8693 2 ปีที่แล้ว

      @@MarcdeVinck thank you. my fsr senses up to 5 kg (49.05N) so could i set it for every 6km ohm is a newton ?

    • @rianmoore8693
      @rianmoore8693 2 ปีที่แล้ว

      @@MarcdeVinck also what would be the best terminology when googling this i find i often dont get the results i am looking for. thank you

    • @MarcdeVinck
      @MarcdeVinck  2 ปีที่แล้ว +2

      @@rianmoore8693 Start here - learn.adafruit.com/force-sensitive-resistor-fsr/using-an-fsr

    • @rianmoore8693
      @rianmoore8693 2 ปีที่แล้ว

      @@MarcdeVinck do you know if your able to solder these sensors to make the wire connection longer?

  • @joryaock
    @joryaock 2 ปีที่แล้ว

    Would there be a way to tell a servo to rotate a certain way if it were getting pressure sensed information from one of those things?.

    • @MarcdeVinck
      @MarcdeVinck  2 ปีที่แล้ว

      Yes! A servo could easily be programmed to react based on the input from a force sensitive resistor.

  • @Nabz1635
    @Nabz1635 2 ปีที่แล้ว

    i have another question, how would i connect multiple pressure sensors? is it possible to connect multiple on on board and how would the readings work on arduino software?

    • @MarcdeVinck
      @MarcdeVinck  2 ปีที่แล้ว +1

      You can have multiple sensors. As many sensors as you have available pins, depending on the type of Arduino. You would read each pin and return the results.

  • @vanduyphung517
    @vanduyphung517 2 ปีที่แล้ว

    Hi. I just purchase FSR UX 400 force sensor and try to contact it with arduino Uno (R3) and display force (N) on Led display. Could you let me know what resitor will use for this force sensor?

    • @MarcdeVinck
      @MarcdeVinck  2 ปีที่แล้ว

      It depends on your circuit, etc. An FSR is a resistor. In the example the 10K is so the pin doesn't float (give back crazy signals). In general you want a 10k to stop random signals and tie the sensor to ground when not in use.

  • @hasantosun8022
    @hasantosun8022 3 ปีที่แล้ว

    çok iyi

    • @MarcdeVinck
      @MarcdeVinck  3 ปีที่แล้ว

      çok teşekkür ederim

  • @choicedesigns5497
    @choicedesigns5497 ปีที่แล้ว

    Hi there, I wonder if you can help use this code to connect and FSR to a vibration motor? Rather than an led. i dont need anything too complicated but Im a newbie and only need this for one project.

    • @MarcdeVinck
      @MarcdeVinck  ปีที่แล้ว

      That is a very doable project. Unfortunately I can't help, but you can find a lot of information online.

  • @ijsamuel
    @ijsamuel ปีที่แล้ว

    I bought an FSR but not the Arduino. I tried creating a simple circuit (power source connected to a small bulb with the FSR in between). I know the bulb works and the power source is good, but when I add in the FSR, no matter how hard I press the FSR, the bulb does not light up. I would think the FSR is just a regular switch and when a force is applied the switch is turned on but it’s not. Any reason? Or what am I missing?

    • @MarcdeVinck
      @MarcdeVinck  ปีที่แล้ว

      I don't have enough information about the circuit to give you a specific answer, (what is the circuit, what is a "bulb" an LED? What power, etc, etc) but here is some information that could help you. An FSR is just a variable resistor. Typically, the harder you press, the LESS resistance is in the circuit. Again, typically between ~100 Ohm - ~200 Ohm. If your circuit works with resistors in that range, then an FSR should work too. (generally speaking) There is a great guide on FSRs on Adafruit's Learning system. It uses an Arduino as an example, but it explains in detail how an FSR works. learn.adafruit.com/force-sensitive-resistor-fsr

  • @donzhu4996
    @donzhu4996 ปีที่แล้ว

    I saw FSR has different spec such as 0~20kg, 50kg. If I want to use it on the shoe pads, do I need one such as 50kg or 100kg?

    • @MarcdeVinck
      @MarcdeVinck  ปีที่แล้ว

      It depends on your estimated impact, which I assume is very high. Are you running, or jumping, how much does the user weigh, etc. Also where on the foot, as that can increase/decrease the impact by as much as 50%.

    • @donzhu4996
      @donzhu4996 ปีที่แล้ว

      @@MarcdeVinck Thanks for your reply. I plan to put two in the middle of the pad and one in the heel position.

  • @yassminebouchfar5094
    @yassminebouchfar5094 ปีที่แล้ว

    Hi, is this sensor sensitive enough to measure the rhythm of thoracic breathing?

    • @MarcdeVinck
      @MarcdeVinck  ปีที่แล้ว

      I think you'd be better off using conductive rubber and a strap around someones chest to measure breathing.

  • @BilalKhan-do9il
    @BilalKhan-do9il 3 ปีที่แล้ว +1

    Hello sir, i know that fsr aren't meant to give the exact reading but can you tell how can i reduce its fluctuations , suppose if m keeping 1kg weight its reading varies from 800-1200 g

    • @MarcdeVinck
      @MarcdeVinck  3 ปีที่แล้ว

      Yes, use a load cell, not a piezo. Thats the best choice for better accuracy and less fluctuations.

    • @BilalKhan-do9il
      @BilalKhan-do9il 3 ปีที่แล้ว

      @@MarcdeVinck yes ik but sir i have space constraints so i m going with fsr only , but one thing i got to know about fsr is that we can use smoothing and get very less fluctuations ,the results are amazing with that code ,also i used a 47 mf capacitor with it ( anybody interested for the project mail me at kb9829422@gmail.com) . Here is the link for smoothing
      www.arduino.cc/en/Tutorial/BuiltInExamples/Smoothing

    • @MarcdeVinck
      @MarcdeVinck  3 ปีที่แล้ว

      @@BilalKhan-do9il Glad it worked out! Just keep in mind it is now much less accurate and slower. But it can be a good solution.

    • @BilalKhan-do9il
      @BilalKhan-do9il 3 ปีที่แล้ว +1

      @@MarcdeVinck sure sir, thanks!

  • @eng_zahra1998
    @eng_zahra1998 4 ปีที่แล้ว

    Hello can you explain me how can I convert voltage to force and weight by using force sensor pleas

    • @MarcdeVinck
      @MarcdeVinck  4 ปีที่แล้ว +1

      That is what this sensor does! If you need to be more precise you should look into load cells. That's what a bathroom scale would use.

    • @eng_zahra1998
      @eng_zahra1998 4 ปีที่แล้ว

      @@MarcdeVinck iam using force sensor in my broject robotic can it load and catch things depending on weight of its .. and I need codes of the sensor pleas

    • @MarcdeVinck
      @MarcdeVinck  4 ปีที่แล้ว

      Here you go! -- learn.adafruit.com/force-sensitive-resistor-fsr/using-an-fsr

    • @eng_zahra1998
      @eng_zahra1998 4 ปีที่แล้ว +1

      @@MarcdeVinck thank you very much

  • @mostafahasan9940
    @mostafahasan9940 5 หลายเดือนก่อน

    what if i didn't use resistor? will be there any issue for testing purpose?

    • @MarcdeVinck
      @MarcdeVinck  5 หลายเดือนก่อน

      You need a resistor to get the range and protect the input pin.

  • @EsraAbay200
    @EsraAbay200 5 หลายเดือนก่อน

    What is the nominal resistance of type 402? Which is written |||IFSR_||||18|||

    • @MarcdeVinck
      @MarcdeVinck  4 หลายเดือนก่อน

      Not sure. Please check the data sheet for the product you are sourcing. You can typically find them via a Google search.

  • @tokaabdelghafar7017
    @tokaabdelghafar7017 3 ปีที่แล้ว

    can it measure very small force in range from 10 to 20 gram

    • @tokaabdelghafar7017
      @tokaabdelghafar7017 3 ปีที่แล้ว

      @ Marc de Vinck

    • @MarcdeVinck
      @MarcdeVinck  3 ปีที่แล้ว

      Yes, but it's not accurate or calibrated. A load sensor would be a much better choice. That's what a digital scale would use. It involves a bit more components, but well worth the effort.

  • @hasanmahmoud6830
    @hasanmahmoud6830 ปีที่แล้ว

    Can i determine weight using fsr sensor and how can i do it ?

    • @MarcdeVinck
      @MarcdeVinck  ปีที่แล้ว

      It's not as accurate as a strain gauge, but yes you can. Just correlate the analog output as shown in the video to a known weight. Could use the map function too. But again, a strain gauge is much better suited for accurate weight measurements.

  • @alokkumarnyati
    @alokkumarnyati 2 ปีที่แล้ว

    What will be the unit of force being measured?

    • @MarcdeVinck
      @MarcdeVinck  2 ปีที่แล้ว

      You are measuring a resistance within the FSR. You can map that to a measurement of force, with some calibration, but just keep in mind it's not going to be very accurate and may not be linear.

    • @alokkumarnyati
      @alokkumarnyati 2 ปีที่แล้ว

      @@MarcdeVinck Then what will be the use of this

    • @MarcdeVinck
      @MarcdeVinck  2 ปีที่แล้ว

      @@alokkumarnyati There are lots of uses, in fact it’s one of the most popular sensors. Take a look online for projects that use FSRs and Arduino. You get a varied resistance. Use it to make music, sense when something is empty by weight, etc. that are lots of fun!

  • @soumikchakraborty9885
    @soumikchakraborty9885 2 ปีที่แล้ว

    In what unit we get pressure ?

    • @MarcdeVinck
      @MarcdeVinck  2 ปีที่แล้ว

      You get an analog voltage reading that you can convert to pressure. It's not as accurate as a load sensor, but it works in many applications.

  • @meenuchahal7397
    @meenuchahal7397 3 ปีที่แล้ว

    From where we can get the code for the same

    • @MarcdeVinck
      @MarcdeVinck  3 ปีที่แล้ว +1

      Watch the video for the code. And it can be found here -- learn.adafruit.com/force-sensitive-resistor-fsr/using-an-fsr

  • @amitbbar6299
    @amitbbar6299 2 ปีที่แล้ว

    how do i order pizza in new york

  • @kishorgoodday276
    @kishorgoodday276 4 ปีที่แล้ว

    we want full code sir plzz....

    • @MarcdeVinck
      @MarcdeVinck  4 ปีที่แล้ว +1

      It's in the video! And can be found here -- learn.adafruit.com/force-sensitive-resistor-fsr/using-an-fsr

  • @balasubramaniamgoa6583
    @balasubramaniamgoa6583 หลายเดือนก่อน

    Can u pls provide the code

    • @MarcdeVinck
      @MarcdeVinck  หลายเดือนก่อน

      Please watch the video I go over where to find the code and how to use it.