Smart Home Automation Forum
UART connection - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-A16 (https://www.kincony.com/forum/forumdisplay.php?fid=25)
+--- Thread: UART connection (/showthread.php?tid=7487)



UART connection - eitan - 01-27-2025

Hi everyone
I recently bought a A16 and I am a bit lost on how to program it.
I have a lot of experience in programming on arduino, but not much on ESP.
I followed another thread https://www.kincony.com/forum/showthread.php?tid=2199, but I am not sure on my results.

Here is my objective (that s pretty simple to my opinion):

I have 4 different current sensors connected to the A16. I want to read these 4 currents and send them to the arduino (portenta c33). I also want the portenta to send 8 states (up or down) to control digital outputs.

How to do so ?

I am currently using Arduino IDE, I am not familiar with KCS...

Thanks,
Eitan


RE: UART connection - admin - 01-28-2025

1. you can read analog sensor by ADC, here is demo source code: https://www.kincony.com/forum/showthread.php?tid=1616
2. send command to your arduino (portenta c33) by RS485/wifi/ethernet, it's up to you.