Use Arduino Mega 2560 as both Master and Slave via SPI


here's general layout of i'm trying do.

in labview, have fpga sends byte of information arduino mega via spi.  able capture bytes , display serial monitor.  mega acts slave in case, fpga being master.

what want next take byte (let's it's 150 in decimal), , use test "if" condition in order light led.

this want introduce spi-incorporated single-channel digital pot (mcp4151).  if byte in decimal form being transferred 150, want use mega send 150 digital pot represent wiper step.  mcp4151 has 0-255 steps, , it's 50k ohm max.  if 150 gets there, led light such brightness.

before try second task want know if possible?  using arduino mega first slave, master.  or other arduino board matter (i necessary board if need be).

thanks



Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Use Arduino Mega 2560 as both Master and Slave via SPI


arduino

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'