---
description: One Micro:bit Connected via USB and one on Battery Pack
---

# Try it with Gravity?

```
Sender Microbit:
Start
    show "Gravity Sender"
    set radio group to #

Forever
    radio send number acceleration strength
    //strength combines x, y and z dimensions into one value
```

Can we collect the data and "see it" on the computer? The serial write value block can send pieces of data back to the  computer (if it is connected through a  USB)&#x20;

```
Receiver Micro:bit
Start
    Gravity Receiver
    set radio group  to #

on radio received number
    serial write value "gravity" = receivedNumber
    
```

![This block sends two pieces of information back to  the computer. The data label  "gravity" and the value  received ](https://2507214486-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpUPSf3tCxHePJxNjfg%2F-Lt_mMS7O33gY-KOoS-T%2F-Lt_nfadHPeY8WlSnAoo%2Fimage.png?alt=media\&token=3b9172df-f945-40ba-88e5-594cc856d447)

With the micro:bit code downloaded from the MakeCode app to the micro:bit and the USB cable connected it will start receiving data from the first micro:bit. Under the simulator in the app a purple outlined button shows up **Show data Device**.\


![Under the Assimilated Micro:bit](https://2507214486-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpUPSf3tCxHePJxNjfg%2F-Lt_mMS7O33gY-KOoS-T%2F-Lt_nzSFdyLXA7spajh0%2Fimage.png?alt=media\&token=5228a447-8be1-46e5-8e3c-01a479820aff)

![](https://2507214486-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpUPSf3tCxHePJxNjfg%2F-Lt_mMS7O33gY-KOoS-T%2F-Lt_o96xHEk6Jq731qCE%2Fimage.png?alt=media\&token=a230a4cf-55c7-4c69-8a9f-f4dc7080628d)

#### So **CAREFULLY toss and catch your micro:bit and the analyze the data**

You should see a download button in the top right hand corner of the box - this will allow you to download and save the last 20 seconds of recorded data as a CSV file.

![A CSV file records the numbers or data but does not have any formatting. It can be used by Excel or Numbers of Sheets](https://2507214486-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpUPSf3tCxHePJxNjfg%2F-Lt_oGM-H1fG5oS9Y5rF%2F-Lt_pDq4k7fclzgkXgEQ%2Fimage.png?alt=media\&token=67ae1a41-f64d-4d39-a48c-48d84e482f60)

The CSV file may open directly into a spreadsheet. If it does NOT then find your downloads file and you  should see a file titled `data.csv`&#x20;
