Skip to content

Problem with Integration of BH1750 with crazyflie 2.1 #2

@AbhinashKumar-kota

Description

@AbhinashKumar-kota

Hello @thecountoftuscany ,

First of all, thank you for your work on the crazyflie-run-and-tumble project — it’s been very helpful!

I’m currently trying to integrate the BH1750 light sensor with the Crazyflie 2.1, and I noticed that your project uses exactly this setup. I successfully flashed your firmware onto my Crazyflie 2.1, but I’m running into an issue when trying to read the BH1750 values using a Python script.

Problem:
When I use a logging configuration to read the sensor data via the Crazyflie Python API, I only receive 0.0 values for the light intensity — no matter the lighting conditions.

What I’ve tried:
1.Verified wiring and I2C address (0x23) of the BH1750.

2.Cross-checked the log_get_data.c changes and the sensors_bh1750.c logic in your code.

3.Python script uses LogConfig to subscribe to the bh1750.lux variable.

4.Confirmed the firmware flashed without issues.

Request:
Could you please help me understand what I might be missing?
Are there any additional steps required on the Python side or changes needed in the firmware for the log variable to work correctly?

Any guidance or suggestions would be greatly appreciated.

Thanks in advance!

Best regards,
Kota Venkata Abhinash Kumar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions