Sonoff with ProMini extender

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
the cosmic gate
Normal user
Posts: 102
Joined: 14 Nov 2015, 20:17

Sonoff with ProMini extender

#1 Post by the cosmic gate » 12 Jun 2016, 12:49

I want to have more GPIO'S on the sonoff, so I flashed a pro mini with the extender ino, changed the GPIO to 1 & 3 after I disabled the serial port.
But how to test this if it's working or not? The log doesn't display anything (yet)

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: Sonoff with ProMini extender

#2 Post by costo » 12 Jun 2016, 23:47

Read this topic http://www.esp8266.nu/forum/viewtopic.p ... t=extender

You can sent commands by setting EXT before the command like this:

http://<ESP IP address>/control?cmd=EXTGPIO,<pin>,<state> // Digital pin = 0 to 13 - state 0/1
http://<ESP IP address>/control?cmd=EXTPWM,<pin>,<value> // PWM pins 3,5,6,9,10,11
http://<ESP IP address>/control?cmd=EXTPulse,<servoPin>,<state>,<duration mS>
http://<ESP IP address>/control?cmd=EXTLongPulse,<servoPin>,<state>,<duration S>

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests