cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

How can I use an IR sensor with raspberry Pi using thingworx and python

gkathale
1-Visitor

How can I use an IR sensor with raspberry Pi using thingworx and python

Hello I am new to Thingworx and I want to monitor IR sensor status connected to my raspberry pi 3 GPIO using a python script. Do I need a SDK for the sensor? Or else how can I identify the sensor on Thingworx. Please share the link if anyone has the Step by step process.

5 REPLIES 5
ttielebein
14-Alexandrite
(To:gkathale)

Hello,

I'd advise checking out the Help Center for the EMS and then asking more specific questions from there. To give you a short answer, you will need some kind of server on the device with the sensor, which in your case is the Raspberry Pi. You can use the EMS, but if you need a more custom solution, you can choose from one of several SDKs and go from there. Getting the EMS up and running is as simple as putting it on the device (download it under PTC Software Downloads on support.ptc.com), configuring it (see the config.json.complete file for a full list of configuration options, but you should just need the Platform IP, port, and an Application Key), and then creating a remote thing on the Platform which can be bound to your device.

For more details on this, you can see the EMS Developer's Guide

Hi Thanks for the help. I have a raspberry pi 3 with VNC server in it. I am using python code to get data from IR sensors and transfer them to a mysql Instance on my local system as well as on Azure cloud instance. How can implement all this using Thingworx platform ?

rupadhyay
12-Amethyst
(To:gkathale)

Gaurav Kathale​ ,

You can also follow the below link in addtion to what Tori mentioned in her comment.

http://developer.thingworx.com/guides/thingworx-raspberry-pi-quickstart   

In this QuickStart Guide, you will configure an edge agent to quickly connect edge devices to the ThingWorx platform. This edge agent utilizes Node.js to extend the ThingWorx Edge C SDK to communicate with the ThingWorx platform.

Thanks Ravi

sharmon
13-Aquamarine
(To:gkathale)

Here's another excellent resource:

https://www.thingworx.com/ecosystem/academic-program/iot-projects/weather-app-raspberry-pi/

That tutorial shows how to connect humidity and temperature sensors to a Raspberry Pi, and then send that data to the ThingWorx platform. I should be fairly simple to adapt the techniques demonstrated there to your IR sensor.

Announcements


Top Tags