Search the Community
Showing results for tags 'als'.
Found 4 results
Hi, I am new to this forum so still getting used to things. I am trying to implement the Pmod ALS on an FPGA, and I require to comply with the SPI protocol. I understood the protocol, but the only problem I have is this. "The PmodALS reports to the host board when the ADC081S021 is placed in normal mode by bringing the CS pin low, and delivers a single reading in 16 SCLK clock cycles. The PmodALS requires the frequency of the SCLK to be between 1 MHz and 4 MHz. The bits of information, placed on the falling edge of the SCLK and valid on the subsequent rising edge of SCLK, consist of three leading zeroes, the eight bits of information with the MSB first, and four trailing zeroes." As far as I know, 3+8+4=15, and not 16, so where is the extra clock cycle and what is it doing? Is the sensor providing 4 irrelevant numbers before the 8-bit of information and then 4 irrelevant numbers again? Any help will be appreciated. Thanks.
Hi all, I'm looking to use Digilent's Ambient Light Sensor as an add-on for a project I'm doing. I can't use the example code given because I'm using a little bit more complex of a coding environment (Eclipse). I've managed to translate so to speak most of the example code to work for my environment, but one thing I'm struggling with is creating the correct initialization code in my environment. Does anyone have any experience coding the ALS outside of an Arduino-like environment or can tell me what I need to do to initialize it correctly? Thanks!
I am trying to work the PMODALS off of a Teensy 3.1. I was wondering if any one has gotten this connected and working? If so could you reply with your .h file. The DSPI is not compatible with the Teensy and converting this to arduino SPI does not seem to be working. Thanks!