Forum Replies Created
-
AuthorPosts
-
May 18, 2023 at 10:54 am in reply to: Change Firmware to control stations directly via GPIO pins (relays) #75715
vampParticipantGuys help me a bit, i can not found what need to delete/comment it to able to use i2c (display) and button pins to control more relays. i found where set the gpio-s to relay, but now is colliding to two button and the display gpios.
I use this repo:
May 8, 2023 at 10:06 am in reply to: Change Firmware to control stations directly via GPIO pins (relays) #75576
vampParticipantWe are already bought the 8 relay board, so first we would like to use this ones. and really not need the buttons and the display, so would be good to use this GPIO-s
May 8, 2023 at 9:23 am in reply to: Change Firmware to control stations directly via GPIO pins (relays) #75573
vampParticipantHello @StudioShemp !
I would like to use your code a 8 relay board. 4 relay conflict with two button and the two display gpio. But this functions are not needed. I would like to comment out this. Please help me, where find the button and screen gpio in source code.
Thanks!
March 30, 2023 at 8:40 am in reply to: Change Firmware to control stations directly via GPIO pins (relays) #75132
vampParticipantMarch 30, 2023 at 4:48 am in reply to: Change Firmware to control stations directly via GPIO pins (relays) #75129
vampParticipantI think that try this FW on 8 relay board. If i change this, is enough?
From:
#if defined(ESP8266)
if (ESP12F_RELAY_X4) {
// On the ESP12F_Relay_X4 board the relays for station 1...4 are connected to GPIO 16, 14, 12 and 13:
const uint8_t stationGPIO[] = {16, 14, 12, 13};
for (uint8_t i = 0; i < 4; i++) {
pinMode(stationGPIO[i], OUTPUT);
bool isActive = station_bits[0] & (1 << i);
digitalWrite(stationGPIO[i], isActive ? HIGH : LOW);
}
return;
}
To:
#if defined(ESP8266)
if (ESP12F_RELAY_X8) {
// On the ESP12F_Relay_X8 board the relays for station 1...8 are connected to GPIO 16, 14, 12, 13, 15, 0, 4 and 5:
const uint8_t stationGPIO[] = {16, 14, 12, 13, 15, 0, 4, 5};
for (uint8_t i = 0; i < 8; i++) {
pinMode(stationGPIO[i], OUTPUT);
bool isActive = station_bits[0] & (1 << i);
digitalWrite(stationGPIO[i], isActive ? HIGH : LOW);
}
return;
}
The Board:
March 30, 2023 at 4:05 am in reply to: Change Firmware to control stations directly via GPIO pins (relays) #75128
vampParticipantHello there,
I maked 2.1.9(11) update to ESP8266-WIFI-4-Channels-Relay-Module-AC-DC-ESP-12F-Development-Board. (based solideus FW)
I tested it, work well. (OTA is working, i simply update (2.1.9(9))
I also checked 2.2.0(1) but it to much to me… It rewrite a lot of things, it need to re-implement from scratch.
vampParticipantGood idea, possible to do this? (similar with HTTP station, but not output, but also input and use a MQTT topic)
November 25, 2022 at 9:15 am in reply to: Change Firmware to control stations directly via GPIO pins (relays) #74383
vampParticipantHello there
I dont know how is the maintainer this github branch, (maybe Gombka?) but refer this forum theme.
My question is:
Are you plan to update to (11) your code? The Weather check error, that fix the 11 version is also affect to me. It would be good that update it.
Thanks a lot!!
-
AuthorPosts