- Joined
- Nov 7, 2021
- Messages
- 25
- Reaction score
- 0
Oh thank you. So I just code the drone as if it were an Arduino? Also, I'm planning on using a lidar instead, which might cause more problems in coding.@ExcellentBadger you will need a library for your ultrasonic sensor that can be compiled for ESP32. A general approach can be found here: ESP32 with HC-SR04 Ultrasonic Sensor with Arduino IDE | Random Nerd Tutorials
LiDAR libraries will not help you, totally different technology and interfacing.
DFRobot's Mind+ eco system also contains the URM10 (SR04) ultrasonic sensor and a library supporting this, so I guess you have something like this?
You find a description for programming the RMTT using Mind+ here: RoboMaster TT - MindPlus wiki
The section "Coding manually" contains an example for the URM10 (SR04) sensor.
To be precise, you do not program the drone - instead you program the (ESP32 based) RMTT expansion module, which sends commands to the Tello via the serial USB connection.Oh thank you. So I just code the drone as if it were an Arduino? Also, I'm planning on using a lidar instead, which might cause more problems in coding.
Hi, I got the code down, the problem is with importing libraries. It gives me a tutorial on importing libraries, but it says that I need a config.json file: Mind+软件用户扩展库 - Mind+教程. Also, is there a way that I upload code to the drone without the use of the Mind+ App because my project right now uses image processing and machine learning in a different python file. It would be very difficult to juggle between the mind+ app code and the image processing code. Can I just code in Python as if I were uploading code to an ESP32? I need to use camera data and lidar data in real-time so it would be preferrable if there was no mind+ app in betweenTo be precise, you do not program the drone - instead you program the (ESP32 based) RMTT expansion module, which sends commands to the Tello via the serial USB connection.
Many C/C++ libraries you find for Arduino can also be compiled to run on ESP32. Typically you only have to adapt the numbers of the GPIO ports. You definitely should work through the MindPlus Wiki that I linked above! This should clarify most of your questions.
Regarding LiDAR: There is no general library for LiDARs. Almost every LiDAR manufacturer has different protocols and also the connection types vary (serial, I2C, SPI etc.). We had this discussion already here: How do I use the RMTT Expansion Kit for a LiDAR?
If you have a library that supports your LiDAR, programming is quite simple - for a single beam LiDAR not much different to what you would do also with the ultrasonic sensor. For measuring small distances, the RMTT module already comes with a ToF distance sensor, so in that case you do not even need any additional sensor.
We use essential cookies to make this site work, and optional cookies to enhance your experience.