Smart Home Automation Forum

Full Version: UART connection
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.