element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Sensors
  • Technologies
  • More
Sensors
Blog ROHM Colour Sensor BH1749NUC
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Sensors to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 24 Nov 2018 5:17 PM Date Created
  • Views 1818 views
  • Likes 6 likes
  • Comments 4 comments
  • RoadTest
  • rohm
  • road_test
Related
Recommended

ROHM Colour Sensor BH1749NUC

Jan Cumps
Jan Cumps
24 Nov 2018

I'm Road Testing the Rohm SensorShield-EVK-003 (Arduino Compatible) and the sensors that come with it.

In this post, the Colour Sensor BH1749NUCBH1749NUC.

image

 

The Sensor Shield ecosystemSensor Shield ecosystem is ROHM's test bed for their sensors. It's an Arduino form shield with a number of slots.

The small evaluation boards for their sensors plug into that board.

For each of the sensors, there's an example sketch available.

In this blog, I'm checking the Colour Sensor that comes with the kit.

 

Evaluation Board

 

Similar to the other sensors I reviewed, the board has the sensor and a bypass cap.

There's the optional footprint for the 2 I2C pullups and a jumper to allow you to change the i2c address.

image

image: ROHM website

 

I haven't discussed the jumper system on the i2c evaluation boards yet, although we also have this on the Magnetometer shield.

By default, the address pin is (for this one) connected to VDD by a tiny copper trace.

To change the address, you have to rip that trace and solder a bridge between the address pin and ground.

Unfortunately, the PCB uses black solder mask, and even with a magnification glass I can't see where the connection between the default pins is made.

It looks like it's between the two pads of JP1, but maybe it isn't. That trace seems to wander off to somewhere.

Black solder mask and no published PCB design makes it unnecessary difficult to find out where to cut.

 

The default address, as configured on the module, is 0x39.

The interrupt pin, connected to Arduino D2, is worth reviewing. It can be set to react on one of the RGB colours.

I'll look into it in the next section.

 

Colour Sensor BH1749NUC

 

There are four light detecting diodes on the chip, capped with a transparant window.

There are three ADCs. The IR shares one with blue. The IC can work in IR reject mode, for ambiant light measurements.

imageimage

image: block diagram and interrupt mechanism from ROHM datasheet

 

The interrupt can be set to any of the three visible colours.

You can set the threshold for that trigger, then react on that in your code.

You release the interrupt yourself from firmware.

The number of samples that have to exceed the threshold before triggering can be configured via i2c.

The example sketch and library don't use the trigger.

 

Test Setup

 

I've used white and coloured LEDs.

 

White (backlight of multimeter):

BH1749NUC (RED)    = 35
BH1749NUC (GREEN)  = 168
BH1749NUC (BLUE)   = 81
BH1749NUC (IR)     = 2
BH1749NUC (GREEN2) = 168

 

Desk LED lamp 1800 lm, 5000 K

BH1749NUC (RED)    = 28784
BH1749NUC (GREEN)  = 25682
BH1749NUC (BLUE)   = 6682
BH1749NUC (IR)     = 674
BH1749NUC (GREEN2) = 25798

 

White (Mobile phone torch):

BH1749NUC (RED)    = 17950
BH1749NUC (GREEN)  = 51230
BH1749NUC (BLUE)   = 21999
BH1749NUC (IR)     = 631
BH1749NUC (GREEN2) = 50787

 

I may update this post later with IR, green, blue, red and yellow LEDs. Depends on what the other road testers do.

But first I'm going to see if I can expand the example to work with the interrupt mechanism.

edit: not needed, Sparkfun did that: https://github.com/sparkfun/SparkFun_BH1749NUC_Arduino_Library/blob/master/examples/Example3_NewDataInterrupt/Example3_NewDataInterrupt.ino

 

Related blog
ROHM Temperature Sensor BD1020HFV
ROHM Magnetometer Sensor BM1422AGMV
ROHM Hall Sensor BD7411G
ROHM Colour Sensor BH1749NUC
ROHM Colour Sensor BH1749NUC - part 2: Other Firmware Libraries
ROHM Ambient Light and Proximity Sensor RPR-0521RS
  • Sign in to reply

Top Comments

  • DAB
    DAB over 6 years ago +1
    Nice update Jan. Is there any data about the spectral response of each of the sensors? DAB
  • Jan Cumps
    Jan Cumps over 6 years ago in reply to DAB +1
    DAB wrote: Nice update Jan. Is there any data about the spectral response of each of the sensors? DAB Yes, the datasheet has that. I've posted a link in the main post above.
  • Jan Cumps
    Jan Cumps over 6 years ago in reply to DAB +1
    DAB , here's that section of the datasheet:
  • Jan Cumps
    Jan Cumps over 6 years ago

    I was planning to write an example with interrupts, but sparkfun has done that already:

    https://github.com/sparkfun/SparkFun_BH1749NUC_Arduino_Library/blob/master/examples/Example3_NewDataInterrupt/Example3_N…

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 6 years ago in reply to DAB

    DAB , here's that section of the datasheet:

     

    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 6 years ago in reply to DAB

    DAB  wrote:

     

    Nice update Jan.

     

    Is there any data about the spectral response of each of the sensors?

     

    DAB

    Yes, the datasheet has that. I've posted a link in the main post above.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 6 years ago

    Nice update Jan.

     

    Is there any data about the spectral response of each of the sensors?

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube