Thank you for contacting us.
That's a nice project. As a reminder, consider that the Arduino skecth doesn't start automatically after you turn off the Edison, to do this you have to run the sketch on boot, I'm not sure if the post that you provided works, but it is possible to run the sketch on boot creating a script on init.d, to do this please follow these steps:
1. Use the command cd /etc/init.d to go to the init.d directory.
2. Create the script using the following commands:
cat << EOF > autosketch.sh
/sketch/sketch.elf foo bar
3. Make the script executable by changing the permissions with chmod: chmod +x autosketch.sh
4. To make sure this script is executed every time linux boots, issue the following command and wait for the return shown below:
update-rc.d automateSketch.sh defaults
Adding system startup for /etc/init.d/automateSketch.sh
Now the skecth will start every time you turn on your Edison, I tested it using the latest Edison Image that you can download form here: https://software.intel.com/en-us/iot/hardware/edison/downloads
You shouldn't have issues if you power your Edison through the USB cable, but if you still have issues with the 9 V battery the problem is definitely with the barrel jack or the battery itself. To make sure that the barrel jack works fine, tried to run your sketch using a wall adapter power supply.
If you don't have issues using the wall adapter power supply, it seems that the battery is not providing enough power to the Edison (Current), please check if the battery is fully charge and check its capacity. Normally in these issues we recommend to power the devices that are connected to the Edison (In your case the sensors) with a different power supply.
I hope you find this information helpful.
Have a nice day.
Thank you so much for your priceless advice. I followed the steps you outlined in your post, and I think it is working fine now. We have tested it multiple times, and have conducted walking tests with an external power source. The system appears to be robust, although I would like to test it a few more times just to be sure it works consistently.
One problem that we had to fix was that after reflashing the firmware to the newest version and configuring the Edison to run on boot, the 9V alkaline battery we were using didn't seem to supply enough power. We measured the battery's voltage, and realized it was practically depleted. Thank you for mentioning that issue; now we are using a LiPo battery, which I think is a much more reliable power source. The Edison also works fine with a 9V wall adapter. Again, thank you for the insight on making sure our power was sufficient.
Sorry for the late reply. Thank you again for helping me out with this issue.
That's awesome. Thank you so much for letting us know.
It really was a pleasure to help you, and feel free to contact us when you have issues.
Have a nice day.