Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Benewake GUI works only in Serial Mode. If you sent a command to change to I2C mode, and the command was successful, then you can only communicate in I2C mode. An Arduino Pro Mini or Mega 2560 is not expensive and has an I2C interface. If you get an Arduino, I can help you. We will make this work. #21

Open
segevoved opened this issue Jul 13, 2022 · 5 comments

Comments

@segevoved
Copy link

The Benewake GUI works only in Serial Mode. If you sent a command to change to I2C mode, and the command was successful, then you can only communicate in I2C mode. An Arduino Pro Mini or Mega 2560 is not expensive and has an I2C interface. If you get an Arduino, I can help you. We will make this work.

Originally posted by @budryerson in #11 (comment)

@segevoved
Copy link
Author

Hey, @budryerson I have the exact same problem, I have an Arduino UNO can you please walk me through it? it would mean the world to me!

@budryerson
Copy link
Owner

Sure. It's easy. But you didn't tell me which Benewake device you are trying to use. And you didn't tell me what you've tried so far. Let me know and we'll fix this.

@segevoved
Copy link
Author

Hey! I got the LIDARS to work. I'm using 4 TFluna, and 1 TF03 (down)
I have a cube orange and I try to set 5 lidars to work with it. (front, back, left, right, down).

At the start, I tried using Terrabae M15 but for some reason, that configuration only seemed to be working on cube black. (I think there is a problem with the H7 architecture and I2C).

Anyway, I ended up trying to use TFluna and TFmini that I had lying around.
And now, I only got the TFluna to work using an Arduino UNO to check their addresses.
Honestly, I prefer using the TFmini since it has a longer range (12m). If you could help me with getting it to work that would be amazing.
And another thing. I got the UART version of the TF03 and except for TX-RX, it has CAN-H and CAN-L cables.
Can I use that to connect to the CAN2 port? all other ports are occupied at the moment. I'm not sure what to configure to get it to work in parallel with the other lidars (right, left, front, back).

@segevoved
Copy link
Author

Hey, an update. I managed to make it work, used an Arduino to read the addresses of the TFluna, and even the TF03 works in the CAN port.
And now, I have a new problem.

I want the drone to stop in AUTO mode (Guided, Mission) but when I'm sending it on a mission or telling it to go to a point on the map it won't listen to the rangefinders, If there's a wall it will just crash.

How can I make it stop when it recognises an object in AUTO mode?

@budryerson
Copy link
Owner

budryerson commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants