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

IMU on Waveshare board #36

Open
pitosalas opened this issue Dec 16, 2024 · 8 comments
Open

IMU on Waveshare board #36

pitosalas opened this issue Dec 16, 2024 · 8 comments

Comments

@pitosalas
Copy link

Microros is talking to ROS2 successfully. Now I am on to the IMU. Your instructions require me to do some soldering etc. I have a friend who can help me. But what stands in the way of relying on the IMU connection to the ESP32 that already exists on the board?

@hippo5329
Copy link
Owner

There is no need to do soldering on the waveshare board. The IMU is connected.

If you will have a robot computer such asrpi4/5 or mini pc/laptop on your robot, you should use serial transport and build with,
pio run -e gendrv -t upload

If you do not have a robot computer, you will use wifi transport and build with,
pio run -e gendrv_wifi -t upload

After the test_sensors works, you will need to update the motor/wheel parameters in the configuration file, config/custom/gendrv_config.h or gendrv_wifi_config.h .

@hippo5329
Copy link
Owner

Only if you use wifi transport and LD19 lidar, you will use lidar forwarder and need to add a jumper wire to the on board header to connect the lidar rx data to io4. This can be done with a short regular female to female Dupont cable, which is popular in arduino projects.

@pitosalas
Copy link
Author

I have a raspi 4 directly attached to the wave share 40pin.

Is the serial transport for the esp32<->Pi connection (i.e. for pio etc.)? I started by usbc to usba cable between the wave share and the raspi. Maybe I don't need that?

@hippo5329
Copy link
Owner

hippo5329 commented Dec 16, 2024

Only power and i2c are connected on the 40 pins header. You may check the schematic. There is no serial connection. You should connect the usb-c cable on wareshare board to pi. You will use serial transport and connect your lidar to pi directly.

@pitosalas
Copy link
Author

pitosalas commented Dec 16, 2024

Thanks. So linorobot_hardware/config/custom/gendrv.h takes the place of linorobot_hardware/config/config.h

What does gendrv mean?

@hippo5329
Copy link
Owner

gendrv is Waveshare General Driver for robot. :)
The imu driver, motor drivers and encoders pins on waveshare board are configured. You will need to change the motor/wheel parameters though.

@pitosalas
Copy link
Author

pitosalas commented Dec 16, 2024 via email

@hippo5329
Copy link
Owner

Yes. Please use gendrv instead of esp32 as platformio env. We use env to specify board. esp32 is generic.

https://github.com/hippo5329/linorobot2_hardware/wiki#configuration-examples

I would create a custom env/config for each robot build. You may use gendrv as a template and make a custom env/config later.

https://github.com/hippo5329/linorobot2_hardware/wiki#custom-configuration-file---recommended

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