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.
https://github.com/Vidicon/camsense-X1
https://qiita.com/junp007/items/819aced4d48efd97c79f
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.
This time, we will connect using a USB-Serial adapter. 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/
Connect Baud rate: 115200 The display contents of TeraTerm are like this. When you see this, you think it's broken ...
"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.
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:
There is a little suspicious behavior, but it worked. I'm satisfied with this for 2000 yen.
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/
I chose M2.5X20.
Now it sells for less than $ 6. Actually it is 1000 yen because it costs shipping. What is this price? I'm in great trouble ...
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