ESP8266 as master communicate with 2 slaves


Yesterday 22:13
Forum: Proton Plus Compiler v3
Starter: gdesantis
Views: 0
Replies: 0
Yesterday 18:35
Forum: The Lounge
Starter: Les
Views: 0
Replies: 11
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member basparky's Avatar
    Join Date
    Oct 2006
    Posts
    199
    Thumbs Up
    Received: 14
    Given: 10
    Total Downloaded
    474.75 MB

    0 Not allowed!

    Default ESP8266 as master communicate with 2 slaves

    Hi,

    For a small project i need to have wireless very short range (1m) uart communication between 3 pics. 1 master and 2 slave devices. Slaves need to send 8 bytes per ~100ms.

    I found these nice ESP8266 modules and would like to know if anyone here is using them in such config? I found a lot of info and arduino examples but i'm wondering if this device lives under Proton users...

    The 2 slave devices are battery powered. I found a youtube video about ESPNOW which uses simple and low energy communication for such configuration.


    Anyone any experience with this?

    Before this i was trying to get 3 HC06 BLE modules in this configuration but without succes

    Any suggestions? Thanks!

  2. #2
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,852
    Thumbs Up
    Received: 163
    Given: 162
    Total Downloaded
    3.24 GB

    0 Not allowed!

    Default Re: ESP8266 as master communicate with 2 slaves

    There are many simpler solutions eg nRF24L01+ but maybe you're not looking for simple.
    George

  3. #3
    Member basparky's Avatar
    Join Date
    Oct 2006
    Posts
    199
    Thumbs Up
    Received: 14
    Given: 10
    Total Downloaded
    474.75 MB

    0 Not allowed!

    Default Re: ESP8266 as master communicate with 2 slaves

    Quote Originally Posted by towlerg View Post
    There are many simpler solutions eg nRF24L01+ but maybe you're not looking for simple.
    Hi towlerg,
    Yes, i prefer simple for sure. I checked the Wiki from the nRF24L01 and do not find it very simple Any more/other examples for this tranciever?

  4. #4
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,852
    Thumbs Up
    Received: 163
    Given: 162
    Total Downloaded
    3.24 GB

    0 Not allowed!

    Default Re: ESP8266 as master communicate with 2 slaves

    I guess simple is relative. Barak has provided a solid code base that is easy to modify. Compare that with getting BLE on an ESP working.

    You might look at here ,which uses Barak's code almost unmodified, loop thro the buttons, check battery voltage the either send the data or go to sleep.
    George

  5. #5
    Member basparky's Avatar
    Join Date
    Oct 2006
    Posts
    199
    Thumbs Up
    Received: 14
    Given: 10
    Total Downloaded
    474.75 MB

    0 Not allowed!

    Default Re: ESP8266 as master communicate with 2 slaves

    Quote Originally Posted by towlerg View Post
    I guess simple is relative. Barak has provided a solid code base that is easy to modify. Compare that with getting BLE on an ESP working.

    You might look at here ,which uses Barak's code almost unmodified, loop thro the buttons, check battery voltage the either send the data or go to sleep.
    Thanks For the link towlerg. I have been busy building a setup with 1 Rx and 2 Tx devices past weekend. Great success! I do need to find some more info about how the setup the data pipes to extract the individual datastreams from the 2 Tx devices.... For now i gave the data arrays from the both Tx devices a own identifier but this should not be necessary i guess?
    Perhaps better if i open a new Thread.

  6. #6
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,852
    Thumbs Up
    Received: 163
    Given: 162
    Total Downloaded
    3.24 GB

    0 Not allowed!

    Default Re: ESP8266 as master communicate with 2 slaves

  7. For now i gave the data arrays from the both Tx devices
    I see no reason not to do that unless I suppose you don't have sufficient RAM. I did it like that because I was worried that RX'ed data might inadvertantly overwrite TX buffer.
    George

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. master/slaves with I2C
    By willy in forum Master Synchronous Serial Port (MSSP) module / 3-wire SPI / I2C / Master and Slave modes
    Replies: 11
    Last Post: 1st February 2016, 23:58
  2. SPI and multiple slaves + protection
    By Hans Chr in forum The Lounge
    Replies: 4
    Last Post: 7th October 2008, 22:05
  3. Trying to communicate with a DS1802
    By Pairair in forum Proton Plus Compiler v3
    Replies: 1
    Last Post: 29th March 2006, 21:22
  4. How to communicate with a PC via USB
    By CPW1992 in forum Proton Plus Compiler v3
    Replies: 21
    Last Post: 23rd March 2006, 01:55
  5. How to communicate with a PIR
    By Tim in forum The Lounge
    Replies: 13
    Last Post: 18th December 2005, 18:15

Posting Permissions

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