Grove Seeed Studio sensors not working properly with Intel Edison

时间:2016-02-03 03:44:56

标签: hardware intel-xdk intel-edison

I've been trying to run simple scripts on my Intel Edison to try the different Grove Seeed Studio sensors and cannot manage to make them work.

My board is configured correctly, its firmware is up to date, and all cables have been connected correctly as shown on different tutorials. I can connect to the board through the IDE, via SSH, and with serial.

I've been using mainly the templates provided by the Intel-XDK IDE because I'd like to develop using javascript and nodejs. The "Onboard LED Blink" template has worked perfectly. My board successfully blinked the onboard LED light so the board is clearly listening to my machine, but all the other templates have failed to make my sensors work. For example, running the "Local Temperature" template which aims to just retrieve the local temperature with the temperature sensor, just prints Sample Reading Grove Kit Temperature Sensor and stays there without printing any temperatures in the console. This has been the case for other sensors and other templates like the "Touch Notifier" template which when running also just prints Sample Reading Touch Sensor and performs no other actions when touching the touch sensor.

I tried moving away from the Intel XDK templates and trying some of Johnny-Five templates like this one and still no success. After running that particular script the console just printed Looking for connected device. I found a related post here but nobody was able to solve the issue.

It almost seems as if I am not being able to properly connect to the sensors. I get no errors on the console, just not the desired outcome. What am I doing wrong? How can I even debug this?

1 个答案:

答案 0 :(得分:0)

XDK中的样本乍一看有点欺骗。 "本地温度"和"触摸通知器"例如,可以在手机上使用HTML5伴随应用程序(您可以在选择时阅读模板说明来查看)。 Hench当你看到xdk打印出来的消息时,它首先会监听与HTML5应用程序的连接,它将发送温度以供显示。有一篇关于" Local Temperature"更详细的应用程序以及如何在此处设置所有内容:https://software.intel.com/en-us/creating-a-temperature-monitoring-app-using-intel-xdk-iot-edition

如果您想要单个传感器的代码,我建议在此使用此链接按传感器搜索代码(每个代码应包含c ++,javascript和python代码示例的代码):https://software.intel.com/en-us/iot/hardware/sensors