Windows 10 IoT Core and TSL2561

Story

Update 08-15-2015: Project converted to Visual Studio 2015 RTM

 Luminosity Sensor Sample using Windows IoT Core

Windows 10 IoT Core and TSL2561 2

As you all know Microsoft released Insider Preview of Windows 10 IoT Core recently. I too download and installed it on my RPi2. While playing with Windows 10 IoT Core, I decided to work on TSL2561 Luminosity Sensor using I2C. Here is the sample I created this weekend.

In this project I am using TSL2561 Luminosity Sensor connected to RPi2 using I2C. This project is based on Sparkfun TSL2561 Library. This library is ported to Windows 10 IoT Core. This is simple and a straight forward porting. The sample read the luminosity and display it. You can either connect RPi2 to a monitor or access the internal HTTP server running on port 8080. The HTTP Server code is shamelessly copied from the super awesome project Hands-on-lab IoT Weather Station using Windows 10.

Wiring

  • TSL2561 3V3 to RPi2 3.3v (Pin #01)
  • TSL2561 GND to RPi2 Ground (Pin #09)
  • TSL2561 SDA to RPi2 SDA (GPIO02)
  • TSL2561 SCL to RPi2 SCL (GPIO03)

Using the sample Open the TSL256 solution in VS2015. Start the application using the ‘Remote Device’ option under the Debug Tab. Configure the IP Address of the RPi2.

To see the sensor values, either connect the RPi2 to a monitor or access the internal HTTP Server using the URL

http://<<RPi2 IP Address>>:8080

The web page automatically refresh every 3 seconds.

Windows 10 IoT Core and TSL2561 2

For more detail: Windows 10 IoT Core and TSL2561


A Propos De L'Auteur

Ibrar Ayyub

Je suis expérimenté, rédacteur technique, titulaire d'une Maîtrise en informatique de BZU Multan, Pakistan à l'Université. Avec un arrière-plan couvrant diverses industries, notamment en matière de domotique et de l'ingénierie, j'ai perfectionné mes compétences dans la rédaction claire et concise du contenu. Compétent en tirant parti de l'infographie et des diagrammes, je m'efforce de simplifier des concepts complexes pour les lecteurs. Ma force réside dans une recherche approfondie et de présenter l'information de façon structurée et logique format.

Suivez-Nous:
LinkedinTwitter

Laisser un Commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

fr_FRFrench
Faire défiler vers le Haut