Using SUPLA with my own created Hardware

scropion86
Posts: 16
Joined: Mon May 30, 2016 8:34 am

Post

Hi

i have interest to use SUPLA with my OWN hardware , i build it and already used it and Running for more that month.
mainly is use BLYNK http://www.blynk.cc/ , or MQTT based control.
here is the my board http://egyiot.xyz/pcb-design/egyiot-esp ... iot-board/

Image


Relay 1 - GPIO4
Relay 2 - GPIO13
Relay 3 - GPIO16

LED RGB

RED - GPIO14
Green - GPIO12
Blue - GPIO5

Please guide me how to write the sketch that will work with my board.
User avatar
pzygmunt
Posts: 19481
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

Hi. Which functions you need ?
scropion86
Posts: 16
Joined: Mon May 30, 2016 8:34 am

Post

3 Relays on/Off and 1 RGB color selector
User avatar
pzygmunt
Posts: 19481
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

I will prepare dedicated firmware for you. Do you have some name for your board ?
Which GPIO I can use as cfg button ?
scropion86
Posts: 16
Joined: Mon May 30, 2016 8:34 am

Post

thank you so much , My Board called EgyIOT , and i didn't set an Config button , i just have the RESERT and GPIO2 to pulled up with button to boot in Boatloader mode , but i think it can be used as config button after board started .

send me the FW and i will test it , also do you have any tutorial to write my own FW in Arduino IDE or Platformio
scropion86
Posts: 16
Joined: Mon May 30, 2016 8:34 am

Post

do you have a Libaray that can be used in Arduino IDE , API documentation to your Cloud , Restfull API ?
User avatar
pzygmunt
Posts: 19481
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

Arduino - you can use this: https://github.com/SUPLA/arduino but is not dedicated for support Arduino+ESP8266
API - at this moment API is not avaiable. I plan provide it in the future

You can test now dedicated firmware that I build for you. RGB is not yet implemented. I need more time.

Binary: https://github.com/SUPLA/ESP8266/tree/master/EgyIOT
Sources: https://github.com/SUPLA/supla-core/tre ... SP8266_IOT
scropion86
Posts: 16
Joined: Mon May 30, 2016 8:34 am

Post

thanks for your effort , i will test it an let you know.
scropion86
Posts: 16
Joined: Mon May 30, 2016 8:34 am

Post

HI

very sorry for my mistake ,
the GPIO2 is puled UP by default and the button is connected to GPIO0 to pull it Down.
the device should go to Config. mode if GPIO0 is Low for 5 second.

because of that the FW didn't work and never go to Config mode.

here is part of my schematic.

Untitled picture.png
You do not have the required permissions to view the files attached to this post.
scropion86
Posts: 16
Joined: Mon May 30, 2016 8:34 am

Post

after flashing the FW , i connected GND to GpIO2 for more than 5 second and still not able to go in Config. mode

Return to “General discussion”