Это видео недоступно.
Сожалеем об этом.

Using the colour sensor TCS230 or TCS3200

Поделиться
HTML-код
  • Опубликовано: 22 фев 2019
  • How to wire up and use the TCS series colour sensors with full example code to get you going. Apologies for some minor crackling noise about 3/4 of the way in. No idea what caused this.
    Link to the project page : www.xtronical.c...
    For other projects and ideas see :
    Web : www.xtronical.com
    If you'd like to support me via Patreon then the link is below and that would be just amazing. Patreons have access to all videos around 24 hours early and depending on the tier can view all the posts on Patreon as well. Along the patreon only videos. There are other rewards if you're interested. If you just want to watch videos then that's also fantastic because without people viewing I wouldn't even do half of what I do. So thanks very much :)
    Patreon at : / xtronical
    Intro/Outro Music by Creo Music : www.creo-music.com

Комментарии • 31

  • @fabianwinkelmann3931
    @fabianwinkelmann3931 5 лет назад +2

    Just works perfectly :)

  • @thxssio
    @thxssio 3 года назад

    Hello, look a lot of people complaining about the code that is wrong, but the error is in the configuration part of the arduino. Basically it's just changing the read speed side from "new line" to "no end of line". Hugs from Brazil.

  • @px1690
    @px1690 5 лет назад +1

    Hahaha ordered the same module literally yesterday.. this couldn't have come at a better time 😂

  • @faiza7774
    @faiza7774 5 лет назад +2

    hello, thank you for sharing your video, but i want to ask questions, does the sensor give constant RGB value of the colors? if yes, how to set the sensor to do so? because i also use this type of sensor but it never give constant RGB value for every color. By the way, I connect pin S0 and S1 to digital pin in Arduino just like any configuration of TCS3200. Please kindly answer my questions because it's going to be very helpful, thank you.

    • @XTronical
      @XTronical  5 лет назад

      There is always some variance with results due the the nature of the sample you are testing (usually). The samples would have to be very accurate to give very consistent results. These sensors are very accurate and perform very well. For example as long as I don't move the sample at all then repeating the measurement usually always gives the same result. But taking the sample out and then putting it back in will give a different (but close) result. This is the fault if the sample, not the the sensor. What looks like the same colour for you will have very slight differences on the surface on the sample that the sensor will pick up on.
      To solve this (and what they do in printing plants when checking colour accuracy of a print) is to allow for a tolerance in the returned values. i.e. you set how much you are prepared for the result to differ from the ideal. If it's within this tolerance it accept as the correct colour.
      Although I find that you must calibrate the sensor with a known black and known white surface (as shown in the video). If you don't the results vary wildly. If you've not calibrated then this would explain your very bad results.

  • @mickjoslyn2094
    @mickjoslyn2094 5 месяцев назад

    Hello, I have a quick question if anyone is able to answer. I keep getting 0,0,0 for my RGB values for any color I enter. I have calibrated the sensor and the circuit is built correctly. Now I am using an Arduino Mega, but I dont see any difference as long as I am using the digital pins that are assigned on the schematic and code. Thank you for any help!

    • @XTronical
      @XTronical  5 месяцев назад

      Your right, I can't see mega making any difference. So things to try unfortunately would be a normal arduino and/or new unit.

  • @user-hb8bu2wh9e
    @user-hb8bu2wh9e 3 года назад

    If I want to detect colors automatically, what I need to change in code?

  • @fly6773
    @fly6773 5 лет назад +1

    Very perfect :)

  • @ibrahimhlldmr
    @ibrahimhlldmr 5 лет назад +1

    hi. where can i get of this project codes??

    • @XTronical
      @XTronical  5 лет назад

      Link in the video description

  • @bahrilnugroho1474
    @bahrilnugroho1474 4 года назад +1

    hello ,thank you ,your project is awesome ,but i have a problem ,when i calibrate the black and white they appear at the same time and when the black calibration is done the white calibration done it self . Please kindly answer my questions because it's going to be very helpful, thank you.

    • @XTronical
      @XTronical  4 года назад

      See a reply from from about 3 months ago just below. Similar problem. Sounds like extra characters are being sent after you enter the choice. You will need to print out any codes coming in on serial back out to the monitor to see what's being sent. I suspect there's en extra newline char in there. Hope this helps.

    • @bahrilnugroho1474
      @bahrilnugroho1474 4 года назад

      @@XTronical i didn't change your code ,just copied that then ran the code ,that was what happening

    • @XTronical
      @XTronical  4 года назад

      Yes, it's not my code that would do this but your computers OS. Some will send an extra newline char as well as carriage return. I will look at trying to allow for this in the code. Bit hard without actually knowing if this is the issue though but I'll have a go.

    • @bahrilnugroho1474
      @bahrilnugroho1474 4 года назад

      @@XTronical what os do u use?

    • @XTronical
      @XTronical  4 года назад

      Windows 10, but I think there may be issues with the serial software in arduino too

  • @flopkorn2go722
    @flopkorn2go722 3 года назад

    hey i have a problem using the code, when i open the serial monitor the only thing i can see there is: "⸮⸮2⸮⸮⸮⸮8⸮\⸮⸮⸮" or similar thing. If i press one of the keys between 1 and 7 it just goes on with this kind of text. What is the problem ?

    • @XTronical
      @XTronical  3 года назад

      Your serial monitor is not set to the same speed as the software. Check the serial. Begin statement for what it is, probably 115200 and in small select box at bottom of serial monitor select this speed.

    • @flopkorn2go722
      @flopkorn2go722 3 года назад

      @@XTronical thx alot

  • @syedshozab3305
    @syedshozab3305 4 года назад +1

    will this work with arduino uno?

    • @XTronical
      @XTronical  4 года назад +1

      Yes, the nano and uno are functionally identical.

  • @shafiqalom8408
    @shafiqalom8408 5 лет назад

    Sir,as for remain difference of price between TCS3200 & TCS230,which one is best?/Why?

    • @XTronical
      @XTronical  5 лет назад

      Tcs3200 use less power when leds off and can also work at temperatures as low as - 40 degrees, compared to the TCS230's 0 degrees. Apart from that they are the same

  • @vonries
    @vonries 5 лет назад +2

    Looks like the module they had years ago may have been better than the one they have now. Check this out: ruclips.net/video/H7HTQai7Wwg/видео.html
    By Ivcviedo. This use of the module doesn't use the calibration process, but he does use brackets to help catch outliers: ruclips.net/video/g3i51hdfLaw/видео.html
    By How to Mechatronice.

    • @XTronical
      @XTronical  5 лет назад

      Some nice looking machines there, I plan on building one in the future, the first one was a very nicely 3D printed machine and looked "sweet" ! The second was more what I had in mind I think.

    • @vonries
      @vonries 5 лет назад +1

      @@XTronical I'm glad I could finally give back a little, because you are always helping us. Thanks for all your great projects.