Balena-sense no data in dashboard

  • balena CLI version: 11.17.4
  • Operating system version: Ubuntu 19.10 64 bit
  • Install method:zip

Hi, I install balenaOS on Raspberry PI zero with BME680 sensor. After the end of installation process I open dashboard and see there’s no data.
My log file from dashboard:
Balena.log (156.4 KB)

I solder that BME680 sensor by myself and I don’t know if I make it wright because it was my first time. May that will be the reason there’s no data?

Regards,
Przemek

Hi @skweresp,

Looking at the logs, it does look like the Pi zero can’t isn’t able to find the sensors. I’m assuming you’re reading the blog post on this, here. There’s a few things it might be worth checking:

  • All the contacts are soldered correctly and there aren’t any pins which aren’t soldered
  • Are the right pins on the Pi Zero being used to plug the sensor into?
  • Are you plugging the soldered sensor header directly into the Pi Zero, or using cables for it? If cables, try plugging the sensor directly into the right pins on the Pi Zero to see if this makes a different

Best regards,

Heds

Hi, thanks for answer. I’m newbie with soldering so it might be wrong. Can I check that it’s soldeBME680 sensor has any led to tell me that is working wright?
Look at my project.

!

Hi, it is a bit hard to tell whether the pins are connected well from the image. You may use magnifying glass to check them - I use one and it is very handy. The sensor seems to be connected to the right GPIO pins.

You may use the i2cdetect program to check whether the device is detected. It is part of the i2c-tools package (apt-get install -y i2c-tools).

After you get it installed in the container then you may check with i2cdetect -y 1 or i2cdetect -y 0 (I am not sure whether it is 1 or 0 on the RPi Zero). You may plug the sensor and check with i2cdetect, unplug and check again and see whether there are any differences in the address output.

Please let us know how that goes for you.

Thanks,
Zahari

PS: Also it is always handy to have a RPi 3 B+ for testing purposes (not the RPi 4, which is too new and still not completely stable).

Also you may use a multimeter to make sure the connections are alright.

Additionally I use also Raspbian for comparison when I encounter hardware related issues to isolate them more. If it works on Raspbian but not on balenaOS, then it is related to balenaOS, etc.

Hi thanks for answer. I install Raspbian and skip with that tutorial
and have that error:

pi@raspberrypi:~/bme680/examples $ python read-all.py
read-all.py - Displays temperature, pressure, humidity, and gas.

Press Ctrl+C to exit!


Traceback (most recent call last):
  File "read-all.py", line 15, in <module>
    sensor = bme680.BME680(bme680.I2C_ADDR_SECONDARY)
  File "/usr/local/lib/python2.7/dist-packages/bme680/__init__.py", line 45, in __init__
    self.chip_id = self._get_regs(constants.CHIP_ID_ADDR, 1)
  File "/usr/local/lib/python2.7/dist-packages/bme680/__init__.py", line 319, in _get_regs
    return self._i2c.read_byte_data(self.i2c_addr, register)
IOError: [Errno 121] Remote I/O error
pi@raspberrypi:~/bme680/examples $ 

I try also this:

i2cdetect 1
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-1.
I will probe address range 0x03-0x77.
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
pi@raspberrypi:~ $ i2cdetect 1
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-1.
I will probe address range 0x03-0x77.
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
pi@raspberrypi:~ $ i2cdetect 0
Error: Could not open file `/dev/i2c-0' or `/dev/i2c/0': No such file or directory

First is without BME680 sensor.

I test today Pins with wiringpi and it show:

The main 8 GPIO pins  0: 7:  OK
pintest: 101: pintest: let: not found
                The 5 SPI pins 10:14:  OK
pintest: 101: pintest: let: not found
               The serial pins 15:16:  OK
pintest: 101: pintest: let: not found
                  The I2C pins  8: 9:  OK

I have another PiZero and tommorow I will solder only those 5 pins from BME680.

Edit.
OK I make IT work on raspbian on another pi zero but when I put sd card with balenaOS and login to balena cloud dashboard still shows no data. Do I have to install everything once again on that new Rpi zero?