Photoresistor how-to

Hi Spark Fans!

Just wanted to ask how do you connect the kit’s photoresistor (http://docs.spark.io/datasheets/makerkit/photoresistor.pdf) with the spark core?

I would like to measure the light with the spark core and return it to the serial port, my only problem is that i don’t know how to wire the photoresistor with the spark core.

Any help would be appreciated.

Thank you,
Noten

1 Like

This might be somewhat useful:
http://playground.arduino.cc/Learning/PhotoResistor#.UzF0Pni9LCQ

Since the Core doesn’t have a 0 pin, you should connect it to one of the analog pins, and edit the code accordingly. Never tried it, but it seems rather straight forward. If you run into any problems, feel free to ask, there are more than enough people here willing to help :slight_smile:

Good luck!

1 Like

@Noten,

Did you mean :spark: Fans! ? haha! kidding.

@Moors7 gave a good example and you can try it out. :wink:

1 Like

Thank you guys!

r,
Noten

Hello,

What pin should replace Arduino’s 5v?

Regards.

What are you trying to hook up to the core?

The kit’s photoresistor! I used this schema using 3V3’ pin instead of Arduino’s 5v.

As I’m just learning about electronics now, hope that’s fine :smiley:

1 Like

I would recommend you to simply change the 5V to the 3.3V pin on the :spark: core :wink:

1 Like

Hi there,
I just started to learn Spark Core.
this question and answers were really helpful. Thank you all.

I summarized what I did for photo resistor at http://d.hatena.ne.jp/higepon/20140910/1410324317.
I hope it will help!

2 Likes