Can someone point me to the location of the Arduino and SmartThing shield documentation?
This new forum format is ok, but all the links are lost and a post’s code formatting is messed up.
Why doesn’t a (community) wiki exist for information vs dozens of inconsistent posts and topics?
Good suggestion and something we are considering. I do see now how older posts with code in them look all messed. We will try to correct this globally but for now I’ll do it as I find them. This link may be helpful for the Arduino stuff:
Thanks for the help.
The major problem is the lack (lost) of information.
The URL http://build.smartthings.com/arduino/goes no where!
I cant download any Arduino libraries or example code.
There is plenty of SmartThing Goovy code but no Arduino code for the shield.
I really hope SmartThings (PhysicalGraph) gets their website in order soon.
The broken links and missing data is unfortunate.
I think their new docs website is hosted by GitHub? Shouldn’t their Arduino code be there too?
I see a few repositories but its difficult to tell what’s community vs official.
We are collecting the content that did not get ported from the old Build site and will post it here shortly. For the record, all forum posts were migrated and can be searched for on this new site. Only blog posts, projects, and Wordpress “pages” have not yet been migrated.
Not Arduino but similar topic:
I got this connected to my hub after some trial and error; it finally got assigned a ZigBee Device Network ID.
Now I am experimenting with loading the proper XB24 firmware and the ?HA profile?
Update for people working on building SmartShield apps:
The SoftwareSerial library did not work for me. Specifically, serial would write correctly but not read correctly. I verified this with a logic analyzer. If you can set the rgb led but don’t get any commands back, this is probably why. Consider looking for alternate software serial libraries, you can probably find a few on github. Otherwise you might try adding a delay(1500) before any other commands in setup - I read some documentation that said the Ember may take up to 1.4 seconds to boot.
I’m using an Arduino Mega ADK (multiple serial ports), so I don’t need to rely on SoftwareSerial. If you have a Mega I’ve written a small script which passes through a terminal to the Ember chip. The chip on the Arduino is set at 2400 baud, 8n1 and writes out the messages it receives like so:
T00000000:RX len 9, ep 01, clus 0x0000 (Basic) FC 00 seq 03 cmd 0A payload[0A 68 65 6C 6C 6F ]
The payload is a hex encoded string.
The script is here. Upload it your Mega, jumper Serial 1 to 2/3, and start the Arduino Serial Monitor at 115200 baud, with line ending nl+cr. If you type help at the prompt you can get a readout of the commands for the Ember Appbuilder firmware that is running on the EM357. (If you break something it’s your fault, so be careful.)
Next I’ll write a small parser for those payloads and have a full replacement for the SmartThings library. However I’m really only developing for the Mega right now. If you have a device without multiple serial ports I recommend using the shield’s switch to run on 0/1 and modify this script accordingly. The downside is that you now can’t use the serial over usb to communicate with a computer.