CCD Line scanning sensor
-
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
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.
-
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...
-
@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 ?
-
@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.
Suggested Topics
-
Welcome
Announcements • 23 Mar 2014, 08:24 • hek 2 Apr 2014, 14:39 -
Simulate Online-Recreating 'Flappy Bird' with Arduino Nano
My Project • 15 Jan 2025, 09:13 • Skylar Jones 15 Jan 2025, 09:13 -
Nb of possible nodes in a mysensors networks with domoticz
My Project • 13 Jan 2025, 18:10 • GLAB 16 Feb 2025, 01:11 -
Water Meter or "How to get Home Assistant to send saved data to an Arduino"
My Project • 18 Oct 2024, 02:19 • OldSurferDude 18 Oct 2024, 02:19 -
Water Filtering and Sterilization and Hot Water Recirculation
My Project • 10 Aug 2024, 07:51 • fsgraz 12 Aug 2024, 05:25 -
Wio-E5 (STM32 and SX1262)
My Project • 31 Dec 2024, 17:52 • nagelc 25 Jan 2025, 20:21