Maker Pro
Maker Pro

Idea for SPI problem

E

en2

I have 4 control boards with SPI outputs. Each board has one.
Boards should be connected together and last one should be connected to
pcb web server.

Each board should send data over same web server and data should contain
controller ID and some other stuff.

Am stuck in this connection process.
How to connect those boards together to get what I need ?

The main problem is master / slave part.
If the board is set as slave i can use one master ( web server ),
so to get 4 boards together could be quite problem.

In start each board should have own web server but thanks to shippment
from china, non of those web servers that we have ordered has come.
To be precise, they will come with 2 weeks delay, and i have 2 days to
finish my project. That's why i have to make this with just one pcb web
server.

E.
 
E

en2

If your boards are already built with just a single /SS coming out of
the master and one /SS going into each slave, all is not lost. You'll
need to do a bit more programming, though.

The SPI slaves should be able to safely receive in parallel. The
details of how to set up "receive only mode" are chip specific, of
course. But then, when a slave sees its address in the SPI packet
header, it can turn on its output and continue the conversation with
the master. Again, the details are chip specific -- does the master
need a delay, should it toggle /SS again, etc.
Yes they are built on this way.
Btw. I found this...

What do you think?

http://www.circuitsathome.com/mcu/running-multiple-slave-devices-on-arduino-spi-bus
 
E

en2

If your boards are already built with just a single /SS coming out of
the master and one /SS going into each slave, all is not lost. You'll
need to do a bit more programming, though.

The SPI slaves should be able to safely receive in parallel. The
details of how to set up "receive only mode" are chip specific, of
course. But then, when a slave sees its address in the SPI packet
header, it can turn on its output and continue the conversation with
the master. Again, the details are chip specific -- does the master
need a delay, should it toggle /SS again, etc.
I try your suggestion but it's not working..
Maybe some other idea ?
 
H

hamilton

I try your suggestion but it's not working..
Maybe some other idea ?

Please define "not working".

What does your code look like ?
More details on the boards would help.

h
 
L

Lasse Langwadt Christensen

I have 4 control boards with SPI outputs. Each board has one.

Boards should be connected together and last one should be connected to

pcb web server.



Each board should send data over same web server and data should contain

controller ID and some other stuff.



Am stuck in this connection process.

How to connect those boards together to get what I need ?



The main problem is master / slave part.

If the board is set as slave i can use one master ( web server ),

so to get 4 boards together could be quite problem.



In start each board should have own web server but thanks to shippment

from china, non of those web servers that we have ordered has come.

To be precise, they will come with 2 weeks delay, and i have 2 days to

finish my project. That's why i have to make this with just one pcb web

server.

First you need to tell us what you mean by SPI, there is a million
variations, three wire, four wire, etc..

-Lasse
 
Top