Help with node mcu and arduino uno spi protocol

Good evening,
My problem statement is as follows,
have 8 node mcus each collecting sensor data. I want to collect it at a common node using serial commication and decided to use a arduino uno for the same.

Currently i am using a code where sensor data is stored on to a buffer on node mcu and is transferred to uno. This works only for a single node and slave.

I request you to help me with a new code or reference code where the master can select the slave,collect the data and move to next slave.

Deadline is Saturday. Will be compensated for work

You managed to set up the master node as AP and the others as STA or did you do it differently? Drop me a PM.

AP's and STA's are applicable in WP.

OP used correct SPI terms : master and slave.

IHMO, PMing you would be a waste of time.

When you say serial are you talking SPI/I2C/Serial, is this a multi drop connection because 232 wont work unless you are poling the nodes from the Uno one at a time with each having its own address in the data exchange packets. SPI would need a CS for each Node and I2C an address for each node. I2C is the cleanest as they all share the SCL/SDA pair and will work for mutidrop.

Using an Spi for this use case as it is cleanest and using multiple select lines not at issue

Hi. @mugambi ,
Will gou be able to help mecout

@kp14 check Your PM

Yes i can help, PM me and send me your current code, ill take a look for you.

@kp14 I will be glad to help. PM sent

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.