Skip to content

Enviro Weather (Pico W Onboard) Wind Direction readings incorrect #235

@kvtskier

Description

@kvtskier

Getting ready to deploy Enviro Weather (Pico W Aboard) with weather station kit. Has been deployed for over 1 year outside using firmware: pimoroni-enviro-v1.20.4-micropython-enviro-v0.0.10.uf2 - without wind and rain sensor hardware attached.

Brought unit inside to attach wind and rain sensors. Worked well… but distance of test stand to wifi router much further than outside install spot so occasionally had wifi problems requiring reboots (which are unacceptable when deployed)

Installed the latest released firmware: pimoroni-enviro-v1.22.2-micropython-enviro-v0.2.0.uf2

System worked but wind direction indicator was all off. Though I might have a hardware problem so set up a breadboard break out for the rj11 cable. When I measured the voltages from the wind direction sensor… they are all fungu according to the wind_direction function in weather.py.

I went back to enviro-v1.20.4-micropython-enviro-v0.0.10.uf2 and after the board initialized, the voltages from the wind direction sensor were correct.

After further investigation, the sensor voltage readings of enviro-v1.20.4-micropython-enviro-v0.0.10.uf2 look similar to enviro-v1.22.2-micropython-enviro-v0.2.0.uf2 prior to enviro-v1.20.4-micropython-enviro-v0.0.10.uf2 initialization.

My conclusion is that enviro-v1.22.2-micropython-enviro-v0.2.0.uf2 is not initializing Analog(26) the wind_direction_pin correctly when the Enviro Weather starts up.

Tried to trace the code back between the 2 releases but could not find anything obvious. Did search of this forum and the forums on Pimoroni and did not see any reports of this issue.

Looking for suggestions to fix, or will have to return to enviro-v1.20.4-micropython-enviro-v0.0.10.uf2 and implement some remote power cycling mechanism to reboot the board when it hangs if I cannot find a solution for enviro-v1.22.2-micropython-enviro-v0.2.0.uf2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions