SparkFun will be closed Nov 26th and 27th for the Thanksgiving holiday. Orders placed after 2:00pm MT on the 25th will ship out Monday the 30th.

Member #464348

Member Since: August 24, 2013

Country: United States

  • I like your simplified code, but I wasn’t able to get it to successfully update my stream on data.sparkfun.com. I know my Xbee is connected to the internet, and I was able to run through the Digi Cloud example and toggle an LED, read a trimpot etc. I’m able to ping my Xbee as well. When I run this code (after updating with my public and private keys) I get … nothing. I tried adding some debug commands and I see that xb.available() always returns 0. Any suggestions for troubleshooting?

    EDIT: I can see the GET /input... showing up on the Serial Terminal part of the dashboard on the Xbee Wifi Cloud Kit Page. So it’s clearly sending the data somewhere … Do I need to change anything more than what is indicated in the setupHTTP() function?

    // Set IP (1 - TCP)
    command("ATIP1", 2); // RESP: OK
    // Set DL (destination IP address)
    command("ATDL" + address, 2); // RESP: OK
    // Set DE (0x50 - port 80)
    command("ATDE50", 2); // RESP: OK

    EDIT #2: I needed to set DO to 0x18 using XCTU. The crucial piece of info I was missing was that bit 3 was set to 0, so the contents of DL were not being used. Now I’ve got something working!

  • I hit the same problem. I added some code in the commandMode function:

    Serial.print("... xB.available = "); //debug
    Serial.print(xB.available()); //debug
    Serial.print("\n"); //debug
    if (xB.available() > 0)

    And found that xB.available() always returns zero. I’m still trying to troubleshoot that problem but at least I know what’s going on.

  • I’m a little confused about powering these and an Arduino in the same project. If they draw up to 1 amp at 5 volts that’s probably pushing it for the Arduino’s 5V regulator output. So it would make sense to use a separate connection to the power supply with the Arduino controlling a transistor or relay. But if you’re using an external power supply for the Arduino, it’s probably 9 to 12 V which is probably too much for 5 V solenoids. So how do these facilitate working with an Arduino? Is the idea to use a 5 V regulated supply for the Adrunio (USB power input? bypass the regulator?) , that is also capable of delivering enough amps to power the solenoid in parallel?

No public wish lists :(