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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 6,391
» Latest member: proelec
» Forum threads: 2,850
» Forum posts: 15,084

Full Statistics

Online Users
There are currently 231 online users.
» 0 Member(s) | 209 Guest(s)
Amazonbot, Applebot, AwarioBot, Bytespider, Crawl, Go-http-client, Google, PetalBot, Yandex, bot

Latest Threads
Additional GPIO
Forum: KC868-A4S
Last Post: Amaral989
3 hours ago
» Replies: 0
» Views: 2
Setup K868-a32 and k868-a...
Forum: DIY Project
Last Post: admin
7 hours ago
» Replies: 7
» Views: 43
KC868-A16 with IDE 2.3.4
Forum: KC868-A16
Last Post: admin
7 hours ago
» Replies: 4
» Views: 45
Display
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
7 hours ago
» Replies: 1
» Views: 4
RTC stop working with bu...
Forum: KC868-A6
Last Post: admin
Yesterday, 08:31 AM
» Replies: 15
» Views: 5,051
Hibrid project
Forum: KC868-Server Raspberry Pi4 local server
Last Post: Psyos
Yesterday, 12:32 AM
» Replies: 2
» Views: 13
Double press/ Long press ...
Forum: KC868-AI
Last Post: admin
03-09-2025, 11:34 PM
» Replies: 7
» Views: 427
Trigger Outputs
Forum: KC868-HxB series Smart Controller
Last Post: admin
03-09-2025, 11:29 PM
» Replies: 5
» Views: 46
Using 12v on Digital Inpu...
Forum: KC868-A16
Last Post: admin
03-09-2025, 01:31 PM
» Replies: 17
» Views: 397
Input problem 868 A6
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
03-09-2025, 01:29 PM
» Replies: 3
» Views: 18

  [arduino code examples for A32 Pro]-12 How to use DHT11 temperature humidity sensor
Posted by: admin - 09-20-2024, 05:12 AM - Forum: KC868-A32/A32 Pro - No Replies

Code:
/*
*  Made by KinCony IoT: https://www.kincony.com

*  This program reads temperature and humidity values from a DHT11 sensor
*  connected to GPIO2 of an ESP32 board, and prints the readings to the serial monitor.

*  The DHT11 sensor measures the relative humidity and temperature in the environment.
*  This data is then read by the ESP32 and displayed in the serial monitor.
*
*  Requirements:
*  - ESP32 microcontroller
*  - DHT11 temperature and humidity sensor
*  - DHT sensor library by Adafruit (Install in Arduino IDE)
*
*  Connections:
*  - DHT11 Data Pin -> GPIO2 on ESP32
*  - DHT11 VCC Pin -> 3.3V on ESP32
*  - DHT11 GND Pin -> GND on ESP32
*/

#include <DHT.h>  // Import the DHT library

// Define the GPIO pin where the DHT11 sensor is connected
#define DHTPIN 2       // DHT11 data pin is connected to GPIO2 on ESP32

// Define the type of DHT sensor being used (DHT11)
#define DHTTYPE DHT11  // DHT11 sensor type

// Create a DHT object to read temperature and humidity
DHT dht(DHTPIN, DHTTYPE);

void setup() {
  // Initialize serial communication for debugging at a baud rate of 115200
  Serial.begin(115200);
  Serial.println("DHT11 Sensor Test - Made by KinCony IoT: https://www.kincony.com");

  // Initialize the DHT sensor
  dht.begin();
}

void loop() {
  // Wait for 2 seconds between each reading to ensure stable data
  delay(2000);

  // Read humidity value from the DHT11 sensor
  float humidity = dht.readHumidity();
 
  // Read temperature value from the DHT11 sensor in Celsius
  float temperature = dht.readTemperature();

  // Check if there was an error reading the data
  if (isnan(humidity) || isnan(temperature)) {
    // Print error message if the sensor reading failed
    Serial.println("Failed to read from DHT11 sensor!");
    return;  // Exit loop iteration and try again after delay
  }

  // Print the humidity value to the serial monitor
  Serial.print("Humidity: ");
  Serial.print(humidity);
  Serial.print("%");

  // Print the temperature value to the serial monitor
  Serial.print("  Temperature: ");
  Serial.print(temperature);
  Serial.println("°C");
}

arduino ino file download: 
.zip   12-DHT11-temperature-humidity.zip (Size: 1.05 KB / Downloads: 68)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download: 
.zip   12-DHT11-temperature-humidity.ino.merged.zip (Size: 180.83 KB / Downloads: 61)
   

Print this item

  USB ports
Posted by: BaconRanch - 09-19-2024, 09:20 PM - Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module - Replies (2)

Hello,

 am trying to use a 2.4 Gz USB keyboard on the device and its just now shgowing up.  I have tried all 4 ports and re-bvooted device each attempt with no luck. Most R Pi 4s have 2 blue USB and 2 black but mine are all black.  I have looked ubder Settings >System>Hardware>All HARDWARE and there are no ebtries indicating an USB ports and definitely nothing looking like a wireless keyboard.  Tje CM4 is wells seated, not a connection issue.  My keyboard works on a windows PC and an Android TV box perfectly, its not the issue.

Any ideas please?

Thank you,
Mark Young

Print this item

  PWM support?
Posted by: luis15pt - 09-19-2024, 06:10 PM - Forum: KC868-A16 - Replies (11)

I have a  KC868-A16 would it be possible to control a standard computer fan 12v that has PWM ? i know there are some GPIO ports, im assuming i have to configure one of these as PWM, how do i find out which ones they represent on the actual board? The next question is how do i monitor the RPM form the fan and where do i connect and configure it ?
[Image: rRuk1Q4.png]
[Image: sh-07-sensors.jpg]

Print this item

  KC868-AG RF - sending repeated signals
Posted by: PhilW - 09-18-2024, 12:29 PM - Forum: KC868-A series and Uair Smart Controller - Replies (5)

I'm new to this HW, so maybe I'm missing something.

I have a remote 433mhz that I "learned" on the Web UI.

When I transmit the signal, it is being sent around 5 times, triggering the receiving device to turn on and off and on again etc.
Basically, the device (ventilator) beeps when it gets a signal, and I'm hearing around 5 beeps.

Is there any way to configure this behavior?

Or should I flash the device with a different fimware? Can I just flash esphome on it - and hope to fix this somehow that way?

Current firmware: v2.2.4

Print this item

  Usar entradas y oled i2c juntos
Posted by: sistemasyusa - 09-18-2024, 02:49 AM - Forum: KC868-A6 - Replies (4)

Buenas tardes 

Quiero usar las entradas y al mismo tiempo una pantalla  oled i2c, pero no logro usarlo en conjunto correctamente, veo el código de ejemplo de entradas y ahí viene esto:

PC8574. pc8564(0x22,4,15)

Y en el código de ejemplo de OLED viene lo siguiente :

U8G2_SSD1306_128X64_NONAME_F_SW_I2C u8g2(U8G2_R0, 15, 4, U8X8_PIN_NONE);//SCL IO15 SDA IO4

y el error que hace es que siempre manda indicar que la entrada se activo cuando junto tanto un codigo como el otro 

Agradecería su apoyo 


Anexo código completo



Attached Files Thumbnail(s)
   

.zip   DEMO_KC868_15_OLED_input.zip (Size: 2.12 KB / Downloads: 76)
Print this item

  KC868-A16S or KC868-A8S
Posted by: mbeaven - 09-17-2024, 08:13 PM - Forum: KC868-A series and Uair Smart Controller - Replies (5)

I'm thinking of using either KC868-A16S or KC868-A8S to control 24V lights/devices in a campervan via ESP32 with momentary switches and via a smartphone. Both boards indicate they handle AC current. Can they also handle DC 12v and/or 24v loads with the built in relays? If so, what is the max amps per relay and in total? What is the make/model/part number of the relay switch used on the board?

They also indicate they use DC 12V to power the board. Can they use 24V power as well?

Print this item

  Sensor inputs
Posted by: BaconRanch - 09-17-2024, 06:13 PM - Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module - Replies (1)

Hello,

I am trying trying to wire in a 3 wire, 12V pir motion detector.  

I have a brown wire to constant 12v source

I have a red wire ( trigger ) going to terminal for sensor #1

And I have the blue ground going to body and to ground terminal right next to terminal #1 as per legend on metal cover .

When I short ground terminal and terminal #1 I get a response but the pir is not working as expected.  Have tried other pir devices with no luck.

What is my problem here, has to be something very easy and I just can't get there because I don't know yet how to fine tune time, distance and LUX on the pir.

Picture of wiring at terminal attached .    

By the way, check out my project at YouTube video
https://youtu.be/kaFyxVdjftc?si=IFzDsg6tIEdfazml

Print this item

Heart Sample request(s) for Education (A
Posted by: bsarra - 09-16-2024, 04:03 PM - Forum: Apply for free sample product - No Replies

Greetings.

This post mirrors an email request sent with the subject matching this thread.  Please respond to the email request (sender also matches this forum user account email).

Due to privacy concerns, I am not permitted to post my request details or shipping information on a public platform, so I would direct you to the email sent at the known addresses:

  • hificat@163.com
  • xu169@sina.com

Please advise and correct if there is a better/preferred email address to send such requests.

Thank you.

Print this item

  4-20mah sensor wiring example
Posted by: aucirc - 09-16-2024, 01:26 PM - Forum: KC868-AIO - Replies (3)

I'm considering the KC868-AIO - I need several water level sensors and interested in using the 4-20mah version of this (as the accuracy is better over longer distances)
https://aliexpress.com/item/1005006338737673.html

It's a two-wire sensor, but I can't find any examples of how this should be connected to the KC868-AIO?  As these work best with 24V should the KC868-AIO be powered with 24V also?

Print this item

  KC868 A32 Firmware 2.2.4 binding
Posted by: iozzi_giorgio - 09-16-2024, 11:27 AM - Forum: KC868-A32/A32 Pro - Replies (2)

good morning I tried to load the KCS 2.2.4 firmware on the KC868_A32 rev. 1.4 board. in programming I can't connect the input to the output (bind). in the input screen I only see "reverse". I also tried to load a previous version of KCS. I saw the video on YouTube but I couldn't solve it. I also tried with different browsers. can you help me?



Attached Files Thumbnail(s)
           
Print this item