Color Sensor to RGB LED Driver with an Arduino

bm017_sensor

I’m in the process of adding the BM017 Color Sensor to our web site.  This breakout module is based on the TCS34725 by AMS (formerly Taos).   You can use it to detect red, green, blue, and clear color values from object in front of the sensor. I covered basic use of the sensor in my post Sensing Color with the Arduino and the TCS34725.   The code I use here builds on that blog post.

I was interested in writing some Arduino code that would use the BM017 to sense colors and then use the readings to drive an RGB LED.   The goal was to place a color in front of the sensor and have the RGB LED turn the same color.  It turns out this is pretty easy to do, but there are a couple of “gotchas”.

[Read more…]

Sensing Color With The Arduino and the TCS34725

tcs34725_1

Sensing color with the Arduino and the TCS34725 is a pretty straight forward exercise.  The TCS34725 is an IC manufactured by AMS (previously Taos).  It packages color sensing analog-to-digital converters for clear, red, green, and blue color sensing into a tiny 6 pin package.  The TCS34725 implements an I2C interface to configure settings and reading the color values.

[Read more…]

Near Field Communication(NFC) with ST Micro’s CR95HF – Part 3

This is the third installment/blog on the CR95HF, a near field communication IC manufactured by ST Micro.  NFC is a short range RF communication protocol commonly used with smart cards for touch-less information exchange.  New cell phones are being built with NFC hardware integrated making consumer applications more likely to be ubiquitous in the near future.  Examples of applications might be vending machines or secure access systems.  Here’s a Wikipedia summary of NFC.

[Read more…]

Near Field Communication (NFC) with ST Micro CR95HF – Part 2

image

Near Field Communication (NFC) with ST Micro CR95HF.  A couple of weeks back I started working on a circuit board that holds ST Micro’s CR95HF NFC communication IC.  NFC stands for near field communication, and is basically an very short-range RF data link. Several communication protocol have been adopted for use with NFC hardware.

[Read more…]

Near Field Communication, NFC and the CR95HF

nfc2

I started work on a Near Field Communication (NFC) module.  The design uses ST Micro’s CR95HF chip.   The module above is the first shot prototype unit.  This device uses a 13.56MHz RF carrier frequency and amplitude-shift keying .  The CR95HF carrier frequency powers the loop antenna shown on the module above and the resulting field couples with a similar loop antenna on an NFC enabled card.  The field coupling, like two loops of a transformer, powers the card.  Powering up the card allows the CR95HF to transmit data to and from NFC cards.  That’s the theory anyway.

[Read more…]

LSM303 Compass – Tilt Compensation

image

The LSM303 compass design makes use of our BM004 module and an Arduino Uno.  The code that converts the magnetic field reading from the IC to a heading is very simple.  However, adding tilt compensation is a little more difficult.

[Read more…]

Robotic Compass Blues

bm004_compass

Whew!  Just spent a good four hours writing code that turned out to be pretty simple.  We sell the BM004 electronic compass that’s great for robotics.  But I got the robotic compass blues.

[Read more…]

LSM303DLHC Electronic Compass Module and the Arduino

image

Our BM004 breakout module is based on the ST Microelectronics LSM303DLHC.   The LSM303DLHC basically has two ICs embedded in its tiny plastic packaging.  They are a 3-axis accelerometer, and a 3-axis magnetometer.  Both devices are connected to an I2C interface and you access the functions of each by addressing different internal register addresses.

[Read more…]