Hypfer / esp8266-vindriktning-particle-sensor

Wifi MQTT Data Logging via an esp8266 for the Ikea VINDRIKTNING PM2.5 air quality sensor
Apache License 2.0
1.18k stars 128 forks source link

Not an issue - A little more information about the fan #7

Open sermayoral opened 3 years ago

sermayoral commented 3 years ago

Hi. First of all, thanks for this amazing project! I really want to do it, and during the analysis, I had some questions regarding the fan.

If I understand correctly, the firmware of the Ikea board toggle the fan every minute. Surely the firmware does a reading with the fan on. The doubt is the next one: If you replace the 5v output of the ikea board for the 3v3 output of the esp. Does the toogle function hold? Or would you have a fan that is always running?

Thanks

Hypfer commented 3 years ago

That results in the fan running constantly as it completely bypasses the FAN outputs of the Ikea PCB

sermayoral commented 3 years ago

Thanks @Hypfer.

What do you think about applying a step down to the FAN outputs of the Ikea PCB in order to reduce voltage to 3.3V? In that way the toggle function should work.

Hypfer commented 3 years ago

That would require more hardware. The permanent 3.3V were just there for the taking I wasn't able to spot any downsides of running the fan continuously

Actually I'm more worried about the 5V UART to the 3.3V ESP8266 regarding long-term reliability Only time will tell

sermayoral commented 3 years ago

Thanks @Hypfer for the information. I will test with the step down and I will share the results here :-)

Habbie commented 3 years ago

Actually I'm more worried about the 5V UART to the 3.3V ESP8266 regarding long-term reliability

I did extensive Googling on this and it appears the ESP8266 UART is 5V safe for receiving.

trlafleur commented 3 years ago

First of all, this software uses a bit-bang soft-serial port using any GPIO pins, it's NOT connected to the UART on the ESP8266 as the UART is connected to the USB interface chip on the Wemos-D1 and many other boards...

I use a ~470ohm resistor from the IKEA to the Wemos-D1 Mini pin D7 (GPIO-13) with a surface mount Schottky diode (they have a low V-Forward drop) from D7 with its cathode connected to +3.3v, this clamp the voltage to 3.3V + V-forward drop of the diode... this makes it safer for the ESP8266 (I now see 3.7V on my unit on D7)... Using pin D7 makes it an easy fit for the diode to 3.3v pin on the Wemos-D1 circuit board. ( 3.3v - D8 - D7 ......) so the diode is set on top of D8, with just enough room to solder it to 3.3V and D7.

Just as a note: I move my unit from this codebase to Tasmota (ver 9.5.0.8 or later) and added a BME-280 sensor to the I2C pins. so the device now gives me PM2.5, Humidity, Temperature, and pressure via MQTT.

onshisan commented 2 years ago

Just as a note: I move my unit from this codebase to Tasmota

Sounds great, I was also thinking of adding more so I'm curious... any notable issues to report using Tasmota to accomplish this?

trlafleur commented 2 years ago

useing an esp32, works just fine....

~~ /) ~~~~ /) ~~ _/) ~~ _/) ~~

Tom Lafleur

On Sat, Jan 1, 2022 at 2:53 PM Greg Smith @.***> wrote:

Just as a note: I move my unit from this codebase to Tasmota

Sounds great, I was also thinking of adding more so I'm curious... any notable issues to report using Tasmota to accomplish this?

— Reply to this email directly, view it on GitHub https://github.com/Hypfer/esp8266-vindriktning-particle-sensor/issues/7#issuecomment-1003631144, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABC4EK76TIBXXYLVC53V2C3UT6AVLANCNFSM5AXKPTIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.*** com>