An archive of community.esquilo.io as of Saturday January 26, 2019.

Weather Demo crashing with I2C error

len1256

Hi, had my Esquilo Air for a while now and only just found some time to play. Working on a Win 10 desktop had all sorts of wifi network problems that appear to have just been down to the SparkFun Weather Shield blocking the wifi module and reducing the signal strength to -78dBm or so and that appeared enough of an attenuation to drop the network. Moved closer to the wifi router and 52dBm and then solid.
While on the Win10 machine I too had the mysterious deletion of the complete SD card but also individual files when double clicked on. Not noticed it since moved it to a winXP laptop. Had previously updated to the 0.3Beta1 update.
Also noted that the network LED has a mind of its own. It comes on sometimes with the network up and sometimes it doesn't.

The Weather Shield fails with IC2 write errors when tried with the Weather Shield + Esquilo + Demo code but works perfectly with the same Weather Shield + Arduino + code from Sparkfun demo. Checked that the I2C & GPIO libs are checked. Anything I can check? More of a soldering iron type so the Esquilo was a bit of a step up for me wink

Thanks
Len

Scott_Shumate

We've so far been unable to reproduce the missing files issue. Can you tell us anything more about the circumstances? What brand and size of SD card? How and where was it formatted (i.e. FAT32 on WIn10). Can you recall exactly what you did in the IDE (i.e. moved a file, opened with a double click, etc.) Did the file disappear in the IDE too or just when you moved the SD to a PC?

The SparkFun weather shield regulates VIN down to 3.3V for power on their board. VIN is the input from the DC jack on both the Arduino and the Esquilo. Therefore, if you use the microUSB to power the Esquilo, there won't be anything on VIN so the weather shield will act dead. To fix this, you can wire a generic power diode (1N4001, etc.) from VIN to 5V with the anode at 5V and cathode at VIN. I don't know why they didn't design it to regulate 5V to 3.3V.

len1256

Hi Scott,

The microSD card is a SanDisk Ultra UHS-I 32GB. Brand new bought for the Esquilo. Formatted to Fat32 on Win10. Occurance 1 was a double click to open up the lib/Demo folder on the SD, it disappeared so I explored the other folders on SD/lib and another double click on Sensors and that disappeared too. So checked on Win10 Explorer and gone. Reformatted and libs recopied and all back again till another occurance when the whole lib folder disappeared. In each case the System Volume Information/IndexerVolumeGuid and its contents were intact. Refresh folders didn't bring anything back.
I was doing a lot of double clicking here because of the multiple restarts after the network crashes I was getting.

Getting late now here so I will check the diode mod out tomorrow. Will this mean that it would have been OK powered via the DC jack? I'll have to check the circuits out.

Does the Demo Readme need updating too?

Thanks for the help.
Len

Scott_Shumate

Thanks for the feedback on the microSD. We'll take a look at it.

The weather shield should be fine if powered from the DC jack. We'll update the readme to point this out.

-Scott

len1256

Hi Scott,

Connection path obvious once I looked! Working fine from DC jack. Back on Win10 machine with RSSI -74dBm and network appears solid as well. Is USB power marginal for wifi?

Thanks again for the help
Len

Scott_Shumate

I've never observed any WiFi problems running from USB but cables and ports can vary a lot so it's possible you could run into issues with certain combinations.

len1256

Just as an aside in the html code, shouldn't the degC to degF conversion be C x 1.8 +32 ?
Noticed it while investigating the temperature reading being too high. I suspect I will have to place a radiation shield between the Esquilo and the Weather Shield or use an aspiration shield.