Browsed by
Category: Tech

Moes QS-WiFi-D01 Dimmer

Moes QS-WiFi-D01 Dimmer

This device can currently be flashed to tasmota with Tuya-convert. The advice on blakadder.github.io/templates/qs-wifi_D01_dimmer.html was great and suggested compiling tasmota with scripting and setting up the following script to get the dimming working

gist.github.com/thxthx0/c22555f6ec25c3367264729a0ff74dce#file-wifi-dimmer-script-txt

Once the device is all setup correctly a command can be issued via the Tasmota console to make it appear in Home Assistant, Enables MQTT discovery:

SetOption19 1

Light brightness can now be fully controlled … Read More

Home Assistant: Fix the entity IDs for zigbee2mqtt devices

Home Assistant: Fix the entity IDs for zigbee2mqtt devices

New Zigbee devices might get setup in Home Assistant before you get a chance to setup friendly names in the zigbee2mqtt config file:

/home/user/docker/hassio/share/zigbee2mqtt/devices.yaml

If this happens a fix is as follows:

  • stop home assistant
  • clear the incorrect entities from: /home/user/docker/hassio/homeassistant/.storage/core.entity_registry
  • restart home assistant and the zigbee2mqtt devices should now be in home assistant with the correct friendly entity IDs

Read More

Flashing an ESP32

Flashing an ESP32

Module is an WEMOS LOLIN32 v1.0.0

pip install esptool
esptool -p COM4 erase_flash 
## Testing Flashing Micropython
esptool -p COM4 --baud 460800 write_flash -z 0x1000 esp32-idf4-20191102-v1.11-549-gf2ecfe8b8.bin
Read More
Lora, ESP32 + MicroPython

Lora, ESP32 + MicroPython

LSN50 -Waterproof Long Range Wireless LoRa Sensor Node
dwmzone.com/en/dragino/536-1604-lsn50-waterproof-long-range-wireless-lora-sensor-node.html#/22-center_frequency-868mhz

Heltec

ASR650x-based ( ARMĀ® Cortex M0+ Core and SX1262 )
heltec.org/project/htcc-ab01/ ( 3.5uA )
heltec.org/project/htcc-am01/ ( 3.5uA )
github.com/HelTecAutomation/ASR650x-Arduino/blob/master/PinoutDiagram/HTCC-AM01.pdf
github.com/HelTecAutomation/ASR650x-Arduino

ESP32-PICO + SX1276 module
heltec.org/project/wireless-stick-lite/ ( 30uA )
heltec.org/project/wireless-shell/ ( 10uA )
docs.heltec.cn/download/wireless_shell_reference_hardware_design.pdf


github.com/Heltec-Aaron-Lee/WiFi_Kit_series/files/3469714/Sleep.test.Panda.Board.txt
www.aliexpress.com/item/33030551325.html

github.com/Heltec-Aaron-Lee/WiFi_Kit_series/tree/master/esp32/libraries/ESP32/examples/DeepSleep/ExternalWakeUp



TTGO 868MHz/915MHz SX1276 ESP32 LoRa 0.96 Inch Blue OLED Display Bluetooth WIFI Lora Kit 32 Module IOT Board for Arduino
www.aliexpress.com/item/32840258107.html

MicroPython firmware port with lots included
github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki

github.com/aizukanne/ESP32-micropython-lora
github.com/mallagant/uLoRaWAN
github.com/pycom/pycom-micropython-sigfox

www.hackster.io/search?i=projects&q=lorawanRead More

MicroPython & ULP/RTC Memory

MicroPython & ULP/RTC Memory

Big power advantages exist for using the ULP ( Ultra Low Power ) processor for regular tasks like recording a state change from a GPIO or ADC input, storing the information within the RTC memory, then waking the main CPU up when the information needs to be transmitted via Lora.… Read More

e-Bike Lithium Ion Load Tester

e-Bike Lithium Ion Load Tester

Using power resistors is not feasable, but AC halogen bulbs are easily sources up to 500W , so multiple bulbs can be used to vary the current

120Vrms
500bulb watts
28.8bulb resistance
52battery voltage
93.88889watts
1.805556amps

So on a 52V battery pack a 500w halogen bulb would draw about 1.8Amps

Voltage can be monitored with a simple voltage divider to lower the 52V to something suitable ( < 3v probably )

Current can be monitored with a shunt

30A FL-2 DC 75mV Current Shunt Resistor for Ammeter Amperemeter Panel Meter

www.ebay.co.uk/i/362323528806

www.ebay.co.uk/itm/Lamp-Holder-R7s-117mm-118mm-Linear-Halogen-160-500W-Halogen-Lampholder-/321935501041

www.amazon.co.uk/J118mm-Tungsten-Halogen-floodlight-security/dp/B004HDVS20

This instructables guide would be a good starting point
www.instructables.com/id/Li-ion-Capacity-Tester-/

Could be better to stick with one technology AKA PyCom
docs.pycom.io/datasheets/oem/l04/
github.com/maddog75/LoPyI2CLCD
Read More