Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Using one Teensy 3.5 to send signal to three others

  1. #1

    Using one Teensy 3.5 to send signal to three others

    Hi everyone. I'm working on a project with acoustic ghost imaging that utilizes a 10x10 array of speakers to blast sound an at object in order to take a "photo" of it. To do this, I am planning on having one "master" Teensy 3.5 generate a random checker board - type pattern of random high and low squares over that 10x10 array, then send this pattern to three "slave" Teensy 3.5's. Each of the slaves will correspond to a section of the 10x10 array, and if there are high squares in their portion, then those speakers turn on.

    The issue that I am running into is that I am not sure how to actually use the master Teensy to send orders to the slaves. I've looked into RS-485, I2C, and SPI, and I am not quite sure which would be best. This rig will be small, so I figure RS-485 won't be best. I'm not exactly sure how I2C works honestly, but it is seeming like SPI would be my best bet. All in all, though, I am not entirely sure.

    If anyone would mind giving some advice, I would be very appreciative.

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    For the send - how much and how fast? The same data to all slaves?

  3. #3
    The same data will not be sent to all three. The plan is to generate the random 10x10 array, the send each of the three slaves their own portion. Once received, the slaves will light up the lights that received the high signal in the random array portion. Does that make sense?

    As for the speed, it doesn't necessarily have to be fast. I haven't decided on a speed yet.

    However, all of the speakers in the 10x10 array need to fire at the same time.

    EDIT: I think that instead, I will send the same data to each slave using I2C. All three slaves can connect to one wire to the master, the master can send the same data to all three slaves, and the slaves only look at specific values within the data. For example, the first slave will only be interested in values 1-34, the second slave will look at values 35 - 67, and the third slave will look at values 68 - 100. Does this make sense?
    Last edited by mhackett1999; 07-01-2020 at 08:30 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts