# Radio communication to send data from more than 2 MIcro:Bits

**URL:** <https://forum.makecode.com/t/radio-communication-to-send-data-from-more-than-2-micro-bits/19437>\
**Category:** micro:bit\
**Created:** [April 26, 2023, 5:52pm UTC](https://forum.makecode.com/t/radio-communication-to-send-data-from-more-than-2-micro-bits/19437 "2023-04-26T17:52:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![themrkitchen](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@themrkitchen](https://forum.makecode.com/u/themrkitchen)\
**Post date:** [April 26, 2023, 5:52pm UTC](https://forum.makecode.com/t/radio-communication-to-send-data-from-more-than-2-micro-bits/19437/1 "2023-04-26T17:52:16Z")

</div>

I am trying to build Micro:bits to send Light sensor data to one central M:B for data logging. I can use the radio to send the data between 2 M:Bs but was wondering how to have 5 different Micro:bits send the data to one central, which then logs all the data. Not sure how to differentiate the incoming information.  
Thanks!

---

<div class="post-metadata">

**Author:** ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)\
**Post date:** [April 27, 2023, 4:40pm UTC](https://forum.makecode.com/t/radio-communication-to-send-data-from-more-than-2-micro-bits/19437/2 "2023-04-27T16:40:00Z")

</div>

Hi @themrkitchen ,

You can use the radio `send value (key) = (value) ` blocks in each sender. The “key” part would correspond to the column you want in your data log for the value. For example, if you had multiple microbits transmitting temperature, one may sent `t1` for the key, another would sent `t2`, etc.

The corresponding `on radio received (name) (value)` block on the logger (reciever) would add the name and value to the log.

Here’s an example of a sender: [https://makecode.microbit.org/\_25iUWvhXsUKX](https://makecode.microbit.org/_25iUWvhXsUKX)

- It sends temperature to be logged in column “t1” every 1 minute. It simulates a second microbit sending a second temperature to be logged in the “t2” column whenever button A is pressed.

And the receiver that saves them to the log: [https://makecode.microbit.org/\_X8vA3DLJ35uJ](https://makecode.microbit.org/_X8vA3DLJ35uJ)

- Saves all the incoming data to the log file. A+B will clear the log. Shows incoming data with a flash on the screen.

You can get some sense of how it works by opening one in each panel of the multi-editor: [https://makecode.com/multi#](https://makecode.com/multi#)

---

<div class="post-metadata">

**Author:** ![themrkitchen](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@themrkitchen](https://forum.makecode.com/u/themrkitchen)\
**Post date:** [April 28, 2023, 4:37pm UTC](https://forum.makecode.com/t/radio-communication-to-send-data-from-more-than-2-micro-bits/19437/3 "2023-04-28T16:37:39Z")

</div>

Thank you!

I tried playing around some more with the Serial Write functions since I couldn’t quite get the data logger that you just shared.

> **[Solar Data Logger HUB](https://makecode.microbit.org/30817-25924-44043-52815)**
>
> Made with ❤️ in Microsoft MakeCode for micro:bit.

> <https://twitter.com/thekylekitchen/status/1651239161024618496?s=20>

---

<div class="post-metadata">

**Author:** ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)\
**Post date:** [April 28, 2023, 9:52pm UTC](https://forum.makecode.com/t/radio-communication-to-send-data-from-more-than-2-micro-bits/19437/4 "2023-04-28T21:52:32Z")

</div>

Oh, I see…The Data Logger blocks only work with the micro:bit v2. It looks like you’ve got v1’s.

I’m glad you were able to find a solution! Thanks for sharing!
