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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 6,547
» Latest member: clarencelocke
» Forum threads: 2,901
» Forum posts: 15,394

Full Statistics

Online Users
There are currently 30 online users.
» 1 Member(s) | 9 Guest(s)
AhrefsBot, Amazonbot, Bing, Crawl, Google, PetalBot, Semrush, WordPress/, bot, owler, admin

Latest Threads
Tuya Controller
Forum: KC868-A16
Last Post: dagummy
3 hours ago
» Replies: 36
» Views: 1,621
G1 connection problem to ...
Forum: G1
Last Post: classiccars
5 hours ago
» Replies: 0
» Views: 3
G1 ESP32-S3 IO pins defin...
Forum: G1
Last Post: classiccars
7 hours ago
» Replies: 1
» Views: 197
[Bug] Network
Forum: KC868-A8
Last Post: admin
9 hours ago
» Replies: 3
» Views: 17
G1 Incoming Call Handling
Forum: G1
Last Post: admin
9 hours ago
» Replies: 1
» Views: 6
Dummy question: non-zero ...
Forum: T16M
Last Post: admin
9 hours ago
» Replies: 5
» Views: 36
Question:AS. Improving A...
Forum: KinCony AS
Last Post: admin
Today, 02:32 AM
» Replies: 1
» Views: 6
Integration zigbee and tu...
Forum: KC868-AG / AG Pro / AG8
Last Post: admin
Yesterday, 10:22 PM
» Replies: 3
» Views: 22
T16M discovery on linux
Forum: T16M
Last Post: admin
Yesterday, 10:18 PM
» Replies: 1
» Views: 4
Etgernet + wifi
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 10:16 PM
» Replies: 32
» Views: 670

  KC868-A4 digital input1 trigger relay1 output by ESPHome config demo
Posted by: admin - 10-31-2021, 12:35 AM - Forum: KC868-A4 - No Replies

switch:
  - platform: gpio
    pin: GPIO2
    name: "room lamp"
    id: lamp

binary_sensor:
  - platform: gpio
    pin: GPIO36
    name: "room lamp Toggle Button"
    on_press:
      then:
        - switch.toggle: lamp

Print this item

  Lesson26- how to DIY Music Reactive LED strip for Christmas tree
Posted by: admin - 10-29-2021, 06:56 AM - Forum: KC868-A series and Uair Smart Controller - No Replies


1. WS2812B LED strip connect with DS18B20 temperature's port. (it's GPIO13)
2. Sound detect connect with KC868-A4's (DC 0-5V) analog input port. Sound detect is a sensor convert sound to DC 0-5v output.
3. install arduino library "FastLED" online.

arduino IDE source code download: 
.zip   music-led.zip (Size: 3.28 KB / Downloads: 345)

Print this item

  Lesson24- how to use Telegram control KC868-A4 A8 (ESP32) relay output
Posted by: admin - 10-28-2021, 12:41 AM - Forum: KC868-A series and Uair Smart Controller - No Replies


1. Creating a Telegram Bot

Open Telegram and follow the next steps to create a Telegram Bot. First, search for “botfather” and click the BotFather as shown below. Or open this link t.me/botfather in your smartphone.

2. The following window should open and you’ll be prompted to click the "start" button.

3. Type "/newbot" and follow the instructions to create your bot. Give it a name and username.

4. If your bot is successfully created, you’ll receive a message with a link to access the bot and the "bot token". Save the bot token because you’ll need it so that the ESP32/ESP8266 can interact with the bot.

5. Get Your Telegram User ID

a. In your Telegram account, search for “IDBot” or open this link t.me/myidbot in your smartphone.
b. Start a conversation with that bot and type /getid. You will get a reply back with your user ID. Save that user ID, because you’ll need it later in this tutorial.

6. Preparing Arduino IDE

a. download arduino library and source code: 
.zip   KC868-A4-A8-Telegram.zip (Size: 75.98 KB / Downloads: 730)
b. install "Universal Telegram Bot Library" : Go to Sketch > Include Library > Add.ZIP Library...
c. install "ArduinoJson Library" :
  Go to Skech > Include Library > Manage Libraries.
  Search for “ArduinoJson”.
  Install the library.
d. open source code, replace ssid , password, CHAT_ID, BOTtoken for youself.
e. download firmware and test.

Print this item

  Lesson25- how to send alert message to Whatsapp by KC868-A4 A8 (ESP32)
Posted by: admin - 10-27-2021, 06:45 AM - Forum: KC868-A8 - Replies (20)


You need to get the apikey form the bot before using the API:

1. Add the phone number +34 644 56 55 18  into your Phone Contacts. (Name it it as you wish)

2. Send this message "I allow callmebot to send me messages" to the new Contact created (using WhatsApp of course)

3. Wait until you receive the message "API Activated for your phone number. Your APIKEY is 123123" from the bot. As this is still in beta testing, the activation can take up to 2 minutes.

4. The WhatsApp message from the bot will contain the apikey needed to send messages using the API.
You can send text messages using the API after receiving the confirmation.

Example:
   

5. Enjoy

How to send a WhatsApp text message

https://api.callmebot.com/whatsapp.php?phone=[phone_number]&text=[message]&apikey=[your_apikey]

[phone_number]: Is your phone number asociated to your WhatsApp including the country code. (Ex: +34 123 123 123).

[text]: Message to send (urlencoded). You can use this online converter to encode the message. (i.e. %20 for space, %0A for new lines). WhatsApp formatting characters are allowed (i.e "*" for bold, etc.). Check here how to include emoticons in the message.

[your_apikey]: The apikey that you received during the activation process (step 4-5 above)

Example:

https://api.callmebot.com/whatsapp.php?p...1234567890
If you have problems building the URL, you can try the Web Browser assistant to test the API.

As this API is in beta testing, the messages can be delayed up to 1 minute.
   

Preparing 433MHz RF wireless sensor

Welding wireless module to KC868-A4 or KC868-A8 PCB board.

Preparing Arduino IDE

install RCSwitch library online.
source code download: 
.zip   KC868-Whatsapp.zip (Size: 1.54 KB / Downloads: 616)
you need to change WiFi ssid, password, apiKey, phone number, sensor_address, message_to_whatsapp by yourself.

Print this item

  KC868-A8 PCB V1.4 ESP32 I/O pin define in Arduino IDE
Posted by: admin - 10-27-2021, 02:14 AM - Forum: KC868-A8 - Replies (2)

       
#define ANALOG_A1  34  updated in PCB V1.4
#define ANALOG_A2  35  updated in PCB V1.4

IIC SDA:4
IIC SCL:5

Relay_IIC_address 0x24

Relay1 = pcf8574.pinMode(P0, OUTPUT);
Relay2 = pcf8574.pinMode(P1, OUTPUT);
Relay3 = pcf8574.pinMode(P2, OUTPUT);
Relay4 = pcf8574.pinMode(P3, OUTPUT);
Relay5 = pcf8574.pinMode(P4, OUTPUT);
Relay6 = pcf8574.pinMode(P5, OUTPUT);
Relay7 = pcf8574.pinMode(P6, OUTPUT);
Relay8 = pcf8574.pinMode(P7, OUTPUT);

Input_IIC_address 0x22

Input1 = pcf8574.pinMode(P0, INPUT);
Input2 = pcf8574.pinMode(P1, INPUT);
Input3 = pcf8574.pinMode(P2, INPUT);
Input4 = pcf8574.pinMode(P3, INPUT);
Input5 = pcf8574.pinMode(P4, INPUT);
Input6 = pcf8574.pinMode(P5, INPUT);
Input7 = pcf8574.pinMode(P6, INPUT);
Input8 = pcf8574.pinMode(P7, INPUT);


DS18B20/DHT11/DHT21/LED strip -1: 14
DS18B20/DHT11/DHT21/LED strip -2: 13

DS18B20/DHT11/DHT21/LED strip -3: 32   updated in PCB V1.4
DS18B20/DHT11/DHT21/LED strip -4: 33   updated in PCB V1.4



RF433MHz wireless receiver: 15

Ethernet (LAN8720) I/O define:

#define ETH_ADDR        0
#define ETH_POWER_PIN  -1
#define ETH_MDC_PIN    23
#define ETH_MDIO_PIN  18
#define ETH_TYPE      ETH_PHY_LAN8720
#define ETH_CLK_MODE  ETH_CLOCK_GPIO17_OUT

Print this item

  KC868-A8 PCB V1.4 update
Posted by: admin - 10-27-2021, 02:06 AM - Forum: News - Replies (4)

we have updated KC868-A8 PCB V1.4
V1.4 up to use 4 digital input by DS18B20/DHT11/DHT21 or WS2812/B LED strips.
   

Print this item

  How to let controller connect to your own MQTT cloud server
Posted by: admin - 10-26-2021, 01:11 AM - Forum: Development - No Replies



1. select a cloud server for MQTT broker, suggest to use Linux server by Amazon AWS or Alibaba cloud.

2. install MQTT broker applicatoin to your server, such as mosquito or EMQ X, chose open source type.

3. allow MQTT ports by cloud server's security group.

4. start MQTT service.

5. set controller's network setting for MQTT Server Domain/IP address, port.

6. use MQTTBox debug tool to send command remote control relay for a testing.


MQTTBox debug tool download: 
https://www.kincony.com/download/client_MQTTBox-win.zip

EMQ X: https://www.emqx.com/en/downloads?product=broker

Print this item

  KC868-H32B V4.39 new firmware update
Posted by: admin - 10-25-2021, 03:00 AM - Forum: News - No Replies

[Image: kc868-h32b_pix550.jpg]
improvement:

support set domain for your own server. old version only set server IP address by number. This verison can set by a server domain name for TCP and MQTT server, added DNS function.

download the ZIP file , unzip update the bin file for KC868-H32B relay controller by USB-RS232 cable.

.zip   Relay32_V439_211024.zip (Size: 46.96 KB / Downloads: 336)
firmware update tool download: https://www.kincony.com/download/KC868-C...loader.zip

Print this item

  Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8
Posted by: admin - 10-25-2021, 12:59 AM - Forum: KC868-A series and Uair Smart Controller - Replies (18)


LED Strip chip model: WS2812B

every LED have R,G,B colors:
every LED cost R: 20mA+G: 20mA+B: 20mA=60mA

if you using 1 meter = 30 LEDs 
total cost:60mA*30=1800mA=1.8A  so chose DC5V 2000mA power supply

if you using 10 meter, so will use 300 LEDS
total cost:60mA*30*10=18000mA=18A  so chose > DC5V 18A power supply

-------------------ESPHome Config---------------------------------------------

esphome:
  name: light_strip_30
  platform: ESP32
  board: esp32dev

wifi:
  ssid: "KinCony"
  password: "a12345678"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "KC868-A4 Hotspot"
    password: "12345678"

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: "1"

ota:
  password: "1"

web_server:
  port: 80
light:
  - platform: fastled_clockless
    chipset: WS2812B
    pin: GPIO13    # Pin Define connected with LED strip
    num_leds: 30  #LEDs number
    rgb_order: GRB
    name: "light_strip_A4"
    effects:
      - addressable_rainbow:        ##defined 7 effects styles
      - addressable_color_wipe:
      - addressable_scan:
      - addressable_twinkle:
      - addressable_random_twinkle:
      - addressable_fireworks:
      - addressable_flicker:

Print this item

  4 channels unit and 1wire port
Posted by: philippe - 10-22-2021, 06:35 PM - Forum: KC868-HxB series Smart Controller - Replies (3)

Hi,
I see that the 4 channels unit has only one 1wire port.
Can you connect several 1wire chips on the same port ( the 1 wire standard protocol)?
Then can you collect with MQTT the temperature(s) from this 1 wire port?
Thank you

Print this item