Robo HAT MM1

An open source robotics and automation controller for Raspberry Pi.

Limited items in stock

View Purchasing Options
May 06, 2019

Project update 7 of 29

Adafruit Support, Software Options, and Power Testing

Our campaign started one week ago, and we’ve already gathered 20% of our goal. Thank you for all your support!

This week we have been working hard on software. Read on for more details, highlights, and special features of the Robo HAT MM1, plus answers to some questions we have been receiving.

Software Update

The biggest software news of last week is that all our Bootloader, CircuitPython, and SeeSaw firmware are now included in the official Adafruit Repositories on GitHub! Thank you Adafruit for including the boards, it is great to have their support!

So far, we have a few different software libraries working. They are all mentioned on the campaign page. But why would you use one over another? To decide which software you should be using for your project, let’s explore the options…

CircuitPython

CircuitPython is a special programming language developed by Adafruit that is based on Python but focused purely on writing code for hardware. It has many thousands of libraries for different sensors. It makes programming motors, servos, sensors and other bits easy. CircuitPython doesn’t require any software on your computer - it runs on the board (Robo HAT MM1) which appears as a USB drive.

Typically, CircuitPython is what we expect our backers to be using. We have used it for reading data from the MPU9250 IMU sensor, then using that data to control a robot arm. We have also used it to read RC signals from an RC Remote and send those signals back to the Servos attached to the Robo HAT. There are many other example uses that you can come up with. Adafruit has many great tutorials on CircuitPython and how to use it.

SeeSaw

The other Adafruit library we are supporting is SeeSaw. SeeSaw runs on the Robo HAT and you can use a Raspberry Pi to make it do things using Python. All commands are sent from the Raspberry Pi to the Robo HAT over I2C. The typical use case for this would be that you have a robot or car that you only want to use the Robo HAT to control Servo Motors, Encoders, or other attached sensors over UART or SPI.

SeeSaw has a few limitations. It only supports some features of the processor on the board. We are looking at expanding what SeeSaw is able to do to support RC Input and controlling some logic of the board (like the power-on button). It is also well documented. Overall, it is a very useful library if you plan on using the Raspberry Pi and the Robo HAT together.

Arduino

Most people are familiar with the Arduino IDE. It has many millions of users around the world. We are supporting this as it allows the existing software developed for Arduino to run on the Robo HAT. This includes interfacing with GSM modules, reading GPS coordinates, and using any kits that you may already have.

Almost any hardware problem when using Arduino has already been solved by an online forum! This is the sort of support we wanted to maintain with the Robo HAT, and can by having Arduino’s programming environment available to backers.

Others - ArduPilot, PX4 and more

This week we have been attempting to build the software for ArduPilot. ArduPilot is an autonomous vehicle control package which supports drones, planes, copters, submarines and cars! We are getting closer to doing this successfully, and we hope that it will be working soon (within the next week or so).

Once ArduPilot is working, we will begin looking at PX4 support. If you are someone who thinks that the Robo HAT is a good fit for PX4, and understands how to make it work with the existing code - please do get in touch. Both of these communities have a large following and we want to include as many of them as possible.

Hardware Feature - Power

The Robo HAT MM1 has many special features that are unique from other Raspberry Pi HATs available today. In this feature, we explore Robo HAT MM1’s power features and how they are better than other HATs.

On-Board Power Supply

Included on the Robo HAT MM1 is a 5V Power Regulator that powers the Raspberry Pi and attached sensors.

We have done some load testing with the power supply on the Robo HAT and the results are very impressive! Using duel power sources (the main and auxiliary battery) gives the power rails a small performance boost when needed and also ensures that a drop in power supplied from one battery does not switch off the Raspberry Pi or board - very stable.

Table 1 - Normal Operation Results

VoltageMax CurrentOutput Voltage
Main Battery7.2V2.6A5.1V
Aux Battery4.2V0.4A5.0V
Combined3.0A5.0V

Table 2 - Stress Tests

VoltageMax CurrentOutput VoltageFailure Reason
Main Battery15V4.5A5.0VSafety - Fuse triggered after 15 seconds
Main Battery15V5.0A5.0VSafety - Fuse triggered after 1 second
Aux Battery4.2V1. A4.4VLow Power

The results show that the Robo HAT can maintain a constant 2.5A during normal operation using only the main battery without any issues. This is well within the required amount for the Raspberry Pi (2.0A under load) with lots of power to spare!

We recommend using two batteries to avoid ‘brown-outs’ or power dropouts. In our experience, some motors can draw a lot of current from the main battery. This results in a voltage drop that is very great and can cause the Raspberry Pi to shutdown. Our tests have shown that with two battery sources, it is nearly impossible under normal operation to have the Raspberry Pi shutdown.

Jetson Nano We received a question about powering the Jetson Nano with the Robo HAT. The Jetson Nano can operate with two different modes: Low Power and High Power. Low Power Mode needs 2 Amps @ 5 Volts, which is well within the power requirements of the Robo HAT. High Power Mode needs 4 Amps @ 5 Volts. It is not recommended to power the Jetson Nano using the Robo HAT, however, we know that it will work.

Powering the Jetson Nano with anything other than what is recommended by NVIDIA is at your own risk.

E-Stop Header

A feature on many self-driving vehicles is that they are all fitted with an emergency stop system (usually a button). For Robo HAT, we have included this feature directly on the board. It disables all power from the battery connected to the POWER IN terminal block. It can be connected through the E-STOP header.

This is very useful for cars and vehicles as an emergency cut-off to motors to prevent them from burning out. The E-STOP does not kill power to the on-board processor, so code is still able to be run and log errors.

Remember to share the project with your friends and others interested in robotics and education!


Sign up to receive future updates for Robo HAT MM1.

Subscribe to the Crowd Supply newsletter, highlighting the latest creators and projects