Тёмный

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

Marc de Vinck
Подписаться 3,6 тыс.
Просмотров 54 тыс.
50% 1

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

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 105   
@3i663
@3i663 5 лет назад
Wow nice, thanks!
@MarcdeVinck
@MarcdeVinck 5 лет назад
Thanks! Hope it was helpful!
@zakizdaman
@zakizdaman 3 года назад
Little did we know two years later this would become the standard for dance games
@bathiyaseneviratne9570
@bathiyaseneviratne9570 3 года назад
This is nice. You are explaining this very well. 🔥
@MarcdeVinck
@MarcdeVinck 3 года назад
Thank you!
@Simone-lb8zr
@Simone-lb8zr 4 года назад
Very well done video, nice explanation.
@MarcdeVinck
@MarcdeVinck 4 года назад
Thank you! There are 110 more videos to watch in my complete collection.
@terjegulowsen6853
@terjegulowsen6853 3 года назад
Great video. Thanks!
@MarcdeVinck
@MarcdeVinck 3 года назад
Thanks for the feedback. I really appreciate it.
@artinmajd4091
@artinmajd4091 3 года назад
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 года назад
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 3 месяца назад
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 3 месяца назад
There is no easy way to calibrate it. You are most likely better off with a 9DOF sensor as the FSR is more fragile.
@deandre1529
@deandre1529 Год назад
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?
@UCSBRamila
@UCSBRamila 5 месяцев назад
Shall I use 100k ohm resistor instead of 10k ohm resistor
@GloriousMaleck
@GloriousMaleck 4 года назад
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 года назад
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!
@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
@EsraAbay200
@EsraAbay200 8 месяцев назад
What is the nominal resistance of type 402? Which is written |||IFSR_||||18|||
@MarcdeVinck
@MarcdeVinck 7 месяцев назад
Not sure. Please check the data sheet for the product you are sourcing. You can typically find them via a Google search.
@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.
@Thespiritofice
@Thespiritofice 4 года назад
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 4 года назад
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 4 года назад
@@MarcdeVinck Thanks! I'll give it a try
@MarcdeVinck
@MarcdeVinck 4 года назад
@@Thespiritofice Glad I could help. Good luck with your project!
@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 года назад
@@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.
@BilalKhan-do9il
@BilalKhan-do9il 3 года назад
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 года назад
@@MarcdeVinck sure sir, thanks!
@miguelangelcasado3431
@miguelangelcasado3431 4 года назад
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.
@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.
@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 -- ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-X3XXRZMBPO0.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 года назад
@@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 4 года назад
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 4 года назад
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!
@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.
@mostafahasan9940
@mostafahasan9940 9 месяцев назад
what if i didn't use resistor? will be there any issue for testing purpose?
@MarcdeVinck
@MarcdeVinck 9 месяцев назад
You need a resistor to get the range and protect the input pin.
@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 года назад
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.
@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.
@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 года назад
@@sjw0233 Sure, Google "arduino multiple FSR". Lots of results.
@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.
@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 года назад
Yes! There are small pins on the sensor you can solder wires onto.
@Nabz1635
@Nabz1635 2 года назад
thanks for the quick reply appreciate it.
@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 года назад
@@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?
@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.
@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 года назад
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 года назад
@@MarcdeVinck thank you very much
@hasanmahmoud6830
@hasanmahmoud6830 2 года назад
Can i determine weight using fsr sensor and how can i do it ?
@MarcdeVinck
@MarcdeVinck 2 года назад
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.
@hasantosun8022
@hasantosun8022 3 года назад
çok iyi
@MarcdeVinck
@MarcdeVinck 3 года назад
çok teşekkür ederim
@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!
@meenuchahal7397
@meenuchahal7397 3 года назад
From where we can get the code for the same
@MarcdeVinck
@MarcdeVinck 3 года назад
Watch the video for the code. And it can be found here -- learn.adafruit.com/force-sensitive-resistor-fsr/using-an-fsr
@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.
@amitbbar6299
@amitbbar6299 2 года назад
how do i order pizza in new york
@MarcdeVinck
@MarcdeVinck 2 года назад
By the slice!
@kishorgoodday276
@kishorgoodday276 4 года назад
we want full code sir plzz....
@MarcdeVinck
@MarcdeVinck 4 года назад
It's in the video! And can be found here -- learn.adafruit.com/force-sensitive-resistor-fsr/using-an-fsr
@balasubramaniamgoa6583
@balasubramaniamgoa6583 4 месяца назад
Can u pls provide the code
@MarcdeVinck
@MarcdeVinck 4 месяца назад
Please watch the video I go over where to find the code and how to use it.
@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.
Далее
Arduino Prototyping Inputs #32: Keypads
5:44
Просмотров 1 тыс.
Force Sensing Materials
10:03
Просмотров 39 тыс.
when you have plan B 😂
00:11
Просмотров 21 млн
How STRAIN GAUGE Works | Precision SCALE With Arduino
13:24
Which Arduino IDE should I use?
13:43
Просмотров 84 тыс.
Arduino Prototyping Techniques #104: Perfboard
7:42
Просмотров 64 тыс.
Hacking a weird TV censoring device
20:59
Просмотров 3,1 млн
How to use Force Sensing Resistors
6:38
Просмотров 124 тыс.
when you have plan B 😂
00:11
Просмотров 21 млн