Chapter 1 Scope This document will describe the necessary steps to connect OPT3001EVM to a BeagleBone Black development platform. By the end of this User’s Guide, the reader should be able to verify function- ality of the OPT3001 device and get results from light measurements.
Beagle Bone Black Beagle Bone Black is an Open Source Hardware Software Development Plat- form using Texas Instruments’ AM335x System-on-Chip device. It provides an easy to use Software Development Platform based on an ARM Cortex-A8 CPU together with many other peripherals integrated into the die.
Chapter 3 Hardware Platform For the purpose of this Getting Started Guide, we will be using OPT3001EVM Rev B and Beagle Bone Black Rev A5C. The picture below shows a simple way of connecting OPT3001EVM to the Beagle Bone Black using a standard 100 mil spacing breadboard.
Page 7
CHAPTER 3. HARDWARE PLATFORM Figure 3.1: connecting opt3001evm to beagle bone black...
The Linux Kernel Writing Our DeviceTree Now that we have OPT3001EVM connected to our Beagle Bone Black, we need to tell Linux about it. Recent Linux Kernel release utilize Open Firmware as the methodology for firmware to tell the Operating System about devices which sit under non-enumerable buses.
(b) press Y (see figure 4.5); 3. navigate to Light sensors and press ENTER (see figure 4.6); 4. navigate to Texas Instruments OPT3001 Light Sensor (see figure 4.7); (a) press M (see figure 4.8); or (b) press Y (see figure 4.9);...
Page 11
CHAPTER 4. THE LINUX KERNEL 5. exit menuconfig by following all ¡Exit¿ buttons; 6. when asked if you want to save the new configuration, choose ¡Yes¿ (see figure 4.10).
Page 12
CHAPTER 4. THE LINUX KERNEL Figure 4.1: linux kernel configuration main window Figure 4.2: Navigating to Device Drivers Figure 4.3: Navigating to Industrial I/O support...
Page 13
CHAPTER 4. THE LINUX KERNEL Figure 4.4: Industrial I/O support after pressing M on the keyboard Figure 4.5: Industrial I/O support after pressing Y on the keyboard Figure 4.6: Navigating to Light sensors...
Page 14
CHAPTER 4. THE LINUX KERNEL Figure 4.7: Navigating to Texas Instruments OPT3001 Light Sensors Figure 4.8: OPT3001 after pressing M on the keyboard Figure 4.9: OPT3001 after pressing Y on the keyboard...
Page 15
CHAPTER 4. THE LINUX KERNEL Figure 4.10: Exitting menuconfig...
Chapter 5 Usage After booting up and logging in to our Beagle Bone Black running Linux, we will navigate to the directory where files created by our OPT3001 Device Driver are located. To do that, please run: # cd /sys/bus/iio/devices/iio\:device0 # ls \verb|in_illuminance_integration_time| power events...
Chapter 6 Conclusion During this short Guide we have wired OPT3001EVM to a Beagle Bone Black using a standard breadboard, we downloaded and compiled the Linux Kernel and also verified that OPT3001 driver functions as expected.
Need help?
Do you have a question about the OPT3001EVM and is the answer not in the manual?
Questions and answers