# Particle photon and sensors

**URL:** <https://forum.core-electronics.com.au/t/particle-photon-and-sensors/3541>\
**Category:** Support\
**Created:** [23 September 2018 10:01 UTC](https://forum.core-electronics.com.au/t/particle-photon-and-sensors/3541 "2018-09-23T10:01:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter47774](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@Peter47774](https://forum.core-electronics.com.au/u/Peter47774)\
**Post date:** [23 September 2018 10:01 UTC](https://forum.core-electronics.com.au/t/particle-photon-and-sensors/3541/1 "2018-09-23T10:01:42Z")

</div>

I am interested in connecting sensors to a Particle Photon. I have a TCS3200 RGB sensor that works with an Arduino. Has anyone connected a sensor like this to a photon?

---

<div class="post-metadata">

**Author:** ![Stephen](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/stephen/32/1599_2.png) [@Stephen](https://forum.core-electronics.com.au/u/Stephen)\
**Post date:** [24 September 2018 02:27 UTC](https://forum.core-electronics.com.au/t/particle-photon-and-sensors/3541/2 "2018-09-24T02:27:55Z")

</div>

Hi Peter,

Particle uses Wiring, the same code framework as Arduino. That means that most Arduino code will run on a Particle board with no modifications. You just need to change the code to accommodate the Photons pins and it will work just the same.

The one difference it that the Particle Photon uses 3.3v logic, so plugging in a 5v sensor will be very bad. You may need to use a logic level converter:

> **[Logic Level Converters for Particle - Tutorial](https://core-electronics.com.au/tutorials/logic-level-converters-for-particle.html)**
>
> So you’ve got your Particle Photon or Electron, you’ve got your sensors and external components and you’re ready to build an IoT device to make the world your slave. But hang on a minute, the sensor you have only operates on 5V and you vaguely recall...

This particular sensor can take either be powered by either so you may not need one, but read the datasheet when in doubt.

Let us know how your project works out and share the results on the forum once your done!

---

<div class="post-metadata">

**Author:** ![Peter47774](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@Peter47774](https://forum.core-electronics.com.au/u/Peter47774)\
**Post date:** [24 September 2018 03:45 UTC](https://forum.core-electronics.com.au/t/particle-photon-and-sensors/3541/3 "2018-09-24T03:45:02Z")

</div>

Thanks yes I thought voltage might be a problem

Is there a sensor that works with 3.3 volts?

I will also research logic level converters

Peter

---

<div class="post-metadata">

**Author:** ![Stephen](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/stephen/32/1599_2.png) [@Stephen](https://forum.core-electronics.com.au/u/Stephen)\
**Post date:** [24 September 2018 06:49 UTC](https://forum.core-electronics.com.au/t/particle-photon-and-sensors/3541/4 "2018-09-24T06:49:22Z")

</div>

Sensors come in different voltages. Logic level converters are really simple if you need to use them.
