Espurna: Support hardware Sonoff Mini

Created on 2 Sep 2019  路  7Comments  路  Source: xoseperez/espurna

Hi
Sonoff mini will be support soon or not ?
Thanks

enhancement staged for release

All 7 comments

HI,

It's easy (kind of) to put espurna to work.

First you need to flash it OTA. Follow this link and replace the tasmota firmware by the Espurna sonoff basic. (https://github.com/arendst/Sonoff-Tasmota/wiki/Sonoff-DIY)

Then you can use de espurna dev and just open the arduino.h file and uncomment the line
//#define ITEAD_SONOFF_BASIC
Then open the hardware.h file and look for the line

elif defined(ITEAD_SONOFF_BASIC)

Now change the BUTTON2 configuration to:

define BUTTON2_PIN 4

define BUTTON2_MODE BUTTON_SWITCH //| BUTTON_SET_PULLUP | BUTTON_DEFAULT_HIGH

define BUTTON2_RELAY 1

Now in arduino IDE compile for Generic ESP8285 Module and then upload the file OTA.

I've tried and it seems to work (the switch (aka button ON/OFF) can command the relay.

Added support in 50eda3371bad52b246e30e4ccbf542de0c52ee9f

Just stating that I have downloaded a 'dev' firmware and it is working properly on my device.
Thanks!

Good evening,
would you mind please sharing the .bin file for SonOff mini ?
I'm a bit lazy to compile it ...
thanks,
Olivier

@Bochets34 please see Notices in the README, dev binaries are released in a separate repo

fantastic, works just fine, many thanks !

playing with the nightly release, i have found something weird. At the switches category, you can not select the "button" at pin 4, only the one at pin 12. If only one button is sported, maybe it should be the one at pin 4? That is the one that is exposed once the sonoff mini is installed.

EDIT:
I have just swapped the button pin vars to get my expected result:
btnGPIO0 => "4"
btnGPIO1 => "0"

Seems that the pushbutton works just fine, can someone that did not desolder his try?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fernando-p-jesus picture fernando-p-jesus  路  6Comments

germaguire picture germaguire  路  7Comments

HugoMSMartins picture HugoMSMartins  路  10Comments

BakaOsaka picture BakaOsaka  路  10Comments

vaidyasr picture vaidyasr  路  10Comments