Raspberry Pi 3 using Build HAT
ฝัง
- เผยแพร่เมื่อ 28 พ.ย. 2024
- Build Hat is a motor and sensor control board developed by the Raspberry Pi Foundation in partnership with Lego. It works with Technic motors and sensors from the more recent Lego Technic kits like Spike.
I purchased a robot kit from Waveshare for Raspberry Pi 4 and it included both the Build Hat and four Lego Medium Motors to build the BuildMecar rover.
The only software I could get to work was the Raspberian OS mage supplied by Waveshare that included the Build Hat drivers and demo python software.
My initial aim was to upgrade everything to Raspberry Pi Model 5 and Bookworm but this did not work. While I could install the Build HAT driver and I could not install the Build Hat Python library - the documentation from the Raspberry Pi foundation is both obscure and obsolete.
So my only alternative was to use the original Waveshare OS image and this is based on a very old Raspberry OS image: Buster and it only worked on Raspberry Pi Model 3 or Model 4.
My next goal was to add my own sensors to complement Build Hat and I choose the MPU6050 combined accelerometer and gyro. I wanted everything to work on both python and node-red platforms. The MPU6050 was connected to the Raspberry Pi GPIO i2c pins using a Grove cable with Dupont female connectors. I also tried SenseHat but this did not work. I was able to get the python programs to work as nodes in a node-red flow.
I did get this MPU6050 to work with Build Hat and this is included in the demo. The Waveshare python libraries for Build Hat also worked.
Overall I am disappointed in Build Hat. I could not get Build Hat to work with its python library in a more recent Raspberry Pi OS. Build Hat has very few ports and the documentation from the Raspberry Pi Foundation is poor. While it can support motors and sensors there are only 4 ports available.
Waveshare have ignored my requests to update their on-line installation script yet they continue to offer their kit on sale with software options that are now very old. Before you purchase check out not just the hardware but the software support.
I am now looking at other platforms for Raspberry Pi rover and so far the only one I like is the Yahboom MicroROS-Pi5 ROS2 Robot Car. It uses Raspberry Pi Model 5 and works under ROS2 (Real Time Operating System)
Ref:
Raspberry Pi Build HAT ( www.raspberryp... )
install python library for Build Hat ( datasheets.ras... )
Waveshare BuildMecar (www.waveshare.... )
node-red-contrib-python-function ( flows.nodered.... )
Yahboom MicroROS-Pi5 ROS2 Robot Car ( category.yahbo... )
Hello sir, I enjoyed your video. I was able to get the build hat working with with the pi4 with no issues - mind you I used 'creator academies' video for support, rather than official documentations. I too found the 4 port design limiting however its usually enough for a basic rover. I just received a Kickstarter project the 'EVN alpha' - its somewhat of a deviation from the Lego EV3. I think you would enjoy it. Thank you for your video.
What is the mind map tool you are using?
Mindmanager ( www.mindmanager.com/en/ ) I have being using this for 30 years and I use it to document projects