Announcement

Collapse
No announcement yet.

BH1750 ambient light sensor to Tasmota WemosD1 Easy button project

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    BH1750 ambient light sensor to Tasmota WemosD1 Easy button project

    Click image for larger version  Name:	DS2.jpg Views:	0 Size:	90.9 KB ID:	1612997

    Click image for larger version  Name:	light.jpg Views:	0 Size:	78.3 KB ID:	1613089

    References:

    BH1750 ambient light sensor Tasmota

    Wemos D1 Mini to Tasmota


    Wemos D1 Mini ESP32 Development Board

    Build a Multisensor Shield for ESP8266 *

    Release binaries for Tasmota firmware 12.5.0 on ESP8266

    Tasmotizer

    Tasmota Timezone Table

    ​Tasmota commands

    * Optional


    Hardware utilized

    1 - BH1750 light sensor - pair purchased on Amazon for $11.39 USD

    HiLetgo 2pcs BH1750 BH1750FVI Digital Light Illumination Sensor Light Intensity Sensor Module Light Intensity Ball for Arduino DC 5V

    2 - Wemos D1 Mini - 5 purchased on Amazon for $15.99 USD

    ACEIRMC ESP8266 ESP-12 ESP-12F NodeMcu Mini D1 Module for WeMos Lua 4M Bytes WLAN WiFi Internet Development Board Base on ESP8266 ESP-12F for Arduino,Compatible with WeMos D1 Mini (5pcs)

    2 - might also purchase a multiple sensor "hat" for the WeMos D1 and a weather proof case for outside use.

    Click image for larger version  Name:	hat.jpg Views:	0 Size:	65.3 KB ID:	1612606

    Something like this


    Configuration:

    1 - updating the WeMos with Tasmota-sensors bin
    • Using Tasmotizer in Linux here....IE: python3 tasmotizer.py
    • update D1 mini with current version of Tasmota
    • configure device with your home WLAN
    • upload minimal tasmota.bin to D1 Mini then upload tasmota sensor bin to D1 Mini
    • use generic configuration 18 for D1 Mini

    2 - tasmota configuration and testing light sensor

    Basic Tasmota configuration used here on all of my Tasmota devices
    • Configure time using Tasmota time zone table ==> Chicago
    • Code:
      Backlog0 Timezone 99; TimeStd 0,1,11,1,2,-360; TimeDst 0,2,3,1,2,-300
    • Configure NTP servers ntpserver1, ntpserver2 and ntpserver3
    • Code:
      [*]ntpserver1 xxx[*]ntpserver2 xxx[*]ntpserver3 xxx[*]
    • configure longitude and latitude
    • Code:
      [*]longitude xxx[*]latitude xxx[*]


    Testing using 4 pins with ambient light then testing with flash light. Note once configured it sees the BH1750 light sensor as a device.

    The following is using blakadder tasmota template

    Code:
    {"NAME":"Wemos D1 Mini ESP32","GPIO":[0,0,1,0,1,1,0,0,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0],"FLAG":0,"BASE":1}
    Click image for larger version  Name:	Wemos1.jpg Views:	0 Size:	75.3 KB ID:	1613098

    Posted second part here ==> BH1750 ambient light sensor to Tasmota Wemos D1 - Outdoors installation - Solar charging

    Click image for larger version  Name:	image.png Views:	5 Size:	61.5 KB ID:	1613249

    Update 6th of May, 2023

    Configured two BH1750 sensors with two Wemos D1's. Working well. Replacing my old Sonoff basic devices (old) doing multiple 1-wire sensors with the Wemos D1's. I have one in the basement and one in the attic both with 4 1-Wire temperature sensors.​ Ordered 5 PCBs as described above for $2.00 USD from Hong Kong. (price changed from 10 to 5 for $2)

    Update 20th of May, 2023

    Using the two sensors under skylights in the great room and bathroom. Might use them with shades in the great room as it is difficult to watch TV during the day. Will put a 3rd sensor on the Weather mast with a solar panel and batteries.
    - Pete

    Auto mator
    Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb

    HS4 Pro - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
    HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

    X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant
Working...
X