Friday, March 10, 2017

Magical Black Bean - Infrared control over WiFi/3G/4G



Few weeks ago I've received the Broadlink RM mini 3 Black Bean Smart Home Wifi  Universal IR and I've took some time to test it before I can give more details. 




Is absolutely fantastic ! 

As features:


  • -I was able to record any remote I had around
  • -I was able to connect to it from WiFi or 4G from my mobile
  • -I was able to make scenes for multiple remotes. 


The scenes part is very handy since allows me to control multiple devices with one touch. For example:
-start TV
-wait 1 sec
-start Set-box
-wait 1 sec
-put TV on HDMI 3 input
-change SetBox to channel 5.
-start amplifier

All of that with just one touch from the mobile app.

Learning procedure from the original remotes is very simple, just select the TV to emulate and set which button from virtual remote will be assigned to physical remote.





And for example the TV virtual remote is:






Other important feature was to move all defined remotes to another phone. For this there is a special menu and on one phone we will need to select the "Share to other phones in WLAN" options and on the receiver phone "Import from shared phone in WLAN". In one second I had all my remotes, scripts in the second phone, so no more relearning process. Super !!!.






As for what is inside:
-main processor is a 200MHz Cortex M3 Marvel 88MC200 and for WiFi a 88W8801 chip.
-6 snowflake positioned IR emitter LEDs.
-one IR Receiver for learning the codes from your remotes.




The PCB is looking like:




Make sure that:
- there is direct line of sight between the mini R and your appliances, otherwise the IR reflection will not always work.
-you have a power adapter to deliver 5V since you will not find one in the box. An old phone charger will be just fine.


Sunday, February 26, 2017

Kalman filter


In few projects I've needed the Kalman filter to suppress the noise and other inaccuracies especially from accelerometers. Below is a nice picture from a live stream of data transmitted by the ESP8266 LDR over websockets to an application server written in javascript. The data received in the browser looks like:






With red is raw data and with white is the predicted data after the Kalman filter was applied.

Inside of a 1000lx bulb LED




Since this Livarno bulb refused to work after few months of fine operation I decided to dismount it.








Power supply was covered in rubber and it take a while to clean it between the components.








32 LEDs are used for this bulb. I've tested few of them with a 5V power supply and are very bright (don't look at them since is not a nice feeling after that)




Here is the power supply. Still has rubber left between components.








Friday, December 23, 2016

Sonoff special offer on banggood for WiFi Sonoff relay

Tthere is a special offer on SONOFF module on Banggood from today until 10th of January. You can buy the module for under $6, $5.99 ( 5.79 if you order it from mobile application).

The SONOFF module is produced by Itead.cc and can be used with their mobile app eWeLink or you can write your own software.

The core of the module is the ESP8266 and is connected to a 5V relay capable of 10A ( I will not bet on that)

I already ordered few of them and I am planning to put my own software so in the end I can :

-on/off the relay from my mobile app
-give a vocal command to trigger it on/off with Amazons echo dot 2 help
-set cron task for relay.


The promotion will end in January so if you are reading this post after this date it may be outdated ,but you can check the Itead.cc site.





Monday, December 19, 2016

Amazon's Echo DOT 2 controls ESP8266


Since Amazon's Echo Dot 2 can control the Belkin's WeMos why not emulate it with this Esp8266 .

ESP after is connected to the WiFi network will start an UDP server on address 239.255.255.250 port 1900 and an HTTP server on its own IP address and port 80. Alexa on "Alexa, discover my devices " will send UDP on multicast address/port and the ESP will reply with its configuration (IP/PORT). 

Echo Dot 2 will get the setup.xml from ESP on provided IP and Port.

From now on the Echo cand send SendBinaryState command that will end up in trigger a GPIO.

SSDP protocol is used in the discovery part.




And a video controlling 2 GPIOs with on one ESP8266.