[PYTHON] Try using the $ 6 discount LiDAR (Camsense X1)

Is 2000 yen Lidar okay?

I found out that Lidar for 2,000 yen is on sale on Aliexpress, but I was too suspicious and hesitated to buy it. In such a place, I also bought it by looking at the comments of the person who bought it and the Qiita article.

・ Camsense-X1

https://github.com/Vidicon/camsense-X1

・ Try using cheap LiDAR (Camsense X1)

https://qiita.com/junp007/items/819aced4d48efd97c79f image.png

Did it arrive?

Where I bought 2 The left was an NG product and the right was a normal product. It is an NG product that says NG or does not have the Camsense X1 logo on the main unit. 比較するよー上 比較するよー背面 The NG product has a correction.

Make it work

This time, we will connect using a USB-Serial adapter. USB-Serial The power supply is 5V, and the USB-Serial connection destination is RX. (TX⇒RX) What to use at such times Test wire for through hole TT-200 (10 pieces) http://akizukidenshi.com/catalog/g/gC-09831/

Received contents of TeraTerm

Connect Baud rate: 115200 The display contents of TeraTerm are like this. When you see this, you think it's broken ... image.png

Let's make it usable

"Try using cheap LiDAR (Camsense X1)" https://qiita.com/junp007/items/819aced4d48efd97c79f It says, "It is a 36-byte packet containing 8 steps of distance and intensity data." In other words, it is useless as it is. Let's run it in Python as described.

Windowsで動かす・・・camsenseX1.py

All you need is python, pyserial and matplotlib. Install these. I'm using a standard Windows command prompt First, install pip, then Python, pyserial, and matplotlib. Finally, start this program. At the end of the command prompt, select the serial port

C:\Users\user\Desktop\camsenseX1.py COM2

If you do not specify the serial port, you will get this message: image.png

Start up safely

There is a little suspicious behavior, but it worked. Figure_1.png I'm satisfied with this for 2000 yen.

I'll wire

Let's use it with chitin. This is because I don't know the type of connector and I can't use it. Originally, an L-shaped pin header is required, but I bent it because it is not. People who buy it, such as here from Akizuki Denshi Pin header (L type) 1 x 6 (6P) http://akizukidenshi.com/catalog/g/gC-05336/

Soldering

はんだ付け

I'll put on my legs

I chose M2.5X20. 背面 スペーサー取り付け後

Now less than $ 6

Now it sells for less than $ 6. Actually it is 1000 yen because it costs shipping. image.png What is this price? I'm in great trouble ...

Not recommended

Looking up to this point, it seems like it will move. But honestly I can't recommend it The average person wouldn't want to buy a product that doesn't work I don't even like it. Therefore, for this product, which is highly likely to not move, it is important to think that one out of two should move.

I bought two at 2000 yen, but if it's $ 6, it's almost the same if I buy six ... If you are willing to try it on the assumption that it will not work ...

Recommended Posts

Try using the $ 6 discount LiDAR (Camsense X1)
Try using cheap LiDAR (Camsense X1)
Try using the Twitter API
Try using the Twitter API
Try using the PeeringDB 2.0 API
Try using the Python Cmd module
Try using the web application framework Flask
Try using the Kraken API in Python
Try using the HL band in order
Try using the camera with Python's OpenCV
Try cluster analysis using the K-means method
Try using docker-py
Try using cookiecutter
Try using PDFMiner
Try using the BitFlyer Ligntning API in Python
Python: Try using the UI on Pythonista 3 on iPad
Try using the Chinese morphological analysis engine jieba
Try using geopandas
Try using Selenium
Try using scipy
Try using the Python web framework Tornado Part 1
Try using LINE Notify for the time being
Try using pandas.DataFrame
Try using the collections module (ChainMap) of python3
Try using django-swiftbrowser
Try using matplotlib
Try using the Python web framework Tornado Part 2
Try using tf.metrics
Try using PyODE
Try using the DropBox Core API in Python
Try using E-Cell 4 on Windows 7 or Mac OS X
Try using the temperature sensor (LM75B) on the Raspberry Pi.
Try using virtualenv (virtualenvwrapper)
[Azure] Try using Azure Functions
Try using virtualenv now
Try using W & B
Try using Django templates.html
[Kaggle] Try using LGBM
Try using Python's feedparser.
Try using Python's Tkinter
Try using Tweepy [Python2.7]
Try using Pytorch's collate_fn
Try using the Python web framework Django (2) --Look at setting.py
Try a similar search for Image Search using the Python SDK [Search]
Try to model a multimodal distribution using the EM algorithm
For the time being, try using the docomo chat dialogue API