thingy color sensing not working after DFU

asked 2017-08-13 19:17:10 +0200

Color sensing not working after DFU. No color reflection LED activity noted. I would like to have more detailed info on how the color sensing code translates the raw color data to #XXXXXX value on the iPad display.

edit retag flag offensive close delete report spam

1 answer

Sort by ยป oldest newest most voted
sigurdon gravatar image

answered 2017-08-14 15:17:58 +0200

updated 2017-08-14 15:18:06 +0200


The Thingy:52 uses a BH1745 Color Sensor. The sensor senses red, green, and blue light (RGB) and converts them to digital values, and these values are sent over i2c to the nRF52. The RGB values are then used in the Color characteristic found in the Environment service. The initial raw color values are 16-bit values, these are normalized and convert into standard 8-bit RGB values. Then these values(red, green and blue in range 0 to 255) are convert into a hexadecimal string.

edit flag offensive delete publish link more


Thank you very much, Sigurd, for the excellent answer.

Fred Eady ( 2017-08-14 15:26:20 +0200 )editconvert to answer

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

Question Tools

1 follower


Asked: 2017-08-13 19:17:10 +0200

Seen: 43 times

Last updated: Aug 13