Measure Tilt Angle using SCA60C angle sensor - Robojax

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ก.ย. 2024

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

  • @ronjones4069
    @ronjones4069 4 ปีที่แล้ว +5

    Thank you for making the fonts on your sketch large enough for us to read! When people do a simple screen capture, the text is so small you can't read it. Also, your explanation is excellent. Thank you, you saved me lot of work on my next Arduino project.

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

      You're very welcome! I am glad you found it useful. Please subscribe if you haven't done yet.

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

    Thanks Ahmad! Your content is really high quality. For having prepared course material in the past, I'd say you've put lots of time and effort into making this video (as well as all your others videos I've seen so far). Merci beaucoup!

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

      My pleasure!. Yes most viewers have no idea how much effort is put to make a video.

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

    Vary good explanation and tutorial Thank you.

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

    Hi. Great Video. Can you advise the programming if i require the starting angle to start at 0 degrees when powered up, regardless of the actual angle. This is so i can set an alarm when the angle changes sufficiently, although the actual starting angle is not important. It's only the change in angle that i am interested in recording.

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

    Nice video. Is the data ragarding the angles sent out of the card as a pair of 4-byte integers then? How quickly does the chip update? AKA, how frequently does the chip send out it's angle data?

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

    Bonjour Mr Ahmed ;
    Est ce que ce type de capteur peut fonctionner par Wi-Fi ?

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

    Nice video

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

      Thanks

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

    Thank you Ahmad :)

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

    Sir I am big fan of all of your projects kindly make GPS land leveling system with arduino...

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

      Hi, wow. land leveling. I am not sure if gps signal would give enough accurate signal for that purpose. land leveling would mean different thing for different application. for agriculture it would mean with accuracy of 20cm (perhaps) but for other purpose it would need different accuracy. But it is possible.

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

    Ahmad, is this solid state gyro based? Can it accurate measure angle while being accelerated and jostled about. Im trying to do something with an RC electric boat that is very fast.

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

    I bought this sensor but I get some strange readings now. (only using Vo) when the sensor is horizontal like yours in the demonstration. -108 when horizontal and the reading only changes when I tilt the sensor to the vcc side. it goes from -108 to 22 degree when it is actually at 90 degree, to -108 again. do you have an idea why I get those readings and it is not working to the other side?

  • @مهندصالحمهدي-ز4ش
    @مهندصالحمهدي-ز4ش 3 ปีที่แล้ว

    Thank you great video, please how we can do a control on the tilt angle by giving an input angle and the dc motor response to this order to reach the required angle

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

      that is very interesting. it needs the code to be written totally from ground up. This video shows controlling DC motor speed with temperature th-cam.com/video/5xQ8vLavWKQ/w-d-xo.html you may learn from it.

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

    Good one. Thanks!

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

      You are welcome.

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

    Gorgeous

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

      You are welcome. The best thank you for me is to subscribe to my channel. Your subscription is stamp of approval and my videos will be suggested to more people and this will help me. I appreciate it. thanks❤️

  • @جاسممحمدسعدون
    @جاسممحمدسعدون 2 ปีที่แล้ว

    Thank you very much , can I use the gy-61 sensor instead and without calibration?

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

      this code is written specifically for this module. Won't work on anything else.

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

    Can you post a tutorial with RPI 1031…

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

      never heard of that product. But I found it on Sparkfun and it says: Retired Product
      This product has been retired from our catalog and is no longer for sale. This page is made available for those looking for datasheets and the simply curious.

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

    What is the advantage against an MPU6050?

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

      6050 is 3-axis angle sensor. this is different. no library, no calibration and very simple.

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

    Hi Ahmad, I want to measure how much a person's body rotates or when a person is slouching. Do you think this will help me do that? I don't have a robotics background. Thanks

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

    Thank you for this amazing video!! I'm new to this and it helps me with my final project. But I just wanted to ask one thing. Does this sensor able to be set to trigger an LED once it reaches a certain angle??

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

      you are welcome. the whole point of the code is to do something with the angle. In the code I have provided two alarm meaning do something if angle is reached at certain value. you may use if(angle >45) { //do something here }
      if you don't know the conditional statement, then Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135

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

      @@robojax Okayyy thank youu

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

    Thank you for this video. Do you by any chance know an orientation capteur as simple as this one. I mean, this sensor rotate on X axe, but I am looking for a sensor which rotate on Z axe. A sensor which can say if a car go left or right. I hope I make me understanding. Than k you in advance.

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

      I think I have explained it, this is used for any axis.

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

      @@robojax Thank you.

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

    Great tutorials. Wonder if the sensor will be reliable when is tilted on x and y axis at the same time.

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

      it doesn't detect the other axis. so it should not affect it.

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

      @@robojax Thank you!

  • @426trickyrick
    @426trickyrick 3 ปีที่แล้ว

    Just got my SCA60C. Downloaded your sketch. When laying flat on a desk angle is 102 when I tilt it 90 degrees it shows 92 degrees. Adjustable pots do nothing. D02 led on all the time Do I have a defective unit

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

      2 degrees is not bad. how do you do know the surface you are putting it or the surface you are starting is correct?

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

    What the specific name on proteus for sca60c angle sensor??

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

      that name is so expensive, I never go towards it.

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

    Hi.
    modified code used in this video to switch on and off 2 relays depending on the inclination and angle. Going to use this in an environment with some vibration (a vehicle) and by shaking the sensor up and down i have noticed that it sometimes switches off when it should not since angle changes for a split milisecond. Tried various combinations with delays and it somehow worked but i stopped getting almost immediate response from the sensor so when i tilted from left to right faster than the delay it was lagging to much.
    Is there a tilt sensor or any other multi-axial sensor that would fit my application for an environment with some vibrations? I am willing to have a go with a double SCA60C on one board (will try to combine 2 SCA60Cs to avoid buying more sensors).
    Learned a lot from this video :) thanks

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

      Hi, Thanks for sharing your experience. Good luck with your project. Stay safe.

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

      @@robojax any other sensor i can try that is not going to be influenced by vibrations as much as this one used in the video?

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

      there are mot complicated 3 axis sensors such as this th-cam.com/video/mzwovYcozvI/w-d-xo.html or this th-cam.com/video/uhh7ik02aDc/w-d-xo.html

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

      @@robojax Hi. Will go with the simpler one... the 1 axis didnt work that well for me

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

    Hello great video, wondering how to connect to buzzer for 2 specific angles
    Thank you

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

      Hello Robin, I just write the code for you and created a new page for it. The code is to control a relay or buzzer. Take action at certain angle. the link is added to the main code page and here for you. robojax.com/L/?id=217 good luck

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

    What does the values 96,927,-90,90 mean on the map() function ? Thanks for the video really helpful with my solar project

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

      Hello and you are welcome. here is the details and example of map() function www.arduino.cc/reference/en/language/functions/math/map/

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

    Great video. Can i use it as automobile tilt sensor? Is it sensitive to vibration?

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

      thanks. I am not sure if can be used in automotive. Check the datasheet on the resources page for this item, on page 7 they mention it in the Note2.

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

    Hi will this show all 360 degrees of angles? Thanks

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

      Hi, remember nothing. This very basic question and must have explained it in the video. Please watch fully.

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

      @@robojax minus 10 would be 190 degrees?

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

    good video, but I have a question for this device that the angle is not very accuracy compare to other inclinometer or protractor, how can I fix this problem? thks

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

      is accurate by 1 degree. if you need further accuracy, use different module.

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

    can it detect rotation in clockwise n anti clockwise, if supposed installed on roration disk

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

      Yes you can if you somehow keep the power and all wires connected and also rotate the module. The sensor is on the motor and it needs to move to detect. that's why you can only rotate 360 easily. More than that would be hard but not impossible.

  • @DS-mo6md
    @DS-mo6md 2 ปีที่แล้ว

    Very cool.. I wonder if there is a way to send the angle signal to a simple dual digit LED readout . I made a power spoiler for my vehicle with a linear actuator to help increase down force on the highway. to know what the angle of attack is I thought about doing something like this ( would have to wate proof it of course ) . My other thought was just to have a camera up there that also acts as eyes from the roof and back.

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

      sorry what is "signal to a simple dual digit LED readout "? do you mean LED Seven Segment display? if so you need this TM1637 dispaly to just display the number th-cam.com/video/cJqmXjERwkQ/w-d-xo.html this video is part of my Arduino which has over 200 projects Arduino Step by Step Course (over 100 lectures) Starts here th-cam.com/video/-6qSrDUA5a8/w-d-xo.html

    • @DS-mo6md
      @DS-mo6md 2 ปีที่แล้ว

      @@robojax yes I meant a 7 segment sorry. I suppose I could always use one and it would show me the 10ths place of the value? My other thought is I could make a custom animation showing the angle of the spoiler to like a Nextion lcd screen hooked to a potentiometer pot. I do like the classic look of simple 7 segment though lol.. anyway thanks for all you share! I'm new to arduino obviously so about to explore a new world.

    • @DS-mo6md
      @DS-mo6md 2 ปีที่แล้ว

      @@robojax on second thought I just realized maybe an angle sensor is not the best idea because the values would change at every gradient in the road lol... will have to use a position knob or something.

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

      may be rotary encoder where it shows the angle on the LCD th-cam.com/video/6xVLbNlmK-g/w-d-xo.html or you could use OLED dispaly to show an arrow with direction or angle.

    • @DS-mo6md
      @DS-mo6md 2 ปีที่แล้ว

      @@robojax yeah that was my thought but I realized my linear actuator has no feedback ( the white/yellow breakout ) its only a power/ground type you would run on a DPDT switch. I bought a cheaper elegoo R3 and a Nextion 2.4" ... The nextion I've seen can store images so I can make a custom gauge basically like an animation which is really cool. I just have to learn more and how I would assign values .. have been watching the videos. I did want something basic but after seeing what the nextion could do I couldn't resist. My thinking is this .. I've seen the laser range sensors ( smallest option compared to sonar and infrared ) so I could put that on the bottom of the spoiler or the top of the roof aimed at the spoiler to get my values then they would have animation assigned. Would jus thave to find a way to waterproof the range sensor.. Then I will just leave the momentary switch separate from the arduino and right to the actuator. If youre curious this is what the setup is... here crudely setup for testing the range and stuff... Just a project I wanted to do to add some adjustable stability to my van on the highway lol and setup a system.. I was just going to use a backup cam that can see behind and incidentally see the spoiler but it wasnt interesting enough. th-cam.com/video/DicdpP5Bct0/w-d-xo.html

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

    hi Robo,
    If i move this module in one direction in which you change angle but keeping angle the same, would i get 'fake' angle due to acceleration?
    Thank you

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

      I haven't tested it but I believe acceleration is not affecting it.

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

      @@robojax can you tried it. Idlike to implement it into my bike

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

    What is the diference between tilt sensor and accelerometer sensor? why is one better that the other?

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

      'accelerometer" from the name we know it senses the acceleration on an object in 3-D space. the angle sensor is very simple way to get angle. We have gyroscope which is better than this module in the video with more precise angle for precise projects. this module however is excellent for most projects.

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

      @@robojax Thanks, but not I have another question. What is the difference between adxl345 and mpu6050? Wich one is doing a better job and why? (I have this question because I saw mpu6050 having an accelerometer + a gyro, and is not clear for me why)

    • @ken-w
      @ken-w 3 ปีที่แล้ว

      @@akun2500 any update on this comment

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

    Superb.......

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

      Thank you.

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

    Can it measures angle in a rocket at 10.000 feet ?

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

      I haven't looked at how it behaves in higher elevation. May be look at this module which is very accurate and it is from TDK th-cam.com/video/mzwovYcozvI/w-d-xo.html

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

    What is the sampling frequency?

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

      the output is not digital. Resolution and values have been demonstrated and I believe we have the datasheet link in the details page.

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

    what if you flip it forward or backward ? will it show readings ?

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

      Yes it will read in any position. But you have set in the code from the rest or home position. I have explained it. You may watch the video again.

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

      @@robojax ok thank you so much , I may have skipped that part 😅

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

    Do you guys have one that can beep if it goes over 180

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

      that is the main reason we use it to detect specific angle and take action or do something. Yes. Jus watch it carefully and do not skip. I have not said extra stuff in the video.

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

      @@robojax Do you have an email I can contact you on?

  • @ProPro-li4mz
    @ProPro-li4mz 2 ปีที่แล้ว

    Sir i ordered 2 products both are run with this program but the angles have a huge error and right side led was not blinking when i tilted to right
    In zero degree it reads -60 degree
    Please helpe me☹️☹️

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

      just add or subtract some value so you can get actual number.

    • @ProPro-li4mz
      @ProPro-li4mz 2 ปีที่แล้ว

      @@robojax still no change sir i tried two pieces bought from amazon

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

    How i can contact you sir? Please ..

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

      Sorry, you have no time to communicate.

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

      @@robojax ok so i can direct asking here .. What of type sensor to connect the arduino Uno for specific to measure the angle ? Example to measure the angle for injection ? 10 degree, 25 degree ,45 degree , and 90 degree? Please answer sir .. Thanks ..

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

      @@robojax because i will soon to do the project regarding automated injector with coding and connect to arduino Uno