thingy color sensing not working after DFU

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

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


2 answers

Sort by ยป oldest newest most voted
sigurdon gravatar image

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

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


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

answered 2017-08-14 15:26:20 +0100

updated 2017-08-20 18:41:10 +0100

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

edit flag offensive delete publish link more

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]

User menu

    or sign up

Recent questions

Question Tools

1 follower


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

Seen: 87 times

Last updated: aug. 20