background image

 

 

AVR1925: XMEGA-C3 Xplained Hardware User’s Guide [APPLICATION NOTE] 

Atmel-42053B-XMEGA-C3-Xplained-Hardware-Users-Guide_Application-Note_AVR1925_02/2015 

12 

4.6.2  Ambient Light Sensor 

The ambient light sensor TEMT6000X01 from Vishay Semiconductors is sensitive to visible light much like the human 
eye. The measurement circuitry is configured to measure the illuminance from ~10 to ~900lx when the internal VCC/1.6 
reference is used. 
The data i

Table 4-10

 which shows the relationship between illuminance and output voltage of the sensor circuitry is 

generated based on the symbols and formulas i

Table 4-9

. 

Table 4-9.  Symbol Description for Illuminance Calculation 

Symbols 

Description 

ICA 

Calibrated sensor responsivity at 100lx. This is 50µA according to the sensor datasheet 

Ev 

Illuminance 

Current through the sensor 

Output voltage of the sensor circuitry that is provided to the ADC 

Series resistor of the sensor circuitry. 4.7kΩ has been chosen in this design 

Ev = 100 × I / ICA 

Illuminance is calculated based on the relation of the actual current through the sensor to the 

calibrated value at 100lx 

I = U / R 

Since the ADC measures the voltage across the series resistor of the sensor circuitry it is 

necessary to calculate the voltage based on the current 

U = (Ev × R × ICA) / 100 

Based on the current and the illuminance the output voltage of the sensor circuitry can be 

calculated 

Table 4-10.  Illuminance vs. ADC Input Voltage 

Illuminance [lux] 

ADC input [V] 

Illuminance 

0.0024 

Dusk 

10 

0.0235 

Dusk 

20 

0.0470 

Dusk 

30 

0.0705 

Dusk 

40 

0.0940 

Dusk 

50 

0.1175 

Living room 

60 

0.1410 

Living room 

70 

0.1645 

Living room 

80 

0.1880 

Living room 

90 

0.2115 

Living room 

100 

0.2350 

Living room 

200 

0.4700 

Office lighting 

300 

0.7050 

Office lighting 

400 

0.9400 

Office lighting 

500 

1.1750 

Office lighting 

600 

1.4100 

Office lighting 

700 

1.6450 

Office lighting 

800 

1.8800 

Office lighting 

900 

2.1150 

Office lighting 

1000 

2.3500 

Overcast day 

 

Summary of Contents for AVR1925 XMEGA-C3 Xplained

Page 1: ...xpansion headers Touch Two Atmel AVR QTouch button Memory microSD Card Description The Atmel AVR XMEGA C3 Xplained evaluation kit is a hardware platform to evaluate the Atmel ATxmega384C3 microcontroller The kit offers a larger range of features that enables the Atmel AVR XMEGA user to get started using XMEGA peripherals right away and understand how to integrate the XMEGA device in their own desi...

Page 2: ...uring the Atmel AVR XMEGA Power Consumption 4 2 4 Programming the Kit 5 3 Connectors 6 3 1 Programming Headers 6 3 2 I O Expansion Headers 6 4 Peripherals 8 4 1 microSD Card 8 4 2 Atmel AVR QTouch Button 8 4 3 Mechanical Buttons 8 4 4 LEDs 8 4 5 OLED Display 9 4 6 Analog I O 9 4 6 1 Temperature Sensor 9 4 6 2 Ambient Light Sensor 12 5 Code Examples 13 6 Revision History 14 6 1 Revision History of ...

Page 3: ... a free Atmel IDE for development of C C and assembler code for Atmel microcontrollers Atmel FLIP Flexible In system Programmer BatchISP FLIP is a command line tool for programming the flash and EEPROM memories of the AVR and is part of the FLIP installation It can be used to communicate with the preprogrammed USB DFU boot loader Atmel JTAGICE3 JTAGICE3 is a mid range development tool for Atmel 8 ...

Page 4: ...n boards this margin is recommended The power can be applied to the board either via the USB connector or on pin 10 on the header J3 The USB connector is the preferred input because it is then possible to connect expansion boards on top of the J3 header The 5V USB supply voltage is regulated down to 3 3V with an onboard LDO regulator which provides power to the entire board Expansion top boards th...

Page 5: ...ega384C3 due to current flow into the I O pins 2 4 Programming the Kit The kit can be programmed either from an external programming tool or through an USB boot loader which is pre programmed on the device The boot loader is evoked by pushing the push button SW0 during power on that is push and hold the button and hence connect an USB cable to the kit Programming can be performed through the DFU p...

Page 6: ...e 3 1 XMEGA Programming and Debugging Interface PDI Pin on programming header PDI 1 DATA 2 VCC 3 4 5 CLK 6 GND 3 2 I O Expansion Headers The Atmel AVR XMEGA C3 Xplained headers J1 J2 J3 and J4 offer access to the I O of the microcontroller in order to expand the board for example by mounting a top module onto the board The header J1 offers digital communication interfaces like UART TWI and SPI Tab...

Page 7: ...ight sensor 1 2 PA1 PA1 Temperature sensor 1 3 PA2 PA2 Filter output 1 4 PA3 PA3 Display reset 5 PA4 PA4 6 PA5 PA5 7 PA6 PA6 8 PA7 PA7 9 GND 10 VCC_P5V0 Note 1 Can be disconnected from onboard functionality by cut straps The header J4 offers digital communication interfaces such as UART and TWI but care must be taken because some pins are also connected to on board peripherals Table 3 5 Expansion ...

Page 8: ...ot affected by any touches from the back side of the board Table 4 2 QTouch Button Connection Pin on XMEGA QButton PF4 SNS0 PF5 SNSK0 PF6 SNS1 PF7 SNSK1 4 3 Mechanical Buttons Two mechanical buttons are connected to Atmel AVR XMEGA All buttons have external pull ups so there is no need to activate internal pull ups in order to use them When a button is pressed it will drive the I O line to GND Tab...

Page 9: ...he MCU and the OLED display is shown in Table 4 5 Table 4 5 OLED Display Connection Pin on XMEGA QButton PD0 Data_command PD1 SCK PD3 MOSI PF3 SS PA3 RESET 4 6 Analog I O 4 6 1 Temperature Sensor The temperature sensor circuitry consists of a serial connection of a normal and a NTC resistor The NTC sensor is from Murata and some part details are shown in Table 4 6 more information can be obtained ...

Page 10: ... 47 37 601 77 11 757 12 707 524 18 140 142 48 36 063 78 11 344 11 666 972 19 133 432 49 34 595 79 10 947 10 628 988 20 127 080 50 33 195 80 10 566 9 593 342 21 121 066 51 31 859 81 10 200 8 559 931 22 115 368 52 30 584 82 9 848 7 528 602 23 109 970 53 29 366 83 9 510 6 499 212 24 104 852 54 28 203 84 9 185 5 471 632 25 100 000 55 27 091 85 8 873 4 445 772 26 95 398 56 26 028 86 8 572 3 421 480 27 ...

Page 11: ... 58 159 1 131 7 1123 0 155 59 154 1 093 8 1084 0 149 60 148 1 055 9 1047 0 144 61 142 1 018 10 1010 0 138 62 137 0 982 11 975 0 133 63 132 0 947 12 940 0 128 64 127 0 913 13 907 0 124 65 123 0 880 14 874 0 119 66 118 0 848 15 842 0 115 67 114 0 817 16 811 0 111 68 110 0 787 17 781 0 107 69 106 0 758 18 752 0 103 70 102 0 730 19 724 0 100 71 99 0 702 20 697 0 096 72 95 0 676 21 671 0 093 73 92 0 65...

Page 12: ...uitry that is provided to the ADC R Series resistor of the sensor circuitry 4 7kΩ has been chosen in this design Ev 100 I ICA Illuminance is calculated based on the relation of the actual current through the sensor to the calibrated value at 100lx I U R Since the ADC measures the voltage across the series resistor of the sensor circuitry it is necessary to calculate the voltage based on the curren...

Page 13: ...Examples The example application is based on the Atmel AVR Software Framework that is included in Atmel Studio 6 The AVR Software Framework can also be found as a separate package online at http www atmel com tools avrsoftwareframework aspx For more information about the code example see the application note Atmel AT01639 XMEGA C3 Xplained Software User Guide ...

Page 14: ...he correct document has been updated 42053A 02 2013 Initial document release 6 2 Revision History of the Kit To identify the revision of the Atmel AVR XMEGA C3 Xplained kit locate the bar code sticker on the back side of the board The first line on the sticker shows the product ID and the revision For example A09 1607 2 can be resolved to ID A09 1607 and revision 2 6 2 1 Revision 2 Revision 2 of t...

Page 15: ...tual property right is granted by this document or in connection with the sale of Atmel products EXCEPT AS SET FORTH IN THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTY OF MERCHANTABILITY FITNESS FOR A PARTICULA...

Page 16: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Atmel ATXMEGAC3 XPLD ...

Reviews: