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

Sdílet
Vložit
  • čas přidán 7. 09. 2024

Komentáře • 105

  • @3i663
    @3i663 Před 5 lety +4

    Wow nice, thanks!

  • @zakizdaman
    @zakizdaman Před 3 lety +2

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

  • @bathiyaseneviratne9570
    @bathiyaseneviratne9570 Před 3 lety +1

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

  • @Simone-lb8zr
    @Simone-lb8zr Před 4 lety +2

    Very well done video, nice explanation.

    • @MarcdeVinck
      @MarcdeVinck  Před 4 lety

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

  • @terjegulowsen6853
    @terjegulowsen6853 Před 3 lety +1

    Great video. Thanks!

    • @MarcdeVinck
      @MarcdeVinck  Před 3 lety

      Thanks for the feedback. I really appreciate it.

  • @artinmajd4091
    @artinmajd4091 Před 3 lety +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  Před 3 lety +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)

  • @FuryMuscles
    @FuryMuscles Před 3 měsíci

    thanks sir! Hope you are doing well, I have a school project about creating a Teakwondo protector Scoring systeme, so I need a pressure sensor which is FSR, my question is FSR capable to detect high force measure ( between 3000N - 4500 N for exemple ) if no is there is any way to calibrate it's sensivity and thanks for your attention!

    • @MarcdeVinck
      @MarcdeVinck  Před 3 měsíci +1

      There is no easy way to calibrate it. You are most likely better off with a 9DOF sensor as the FSR is more fragile.

  • @GloriousMaleck
    @GloriousMaleck Před 4 lety +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  Před 4 lety +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 Před 4 lety

      @@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  Před 4 lety

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

  • @miguelangelcasado3431
    @miguelangelcasado3431 Před 4 lety +2

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

    • @MarcdeVinck
      @MarcdeVinck  Před 4 lety

      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.

  • @Thespiritofice
    @Thespiritofice Před 4 lety +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  Před 4 lety +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 Před 4 lety

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

    • @MarcdeVinck
      @MarcdeVinck  Před 4 lety

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

  • @deandre1529
    @deandre1529 Před rokem

    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?

  • @sarahnasser6603
    @sarahnasser6603 Před rokem

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

    • @MarcdeVinck
      @MarcdeVinck  Před rokem

      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.

  • @UCSBRamila
    @UCSBRamila Před 5 měsíci

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

  • @fredd9740
    @fredd9740 Před 3 lety

    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  Před 3 lety

      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 -- czcams.com/video/X3XXRZMBPO0/video.html

    • @fredd9740
      @fredd9740 Před 3 lety

      @@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  Před 3 lety +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!

  • @michael-ii9ls
    @michael-ii9ls Před 4 lety

    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  Před 4 lety +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!

  • @scottfitzsimmons1068
    @scottfitzsimmons1068 Před 3 lety

    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  Před 3 lety

      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 Před 3 lety +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.

  • @ijsamuel
    @ijsamuel Před rokem

    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  Před rokem

      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

  • @BilalKhan-do9il
    @BilalKhan-do9il Před 3 lety +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  Před 3 lety

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

    • @BilalKhan-do9il
      @BilalKhan-do9il Před 3 lety

      @@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  Před 3 lety

      @@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 Před 3 lety +1

      @@MarcdeVinck sure sir, thanks!

  • @EsraAbay200
    @EsraAbay200 Před 8 měsíci

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

    • @MarcdeVinck
      @MarcdeVinck  Před 8 měsíci

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

  • @sjw0233
    @sjw0233 Před 2 lety

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

    • @MarcdeVinck
      @MarcdeVinck  Před 2 lety

      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 Před 2 lety

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

    • @MarcdeVinck
      @MarcdeVinck  Před 2 lety

      @@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 Před 2 lety

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

    • @MarcdeVinck
      @MarcdeVinck  Před 2 lety +1

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

  • @joryaock
    @joryaock Před 2 lety

    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  Před 2 lety

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

  • @vanduyphung517
    @vanduyphung517 Před 2 lety

    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  Před 2 lety

      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.

  • @Nabz1635
    @Nabz1635 Před 2 lety

    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  Před 2 lety +1

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

    • @Nabz1635
      @Nabz1635 Před 2 lety +1

      thanks for the quick reply appreciate it.

  • @Nabz1635
    @Nabz1635 Před 2 lety

    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  Před 2 lety +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.

  • @choicedesigns5497
    @choicedesigns5497 Před rokem

    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  Před rokem

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

  • @yassminebouchfar5094
    @yassminebouchfar5094 Před rokem

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

    • @MarcdeVinck
      @MarcdeVinck  Před rokem

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

  • @rianmoore8693
    @rianmoore8693 Před 2 lety

    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  Před 2 lety

      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 Před 2 lety

      @@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 Před 2 lety

      @@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  Před 2 lety +2

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

    • @rianmoore8693
      @rianmoore8693 Před 2 lety

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

  • @donzhu4996
    @donzhu4996 Před rokem

    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  Před rokem

      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 Před rokem

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

  • @mostafahasan9940
    @mostafahasan9940 Před 9 měsíci

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

    • @MarcdeVinck
      @MarcdeVinck  Před 9 měsíci

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

  • @hasantosun8022
    @hasantosun8022 Před 3 lety

    çok iyi

  • @eng_zahra1998
    @eng_zahra1998 Před 4 lety

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

    • @MarcdeVinck
      @MarcdeVinck  Před 4 lety +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 Před 4 lety

      @@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  Před 4 lety

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

    • @eng_zahra1998
      @eng_zahra1998 Před 4 lety +1

      @@MarcdeVinck thank you very much

  • @hasanmahmoud6830
    @hasanmahmoud6830 Před 2 lety

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

    • @MarcdeVinck
      @MarcdeVinck  Před 2 lety

      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 Před 2 lety

    What will be the unit of force being measured?

    • @MarcdeVinck
      @MarcdeVinck  Před 2 lety

      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 Před 2 lety

      @@MarcdeVinck Then what will be the use of this

    • @MarcdeVinck
      @MarcdeVinck  Před 2 lety

      @@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 Před 2 lety

    In what unit we get pressure ?

    • @MarcdeVinck
      @MarcdeVinck  Před 2 lety

      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 Před 3 lety

    From where we can get the code for the same

    • @MarcdeVinck
      @MarcdeVinck  Před 3 lety +1

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

  • @kishorgoodday276
    @kishorgoodday276 Před 4 lety

    we want full code sir plzz....

    • @MarcdeVinck
      @MarcdeVinck  Před 4 lety +1

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

  • @amitbbar6299
    @amitbbar6299 Před 2 lety

    how do i order pizza in new york

  • @balasubramaniamgoa6583
    @balasubramaniamgoa6583 Před 4 měsíci

    Can u pls provide the code

    • @MarcdeVinck
      @MarcdeVinck  Před 4 měsíci

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

  • @tokaabdelghafar7017
    @tokaabdelghafar7017 Před 3 lety

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

    • @tokaabdelghafar7017
      @tokaabdelghafar7017 Před 3 lety

      @ Marc de Vinck

    • @MarcdeVinck
      @MarcdeVinck  Před 3 lety

      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.