# Ping360 returns None value

**URL:** <https://discuss.bluerobotics.com/t/ping360-returns-none-value/11849>\
**Category:** Ping Sonar Devices\
**Created:** [March 30, 2022, 6:13pm UTC](https://discuss.bluerobotics.com/t/ping360-returns-none-value/11849 "2022-03-30T18:13:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [March 31, 2022, 6:27pm UTC](https://discuss.bluerobotics.com/t/ping360-returns-none-value/11849/4 "2022-03-31T18:27:56Z")

</div>

> [@Ahmedakif](#):
>
> The code that i posted was from an earlier post and it send me through this forum by you (i suggest you correct that one as well)

This was the code from that post, which already has the relevant closing brace. I haven’t edited that since I wrote it, so presumably it was just a copying error 🙂

> [@Connecting Ping360 Sonar With Jetson Nano](https://discuss.bluerobotics.com/t/connecting-ping360-sonar-with-jetson-nano/10469/4):
>
> ```auto
> from brping import Ping360
> 
> # connect to and initialize device
> p = Ping360()
> p.connect_serial('/dev/ttyUSB0', 115200)
> print(f'{p.initialize() = }')
> 
> # set some settings
> print(p.set_number_of_samples(200))
> print(p.set_gain_setting(1))
> 
> # get some data, full revolution in steps of 10 gradians (9 degrees)
> for gradians in range(0, 400, 10):
> print(p.transmitAngle(gradians))
> 
> ```

> [@Ahmedakif](#):
>
> And i am positive that it is connected to /dev/ttyUSB0 i checked it with `lsusb` and also got some info via serial.What else can i do?

If you managed to get some info then perhaps the connection is fine? Again, did the initialisation work?

If the device isn’t connecting or initialising as expected, but you know that the port is correct, it may help to

- ensure you’re using a suitable power supply for the Ping360 (11-25V, \>5W capacity)
- update to the latest version of the library

> [@Connecting Ping360 Sonar With Jetson Nano](https://discuss.bluerobotics.com/t/connecting-ping360-sonar-with-jetson-nano/10469/4):
>
> `pip3 install --user bluerobotics-ping --upgrade`

- restart the Ping360
- unplug and re-plug the connection to the Jetson Nano
- restart the Jetson Nano

---

_[View the full topic](https://discuss.bluerobotics.com/t/ping360-returns-none-value/11849)._
