Today I started with the developing of a Raspberry Pi powered security robot with the Raspberry Pi Sense HAT. The HAT is ideal for small do it yourself robot projects. The Sense HAT is equipped with a LED matrix and a teeny joystick. With 6 sensors on top of the board you could measure nearly everything you need to control a robot and even more.
- air pressure sensor
- temperature sensor
- humidity sensor
But after a few minutes playing around and mounting the HAT on top of my Raspberry Pi I got the first big problem. With mounting the board on top of the GPIO pins all of them are blocked by the HAT. But I need a least 6 GPIO pins to control my motor driver. Maybe I could solder some additional pins on top of the module but I am not sure if this is the ideal way to solve the problem. I need to inform myself a little bit more and to think about it.
E-Book – build a remote controlled robot with a Raspberry Pi
With this e-book you can create step by step, your unique remote controlled car. The interaction of hardware, electronics and software are explained with the help of concrete examples. This makes it easy to understand the more complex parts of the project.
The e-book is available as PDF.
The e-book costs 14.90 USD inkl. 19% VAT. (Germany).
When ordering from other countries the gross price may vary since then other VAT rates apply.
As you see in the picture all GPIO pins are blocked by the Sense HAT. I thought I could use female to male jumper cables to connect the motor driver to HAT pins but it is not possible to plug them into the HAT.
The next picture shows the Sense Hat with the opened GPIO header.
Solution – female to male jumper wires
Okay the solution I found are female to male jumper wires. With such wires I connected the HAT to my Raspberry Pi 2 Model B as you see in the next picture. I have to optimize the setup but it works for now.
Schematic drawing and wiring
The schematic drawing of the Sense HAT are available as a PDF here Sense-HAT-V1_0.pdf from the www.raspberrypi.org homepage.
The figure below shows a small section from the schematic drawing. It shows which GPIO pins are needed to manually connect the HAT with jumper wires too you’re Raspberry Pi.
As you see in the picture you need the following GPIO pins:
2, 3, 10, 9, 11, ID_SD, 23, 24, 25, 8, ID_SC and the pins 2, 4 as +5V. Do not forget so set a least one GND pin as well.
I had to play a little bit with the connections but at the end everything worked fine.
Summary Sense HAT
A Raspberry Pi with a mounted Sense HAT could do everything from monitoring movements of your robot to controlling and logging the air pressure or the temperature. But with the RaPi CPU beneath the Sense Hat the temperature will be not correct. I need to test this in the future.
The robot is using the accelerometer and gyroscope to monitor forces and motion. More information about the Raspberry Pi Sense HAT is available here on the Raspberry Pi homepage Sense Hat