gary
June 14, 2016, 11:23am
1
I have a Yoctopuce Light Sensor, (Yocto-Light-V3 - Tiny USB ambiant light sensor (lux meter) ), which I current have connected to my Windows PC via USB as I can talk to it via a little C# program to determine current light levels.
I’d like to move this over my Pi 3 with Cayenne and I don’t know where to start!
Do I connect this to my Pi via USB again, but can Cayenne talk to it? Is there a better way of interfacing it?
Any guidance appreciated!!
Gary
adam
June 15, 2016, 12:04am
2
Welcome to Cayenne!
I’m sure you could get the Pi to read the data, but without writing a custom driver for Cayenne you won’t be able to get that data to the dashboard. The easiest option currently would be to get a supported light sensor:
TSL2561
standard photocell (resistor type)
Adafruit or Amazon both carry them and they are inexpensive.
1 Like
gary
June 15, 2016, 9:17am
3
Many thanks for that. As a complete novice, can you advise if there are any writeups anywhere that show how to connect it to the Pi?
You’d need an ADC to convert the analog signals from the photocell to digital since the R-Pi doesn’t have native analog in - only a digital derivative known as PWM.
gary
June 15, 2016, 10:50am
5
gary:
complete novice
Thanks Tony, no idea what you just said!
Ian
June 15, 2016, 11:09am
6
Gary,
I really like the TSL2561. Take a look at this project I just posted on Hackster.
https://www.hackster.io/Zob/pi-zero-and-sensors-outside-via-poe-cayenne-4e40d3
Also, a simpler setup here-
https://cayenne.mydevices.com/cayenne/tutorial/tsl2561
Please let me know if I can add more insight,
Ian
gary
June 15, 2016, 11:34am
7
Perfect! Exactly what I needed - many thanks!
Is there a Cayenne SDK somewhere ?
bestes
June 16, 2016, 3:00pm
9
Great question! We’re working on opening up an API right now.
-B
bestes
June 16, 2016, 3:02pm
10
Hi Gary,
Cayenne is great for novice and advanced users alike. Please feel free to use the forum for any questions that come up.
Glad you got some help from @Ian , I’m going to move this category to Helped. Hope that’s okay with you.
Cheers,
-B
Great. We’ll have a look at it when it’s available
1 Like
gary
June 16, 2016, 3:30pm
12
Please let us know when you’ve created something - I think your sensors are great!