Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. CCD Line scanning sensor

CCD Line scanning sensor

Scheduled Pinned Locked Moved My Project
4 Posts 2 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • epierreE Offline
    epierreE Offline
    epierre
    Hero Member
    wrote on last edited by epierre
    #1

    A line scanning sensor could be useful for many things:

    • flow detection
    • rotary counter detection
    • water, volume detection
    • line following
      ...

    Wiring in itself is quite easy (see arduining):
    tsl201r_wiring.jpg

    some code on github can be found.

    Afterward you get a lot of information on the console that is hard for me to transform to know if the read value is good.

    z-wave - Vera -> Domoticz
    rfx - Domoticz <- MyDomoAtHome <- Imperihome
    mysensors -> mysensors-gw -> Domoticz

    1 Reply Last reply
    0
    • epierreE Offline
      epierreE Offline
      epierre
      Hero Member
      wrote on last edited by
      #2

      some bad luck... on the parallax forum the TSL1401 is documented, but adaptation to TSL202R or TSL201R proved not to be working... the 202 is a double 201 as I can say, but reading through the datasheet to compare I would not see what was wrong...

      so I ordered a TSL1401 and will put that on hold till I receive it or a superb idea would come through... at least I learned the shiftIn command...

      z-wave - Vera -> Domoticz
      rfx - Domoticz <- MyDomoAtHome <- Imperihome
      mysensors -> mysensors-gw -> Domoticz

      1 Reply Last reply
      0
      • epierreE Offline
        epierreE Offline
        epierre
        Hero Member
        wrote on last edited by
        #3

        @Anticimex @lininger @Yveaux I've received my Saleae logic analyzer, but now, as a newbie on this, what can I do to analyse signals ? should I do SPI or I2S/PCM or anything else ?

        z-wave - Vera -> Domoticz
        rfx - Domoticz <- MyDomoAtHome <- Imperihome
        mysensors -> mysensors-gw -> Domoticz

        YveauxY 1 Reply Last reply
        0
        • epierreE epierre

          @Anticimex @lininger @Yveaux I've received my Saleae logic analyzer, but now, as a newbie on this, what can I do to analyse signals ? should I do SPI or I2S/PCM or anything else ?

          YveauxY Offline
          YveauxY Offline
          Yveaux
          Mod
          wrote on last edited by
          #4

          @epierre had a quick look at the data sheet.
          The sensor has a 64 bit shift register which uses a clock signal and serial input. You need to clock in the 64 bits one by one and generate a clock pulse for each bit. Then read out each bit as an analog value on AO, and continue with the next bit.
          This thing is not i2c, spi nor i2s (audio only), but defines its own protocol.
          Connect your logic analyzer to clk and si if you like, but you also need an oscilloscope or so if you want to see the analog output values.

          http://yveaux.blogspot.nl

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          27

          Online

          11.7k

          Users

          11.2k

          Topics

          113.1k

          Posts


          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • MySensors
          • OpenHardware.io
          • Categories
          • Recent
          • Tags
          • Popular