Author Topic: Connection interface for modular electronics  (Read 1830 times)

0 Members and 1 Guest are viewing this topic.

Offline DanioIOTopic starter

  • Contributor
  • Posts: 35
Connection interface for modular electronics
« on: November 11, 2014, 10:35:38 pm »
Hi,
Im trying to make a simple modular device one master board and couple of slaves. Im currently stuck at the interface which would be used to communicate between master and slaves - i need two way communication. All modules will be connected in parallel using only two wires.
I though about using I2C SRAM buffer on every module so the master can read data from this memory, but i cant find any memory that supports more than 4 addresses - does any one know and module which i2c address can be choose by the user? I could implement this memory on a microcontroller acting as an i2c slave but this solution has one problem - i need two i2c interfaces one for the master and one for the slave.
Does any one know any way to connect master to couple of slave using only two wires and a data buffer?
 

Offline Tandy

  • Frequent Contributor
  • **
  • Posts: 372
  • Country: gb
  • Darren Grant from Tandy, UK.
    • Tandy
Re: Connection interface for modular electronics
« Reply #1 on: November 11, 2014, 10:47:53 pm »
You could use SPI and create a shift register cascade on the boards so you can select each one by stepping through the shift register to active each boards chip select.
For more info on Tandy try these links Tandy History EEVBlog Thread & Official Tandy Website
 

Offline magetoo

  • Frequent Contributor
  • **
  • Posts: 284
  • Country: se
Re: Connection interface for modular electronics
« Reply #2 on: November 12, 2014, 03:30:54 pm »
Does any one know any way to connect master to couple of slave using only two wires and a data buffer?

CANbus?  It's widely used in automotive, some microcontroller families have it as an option.  Here is a decent intro to CAN.

(I'm ignoring the RAM/buffer part of what you said, because I have no idea if that's necessary or just something you made up on the spot to help solve the problem.  CAN does have "remote frames" though, which can do something similar.)

Or along the same lines, maybe LIN, which I don't really know much about.

It would help if you told us a bit more, like distances involved, data rates, hobby or industry, and that sort of thing.
 

Offline lapm

  • Frequent Contributor
  • **
  • Posts: 564
  • Country: fi
Re: Connection interface for modular electronics
« Reply #3 on: November 12, 2014, 05:22:54 pm »
I think we need a bit more information about use of this connector...

Whats sort of distances you are looking for and what sort of speed you need? Also how many signals you need to get over from master to slave?

Distance effects what is reasonable system to use to get this data over...
Electronics, Linux, Programming, Science... im interested all of it...
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf