Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,494
» Latest member: 247expresspackers
» Forum threads: 2,286
» Forum posts: 11,885

Full Statistics

Online Users
There are currently 34 online users.
» 0 Member(s) | 21 Guest(s)
Crawl, Google, PetalBot, Semrush, Yandex, bot

Latest Threads
USB ports
Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module
Last Post: BaconRanch
36 minutes ago
» Replies: 0
» Views: 1
PWM support?
Forum: KC868-A16
Last Post: luis15pt
3 hours ago
» Replies: 0
» Views: 3
Lesson23- How to connect ...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
11 hours ago
» Replies: 10
» Views: 7,154
KC868-AG RF - sending rep...
Forum: KC868-A series and Uair Smart Controller
Last Post: PhilW
Today, 07:46 AM
» Replies: 3
» Views: 8
Usar entradas y oled i2c ...
Forum: KC868-A6
Last Post: sistemasyusa
Today, 03:16 AM
» Replies: 4
» Views: 14
a16 as basis for a securi...
Forum: KC868-A16
Last Post: admin
Yesterday, 11:58 PM
» Replies: 8
» Views: 52
GSM CALL RELAY
Forum: KC868-A2
Last Post: admin
Yesterday, 11:53 PM
» Replies: 9
» Views: 4,106
KC868-A16S or KC868-A8S
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 11:51 PM
» Replies: 3
» Views: 38
KCS firmware
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 11:48 PM
» Replies: 10
» Views: 112
[Arduino IDE demo source ...
Forum: KC868-A6
Last Post: sistemasyusa
Yesterday, 09:03 AM
» Replies: 8
» Views: 4,564

  PCF8574 IO Expansion i2c digital input board -DI8 arduino demo code
Posted by: admin - 02-23-2024, 04:12 AM - Forum: Extender module - No Replies

Code:
#include "Arduino.h"
#include "PCF8574.h"
// Set i2c address
PCF8574 pcf8574(0x27,4,5); //4 is SDA 5 is SCL need replace by your board's pin define
/*
A0  A1  A2
0    0    0    =0x20
0    0    1    =0x21
0    1    0    =0x22
0    1    1    =0x23
1    0    0    =0x24
1    0    1    =0x25
1    1    0    =0x26
1    1    1    =0x27
*/
unsigned long timeElapsed;
void setup()
{
    Serial.begin(115200);
    delay(1000);
//    pcf8574.pinMode(P0, OUTPUT);
pcf8574.pinMode(P0, INPUT);
pcf8574.pinMode(P1, INPUT);
pcf8574.pinMode(P2, INPUT);
pcf8574.pinMode(P3, INPUT);
pcf8574.pinMode(P4, INPUT);
pcf8574.pinMode(P5, INPUT);
pcf8574.pinMode(P6, INPUT);
pcf8574.pinMode(P7, INPUT);
    Serial.print("Init pcf8574...");
    if (pcf8574.begin()){
        Serial.println("OK");
    }else{
        Serial.println("KO");
    }
}
void loop()
{
uint8_t val1 = pcf8574.digitalRead(P0);
uint8_t val2 = pcf8574.digitalRead(P1);
uint8_t val3 = pcf8574.digitalRead(P2);
uint8_t val4 = pcf8574.digitalRead(P3);
uint8_t val5 = pcf8574.digitalRead(P4);
uint8_t val6 = pcf8574.digitalRead(P5);
uint8_t val7 = pcf8574.digitalRead(P6);
uint8_t val8 = pcf8574.digitalRead(P7);
if (val1==LOW) Serial.println("KEY1 PRESSED");
if (val2==LOW) Serial.println("KEY2 PRESSED");
if (val3==LOW) Serial.println("KEY3 PRESSED");
if (val4==LOW) Serial.println("KEY4 PRESSED");
if (val5==LOW) Serial.println("KEY5 PRESSED");
if (val6==LOW) Serial.println("KEY6 PRESSED");
if (val7==LOW) Serial.println("KEY7 PRESSED");
if (val8==LOW) Serial.println("KEY8 PRESSED");
    delay(300);
}

arduino code download:

.zip   DI8.zip (Size: 594 bytes / Downloads: 87)

PCF8574 arduino library ZIP file download:

.zip   PCF8574_library.zip (Size: 23.8 MB / Downloads: 108)

Print this item

  PCF8574 IO Expansion i2c relay board -DO8 arduino demo code
Posted by: admin - 02-23-2024, 04:08 AM - Forum: Extender module - No Replies

Code:
#include "Arduino.h"
#include "PCF8574.h"

// Set i2c address
PCF8574 pcf8574(0x27,4,5);  //4 is SDA  5 is SCL  need replace by your board's pin define
/*
A0  A1  A2
0    0    0    =0x20
0    0    1    =0x21
0    1    0    =0x22
0    1    1    =0x23
1    0    0    =0x24
1    0    1    =0x25
1    1    0    =0x26
1    1    1    =0x27
*/
void setup()
{
    Serial.begin(115200);
//    delay(1000);
    // Set pinMode to OUTPUT
    pcf8574.pinMode(P0, OUTPUT);
  pcf8574.pinMode(P1, OUTPUT);
  pcf8574.pinMode(P2, OUTPUT);
  pcf8574.pinMode(P3, OUTPUT);
  pcf8574.pinMode(P4, OUTPUT);
  pcf8574.pinMode(P5, OUTPUT);
  pcf8574.pinMode(P6, OUTPUT);
  pcf8574.pinMode(P7, OUTPUT);
//    pcf8574.pinMode(P1, INPUT);
    Serial.print("Init pcf8574...");
    if (pcf8574.begin()){
        Serial.println("OK");
    }else{
        Serial.println("KO");
    }
}
void loop()
{
    pcf8574.digitalWrite(P0, HIGH);
  delay(300);
  pcf8574.digitalWrite(P0, LOW);
  delay(300);
}
arduino code download

.zip   DO8.zip (Size: 485 bytes / Downloads: 131)
PCF8574 arduino library ZIP file download:

.zip   PCF8574_library.zip (Size: 23.8 MB / Downloads: 127)

Print this item

  how to set KC868-H32B Pro relay inching mode with push buttons
Posted by: admin - 02-23-2024, 03:39 AM - Forum: KC868-HxB series Smart Controller - Replies (4)

   
   
   
   

for example: 
H32B Pro relay1 ON RS485 modbus command is: 01050000FF008C3A
H32B Pro relay1 OFF RS485 modbus command is: 010500000000CDCA

so you can create all custom RS485 protocol command for any buttons.

   
   
   
   
   

Print this item

  Updating ESPHome By Windows OS Command Line
Posted by: admin - 02-22-2024, 08:27 AM - Forum: Getting Started with ESPHome and Home Assistant - No Replies

windows command line:
pip3 install esphome --upgrade
Or
pip3 install esphome -U

Print this item

  how to use ESPHome dashboard in Windows OS
Posted by: admin - 02-20-2024, 11:50 AM - Forum: Getting Started with ESPHome and Home Assistant - No Replies

(You have installed Python and ESPHome component, we have another lesson for it)
1.  create folder called "config".
2.  windows CMD mode , input command:  esphome dashboard config/
3. use web browser login with "localhost:6052"

Print this item

  KC868-A8M SIM7600 GPRS Disconnected
Posted by: deepthasm - 02-19-2024, 04:29 PM - Forum: KC868-A8M - Replies (11)

Hi,
Recently I bought KC868-A8M with SIM7600 module and Installed the latest KCS firmware (KCS_KC868_A8M_V2.1.9). I enabled the GSM on the network settings page. But, I'm getting "GPRS : disconnected" on monitor page. Try to clicking "Phone test" but I'm getting "error".

Following are the logs for reference.

[1B][0;32mI (2958) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07[1B][0m
I (3046) wifi:mode : softAP (08:f9:e0:8a:ee:29)
I (3047) wifi:Total power save buffer number: 16
I (3047) wifi:Init max length of beacon: 752/752
I (3049) wifi:Init max length of beacon: 752/752
[1B][0;32mI (3054) web_server: Starting HTTP Server on port: '80'[1B][0m
[1B][0;32mI (3061) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 1| Intr:0 [1B][0m
[1B][0;32mI (3069) ntp: tz:UTC+0[1B][0m
[1B][0;32mI (3069) UDP SERVER: Socket created[1B][0m
[1B][0;32mI (3075) UDP SERVER: Socket bound, port 4001[1B][0m
[1B][0;32mI (3069) RF: RCSwitch->nReceiverInterrupt=16 gpio_pin_sel=65536[1B][0m
[1B][0;32mI (3087) gpio: GPIO[16]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3 [1B][0m
[1B][0;32mI (3097) RF: Start RF receiver[1B][0m
[1B][0;32mI (3097) uart: queue free spaces: 20[1B][0m
[1B][0;32mI (3104) gprs: gprs init success.[1B][0m
[1B][0;32mI (3115) pcf857x: pcf857x init.[1B][0m
eFuse Two Point: NOT supported
eFuse Vref: Supported
[1B][0;32mI (3117) analog: ---->adc1 thresholdd : 0[1B][0m

So on, 

I checked SIM7600 module connecting directly to the Computer using USB. Module is working perfectly and can send and receive both SMS and Voice call.


Please help.



Attached Files Thumbnail(s)
   
Image(s)
       
Print this item

  How expand input using I2C bus?
Posted by: DaddyLee76 - 02-19-2024, 12:08 PM - Forum: KC868-A8 - Replies (9)

Hello! 
I bought two kc868-a8 and configured them via esphome. 
For the moment I'm using 8 digital input + 2 analog input as binary sensor and all 8 output.
I have 2 question. 
- Does it possible toggle one or more relays of the first card when I press one button of the second card? i know that I can use Home assistant for that but I'd like to know if there is a another way to do that.
- how can I expand input ports using IIC? 
Regards

Print this item

  KC868-A16 expansion
Posted by: KP9 - 02-19-2024, 11:02 AM - Forum: KC868-A16 - Replies (4)

Hello, how can I extend inputs and outputs?
Can I use KC868-HA V2?
   

Print this item

Brick Looking to Automate Home
Posted by: kazezx - 02-19-2024, 07:42 AM - Forum: DIY Project - Replies (3)

Hello,

I'm looking to automate my home which i will soon complete building in the coming months.
I have been watching your Youtube videos and the items used inside the electricity distribution board seems adequate for my DIY project.

The main Application that i would like to use is the Home Assistant which would be hosted on a personal Home Server/HomeLab Server alongside other networking services such as NAS and Streaming Media Server.
My Automations (using less than 32 Channels) would mostly consist of controlling lighting bulbs, fans, Air Conditioners and some other low power driven appliances mostly connected to traditional switches like these.

Which Kincony product would be required for such a project?
a) Server : Kincony KC868-Server or KC868-H32B Pro
b) Raspberry Pi : Is it mandatory to use a RPI or can i use another SBC such as Zimaboard or a mini PC hosting Home Assistant via Virtualization.
c) Relay modules : would the KC868-E16V2 X2 be enough for the low current switches and other appliances?
d) Ability to add other smart devices such as Alexa and Google Home, Zigbee etc.
e) Is it possible to use MCB Breakers which are available locally in my Country (Mauritius)?
f) Would using a custom Aluminium cabinet to place the devices cause any unsafe/hazards scenarios?
g) Ability to add analog/digital input devices in the future.
h) Energy monitoring per output capabilities.

Thank you for your suggestions and time in advance.

Print this item

  KC868-A8 PH and ORP sensor
Posted by: eireit - 02-18-2024, 07:21 PM - Forum: KC868-A series and Uair Smart Controller - Replies (3)

Witch PH and chlorine sensor do you recommend for KC868-A8 (swimmingpool)?

Print this item