ESP8266 as master communicate with 2 slaves


Today 13:46
Forum: Proton Plus Compiler v3
Starter: shantanu@india
Views: 0
Replies: 12
Today 12:19
Forum: Absolute Beginners Section
Starter: moonshadow
Views: 0
Replies: 2
Yesterday 19:01
Forum: The Lounge
Starter: RGV250
Views: 0
Replies: 1
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member basparky's Avatar
    Join Date
    Oct 2006
    Posts
    212
    Thumbs Up
    Received: 14
    Given: 15
    Total Downloaded
    665.45 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. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #2
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,005
    Thumbs Up
    Received: 186
    Given: 169
    Total Downloaded
    3.99 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.

  4. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  5. #3
    Member basparky's Avatar
    Join Date
    Oct 2006
    Posts
    212
    Thumbs Up
    Received: 14
    Given: 15
    Total Downloaded
    665.45 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?

  6. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  7. #4
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,005
    Thumbs Up
    Received: 186
    Given: 169
    Total Downloaded
    3.99 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.

  8. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  9. #5
    Member basparky's Avatar
    Join Date
    Oct 2006
    Posts
    212
    Thumbs Up
    Received: 14
    Given: 15
    Total Downloaded
    665.45 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.

  10. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  11. #6
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,005
    Thumbs Up
    Received: 186
    Given: 169
    Total Downloaded
    3.99 GB

    0 Not allowed!

    Default Re: ESP8266 as master communicate with 2 slaves

    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.

  12. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

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, 22: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, 00:55
  5. How to communicate with a PIR
    By Tim in forum The Lounge
    Replies: 13
    Last Post: 18th December 2005, 17: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