Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By PaulLowman
#31701 I am using an Olimex Mod-WiFi-ESP8266-Dev module to control an anchor winch on my launch. It uses two gpio pins as outputs and I have allocated GPIO4 and GPIO5. The following code is used to set the mode but I have found that, although GPIO4 works fine connecting to GPIO5 causes the module to stop. The load is a 1K resistor to the base of a BC547 driving a relay. I see a voltage of 0V on GPIO5 and this does not change with digitalwrites to the pin.
I was wondering if using the FUNCTION_0 in addition to the pinMode(OUTPUT) is necessary but it did not improve matters.

Code: Select allpinMode(4, OUTPUT);
pinMode(5, OUTPUT);  // (also tried pinMode(5, OUTPUT | FUNCTION_0) )

Any clues folks?

Cheers
User avatar
By Barnabybear
#31769
PaulLowman wrote:I am using an Olimex Mod-WiFi-ESP8266-Dev module to control an anchor winch on my launch. It uses two gpio pins as outputs and I have allocated GPIO4 and GPIO5. The following code is used to set the mode but I have found that, although GPIO4 works fine connecting to GPIO5 causes the module to stop. The load is a 1K resistor to the base of a BC547 driving a relay. I see a voltage of 0V on GPIO5 and this does not change with digitalwrites to the pin.
I was wondering if using the FUNCTION_0 in addition to the pinMode(OUTPUT) is necessary but it did not improve matters.

Code: Select allpinMode(4, OUTPUT);
pinMode(5, OUTPUT);  // (also tried pinMode(5, OUTPUT | FUNCTION_0) )

Any clues folks?

Cheers


GPIO 5 is incorrectly labled on some boards (possably older stock). Just set it high and check the other GPIOs untill you find one high.