I seemed to do well out of the gate, the Spark core is simple to initially setup (bonus!), and it is similar to arduino so I got this. The initial cloud drops i largely ignore, oh probably fixable, I carry on. My experience progressively get’s worse.
(1) connection to Cloud drops constantly. Sometimes it’s flashing blue (slow sometimes fast). Sometimes ping works during this time but often ping goes no-reply as well.
(2) TCPServer doesn’t work. At first nothing, then I figured out a conflict with TIMER2 and I got it to send something on initial connection but then nothing. It should send a sentence each second.
(3) Documentation is not complete. For example, what is the return value of functions in the API, not mention of return value ever. Does the function block or return right away? Such as server.available()…No idea. Figured this out to be non-blocking but pain point. Also no mention of what resources (timers, interrupts, etc) that each feature uses. (see #2)
At first I am impressed with how easy it is to get cloud communication working. I begin with variables and functions, then proceed to publish()…nice but it is fairly slow at max 1 update/sec but acceptable. However the cloud dropping quickly made my attempts at building a user interface to the spark unusable.
So I move on to TCPServer to make things local and fast! Nope. Can’t get that code to work at all. So for now I am totally busted!
I have a strong software and electronics/embedded background. Not a noob, except for spark specifically.
I just checked my Wifi with inSSIDer and I am on channel 11 with -44db rssi (both my android tablet and the spark read -44db), only 1 other overlapping wifi and he is at -96db so well below me. My wifi signal is very good.
Changed my LDO power suply to a switching one with >2amps to run the spark…definitely not a power issue. Added 330uF, 100uF and a 2.2uF cap to power rails…lots of capacitance!
Changed from a chip-antenna spark to a UFL one, around the same -44db rssi.
I was part of the kickstarter, so I have the first batch of boards. Are there firmware updates I need to be aware of? I saw one on the CC3000 that I will try. I’ve only used the webIDE so far, does it automatically update the core firmware on the spark?
My goal is to replace my Treadmill dashboard with a wireless interface as I am converting my Nordic treadmill into a walking workstation. I have a 27" monitor covering the existing dashboard so I can’t access it anyway. This was my way of putting my treadmill on a web page and being able to control it, as well as record my history - sessions, time, calories, miles, etc. I just ordered a heart-rate sensor and an ANT+ breakout to put on the Spark so I will receive heart-rate signals and record that as well, and also control tread speed to maintain a target heart-rate.
Thanks for taking the time to read my long post. I welcome any suggestions!!
I am trying to share my code but can’t figure that out either. How do I get my code out of webIDE other than cut and paste? I’d like to just link it to GitHub or the hackster.io.