-
Next question, actually 2;-) At this point have the components connected per the Remo schematic with diffbot packages installed on Pi4. 1.) After watching the video https://ros-mobile-robots.com/teensy-mcu/#base-controller we have PlatformIO open as shown and can easily upload base controller main.cpp. How do I now select any one of the other 3 .cpp files (test_adafruit_motoshield, test_encoders and test_adafruit_motor_controller) to build/upload to Teensy? Would be nice to upload and test Adafruit DC Motor (+ Stepper) FeatherWing without changing any wiring except move the USB cable from SBC to Work Station. 2.) Once Adafruit DC Motor (+ Stepper) FeatherWing is tested (it already is but standalone via Arduino Uno) how to tell ROS packages the hardware is Remo opposed to diffbot? Tried appending the launch commands with I have searched the docs (web too) and looked thru the files but afraid to make any 'experimental' changes as that typically ends with me starting over from scratch and asking for help anyway:-/ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I just fixed two of the tests ( The first test was working already. For me the wheels are spinning during the test. It is important that you connect power to the RPi as it will provide 3.3V to the i2c connection of the Adafruit motor shield. You can probably also provide power from the MCU (Arduino or Teensy, ...) but I haven't tested that. Anyway you do it you make sure this is not an issue, otherwise the communication between MCU and motor driver won't work. The following figure shows the i2c hub in blue which is connected (indirectly through the bread board) to the 3.3V of the RPi:
roslaunch diffbot_bringup bringup_with_laser.launch model:=remo This will bring up all the hardware including the laser. Don't worry about the IMU error message, it is not yet implemented but the main algorithms will work anyway using only the encoders for odometry/localization. Then, on your work PC you can launch SLAM using: roslaunch diffbot_slam diffbot_slam.launch For this command no Finally, to steer the robot around for mapping your environment, you can use the keyboard teleop bringup launch file on your work PC: roslaunch diffbot_bringup keyboard_teleop.launch |
Beta Was this translation helpful? Give feedback.
I just fixed two of the tests (
test_encoders
andtest_adafruit_motor_controller
) so please pull those latest changes.The first test was working already. For me the wheels are spinning during the test. It is important that you connect power to the RPi as it will provide 3.3V to the i2c connection of the Adafruit motor shield. You can probably also provide power from the MCU (Arduino or Teensy, ...) but I haven't tested that. Anyway you do it you make sure this is not an issue, otherwise the communication between MCU and motor drive…