# Micro:bit V2 + external color sensor + makecode?

**URL:** <https://forum.makecode.com/t/micro-bit-v2-external-color-sensor-makecode/13731>\
**Category:** micro:bit\
**Created:** [May 23, 2022, 4:30pm UTC](https://forum.makecode.com/t/micro-bit-v2-external-color-sensor-makecode/13731 "2022-05-23T16:30:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathpun](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mathpun](https://forum.makecode.com/u/mathpun)\
**Post date:** [May 23, 2022, 4:30pm UTC](https://forum.makecode.com/t/micro-bit-v2-external-color-sensor-makecode/13731/1 "2022-05-23T16:30:54Z")

</div>

Hello! I am trying to connect an external color sensor ([https://www.adafruit.com/product/1356](https://www.adafruit.com/product/1356)) to the micro:bit V2 using makecode. It needs to be an external sensor for my project.

I think I need an extension in makecode? I see this one but I cant get the code working. [https://makecode.microbit.org/pkg/joy-it/pxt-SEN-Color](https://makecode.microbit.org/pkg/joy-it/pxt-SEN-Color)

do you think I could use this? How would the code work? I want an etrnal LED to show the color from the sensor!

I am so confused! Thanks so much!

---

<div class="post-metadata">

**Author:** ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)\
**Post date:** [May 23, 2022, 5:10pm UTC](https://forum.makecode.com/t/micro-bit-v2-external-color-sensor-makecode/13731/2 "2022-05-23T17:10:50Z")

</div>

It may be best to use the specific sensor the extension was made to use: [https://joy-it.net/en/products/SEN-Color](https://joy-it.net/en/products/SEN-Color) or something that uses the same sensor.

It looks like the Adafruit product uses a “[TCS34725](https://ams.com/documents/20143/36005/TCS3472_DS000390_3-00.pdf/6fe47e15-e32f-7fa7-03cb-22935da44b26)” sensor and the extension was made for the “[TCS3200](https://ams.com/documents/20143/36005/TCS3200_DS000107_3-00.pdf/c53d702f-63aa-eda1-745f-d513aa4f535f)”. I think these sensors operate in different ways (i2c and counting pulses respectively), so the AdaFruit board probably won’t work with this extension.

[Amazon.com](http://Amazon.com) lists some TCS3200 sensors that probably would work ok with the extension. Search for TCS3200.

Good luck & I hope that helps a bit!  
Bill

---

<div class="post-metadata">

**Author:** ![mathpun](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mathpun](https://forum.makecode.com/u/mathpun)\
**Post date:** [May 23, 2022, 5:54pm UTC](https://forum.makecode.com/t/micro-bit-v2-external-color-sensor-makecode/13731/3 "2022-05-23T17:54:30Z")

</div>

Thank so much Bill! Do you have any examples in makecode that would work with this?

I can get a 3200 sensor thats good advice! Thanks!

---

<div class="post-metadata">

**Author:** ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)\
**Post date:** [May 23, 2022, 9:11pm UTC](https://forum.makecode.com/t/micro-bit-v2-external-color-sensor-makecode/13731/4 "2022-05-23T21:11:29Z")

</div>

Sorry, but I haven’t ever tried using a color sensor in MakeCode.

I only took a very very quick look at a few 3200 sensors, but most seem to match up with the one the extension was made for. They have inputs called S0-S3, an output, and power (VCC and GND). They sometimes omit things that weren’t connected (or have them connected internally to make it easier to use).

Bill
