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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,916
» Latest member: jumanadina
» Forum threads: 3,901
» Forum posts: 19,897

Full Statistics

Online Users
There are currently 13 online users.
» 0 Member(s) | 8 Guest(s)
Amazonbot, bot

Latest Threads
Http protocol
Forum: News
Last Post: Saif Kitany
6 hours ago
» Replies: 0
» Views: 3
4 - 20 mA adc not giving ...
Forum: KC868-AIO
Last Post: admin
11 hours ago
» Replies: 1
» Views: 7
N60 Sensor channel label
Forum: N60
Last Post: admin
Yesterday, 09:41 PM
» Replies: 1
» Views: 7
KC868-16A crashing in inf...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 09:40 PM
» Replies: 5
» Views: 28
ERROR SIM not inserted SI...
Forum: KC868-E8T
Last Post: admin
Yesterday, 12:10 PM
» Replies: 18
» Views: 977
B4 Smart Controller ESP32...
Forum: B4
Last Post: admin
Yesterday, 12:52 AM
» Replies: 0
» Views: 5
kWh resolution
Forum: N30
Last Post: admin
04-13-2026, 11:11 PM
» Replies: 37
» Views: 1,705
Current and Power not add...
Forum: N60
Last Post: admin
04-13-2026, 05:35 AM
» Replies: 3
» Views: 30
"KCS" v3.24.3 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
04-13-2026, 03:02 AM
» Replies: 0
» Views: 57
A24 configure yaml for ES...
Forum: KinCony A24
Last Post: admin
04-12-2026, 12:12 AM
» Replies: 25
» Views: 7,239

  Library <Preferences.h> Not Storing Values
Posted by: job-systems - 03-01-2024, 01:10 AM - Forum: KC868-A4S - No Replies

Hi, hope everyone is fine.

I give up... I need help. I am unable to store values in non volatile memory, so that if there is a power loss, and re-power, the value keeps the same... example, a temperature setpoint.

In my Arduino IDE environment I use: Node32s board (Is this the correct board?

This is the configuration I have in Arduino IDE:

GENERAL: 

#include <Preferences.h>

Preferences preferences; // Start preferences service.

SETUP:

  preferences.begin("almacenamiento-valores", false); // Start storage
  Serial.println("Escribiendo en NVS: 123");
  preferences.putInt("offset", 123); // Write a test value of 123 on the memory space called "offset".
 
  int valorLeido = preferences.getInt("offset", 0); // Reads the stored value.
  Serial.print("Leído de NVS: ");
  Serial.println(valorLeido); // Show the value that was stored.
  preferences.end();


Result I get on serial monitor: 

Escribiendo en NVS: 123
Leído de NVS: 0

Result: Writing the value was not successful. 

What am I doing wrong?
Would you advice using a different library for storing values?
Maybe the board I have selected on Arduino IDE is the wrong one?

Thank you for your help. 

BR, Juan

Print this item

  PWM output of DC motor drive?
Posted by: IMD - 02-29-2024, 03:16 PM - Forum: Development - Replies (1)

맑은 고딕]빠른 답변에 감사드립니다.
맑은 고딕]1. KC868-A16 보드의 PWM 출력 핀 맵은 자신 있다는 것을 알고 있습니다.
맑은 고딕]DC 모터를 제어하려고 합니다. IN1, IN2, ENA(속도 제어 PWM).
맑은 고딕]2. 경사 입력 핀이 반대 입력 핀

맑은 고딕]****개발 환경***
맑은 고딕]1.  KC868-A16
맑은 고딕]2.  아두이노 IDE 2.0.4
맑은 고딕]3.  DC 모터 12V, TB6600 스텝 모터 드라이버

Print this item

  dry contact k868 a8m
Posted by: alex989 - 02-28-2024, 03:23 PM - Forum: KC868-A series and Uair Smart Controller - Replies (5)

hi,
i'm trying to connect some solenoid valve to the board .
the solenoid use 24vac, when i connect the cable of the solenoid valve to the output 1, it goes on.
i don't undestand why

Print this item

Question Digital Input
Posted by: Vaughan2024 - 02-28-2024, 10:55 AM - Forum: KC868-A8 - Replies (7)

Hi Have a question about a how best to connect a signal that is about 1.2 - 2 volt. 
I presume I can not use the dry contact input 1 - 8 a they are 12v ?


Is there a way to get the board to detect a small 1.2 volt signal
Can I use inputs S1 - S4?

Thanks

Print this item

  KC868-A4 product for education
Posted by: jvela - 02-27-2024, 08:29 AM - Forum: Apply for free sample product - No Replies

I request a KC868-A4 equipment for education. I work for a school in Spain and we want to teach our students microcontroller programming and basic concepts of electricity and electronics.

Print this item

  ZP13 Smoke Gas Sensor Module
Posted by: aseksas - 02-26-2024, 09:01 PM - Forum: KC868-A series and Uair Smart Controller - Replies (1)

Hi, I have the KC868-H32B board. I'm interested in how: can I connect the ZP13 Smoke Gas Sensor (like 7 sensors to one input slot)


All information about the module is provided here: https://www.winsen-sensor.com/d/files/manual/zp13.pdf
For this module's physical interface: XH2.54-4P terminal socket.


If this module is not compatible, could you recommend another one? But I need a module only.



Thx for your time and help who can replay me Smile

Print this item

  PT1000 to KC868-A8 by ADC
Posted by: bousbouss - 02-26-2024, 11:11 AM - Forum: KC868-A series and Uair Smart Controller - Replies (8)

Hi,

Is it possible to connect a 2-wire PT1000 sensor to the KC868-A8 (by using ADC)?
I connected my PT1000 to A1 and GND, but i get these readings in esphome:

[12:20:21][D][sensor:094]: 'Temperature_4': Sending state 0.14200 V with 2 decimals of accuracy
[12:20:22][D][sensor:094]: 'Temperature_3': Sending state 0.14200 V with 2 decimals of accuracy


with this setup:
sensor:
  - platform: dallas
    address: 0x453c3ee381b36028
    name: "Temperature_1"
    id: Temperature_1
   
  - platform: dallas
    address: 0x783ce104577f4c28
    name: "Temperature_2"
    id: Temperature_2    
  - platform: adc
    pin: 34
    name: "Temperature_3"
    update_interval: 5s
    attenuation: 11db
  - platform: adc
    pin: 35
    name: "Temperature_4"
    update_interval: 5s
    attenuation: 11db  




I found this picture bellow, do I have to add 12v to the sensor? How do I do that if my PT1000 sensor has 2 wires? [Image: attachment.php?aid=2917]

Print this item

  DHT21 Sensor
Posted by: lori72 - 02-26-2024, 09:48 AM - Forum: "KCS" v2 firmware system - Replies (3)

Hi, I'm trying to connect the DHT21 sensor to the KC868 - A4S board but the firmware doesn't work. who can help me?



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

  Wall switch panel frame
Posted by: v1rtus - 02-25-2024, 09:41 PM - Forum: DIY Project - Replies (3)

Hello,

I have ordered a wall switch panel recently, however the the metal frame size is 86mm x 86mm and in EU the frame size is 73mm x 73mm.

It makes impossible to to put more that one switch next to each other. I added a photo of the EU electric round outlet boxes installed to a wall.

Do you have EU size frames or e a 3d model of the metal frame, I would make it smaller and print it on a 3d printer?

Thank you in advance!

   

Print this item

  kc868-server restart
Posted by: ahmedwizza1 - 02-25-2024, 08:34 PM - Forum: KC868-Server Raspberry Pi4 local server - Replies (1)

Hello engineer

We need  to restart the kc868-server daily  at an exact time to save fresh system 

So How can we do that in Home Assistant?

Print this item