Close
0%
0%

Tobi-P, the rabbit robot

A cute, cubic and curious companion with a tilt camera. And a carrot.

Similar projects worth following
Tobi-P ("Pi-bot" read backwards) is a fully open-source robotic companion that brings smiles and a happy mood at home.

At its core is a Raspberry Pi 1 running ROS, with a customized Android app for teleoperation.
It also uses popular and widely available components, making it easy to build, with a very reasonable budget.

The body is made of 3D printed parts that need no support to print. It has been designed in Blender so that the assembly requires no screw or glue.

It is white on the outside, orange on the inside.

*** Hackaday Prize 2021 entry ***

Anatomy

  1. Muscles:  Electronics
  2. Heart:  Power
  3. Brain:  Software
  4. Face:  Aesthetics
  5. Body:

v1.0

spreadsheet - 18.21 kB - 09/24/2021 at 10:02

Download

View all 18 components

  • Over-The-hAirs update - v1.0

    jdelbe09/27/2021 at 09:05 0 comments

                                             Tobi-P is undergoing the upgrade

    Our little friend has received a complete software update, the v1.0 has been tagged for this occasion!

    It is now running ROS Noetic, on the latest Raspberry Pi OS Lite. I have also increased the swap a bit, it seems to help the poor Pi 1 when under a lot of stress.
    The control application has also been polished, it now plays well with the latest Android Studio, and the controls feel smoother than ever. There is now a proper signed release apk in the repo for convenience, feel free to examine the certificate ;)

    I will try to make a video soon to celebrate the milestone.

    Everything went well, Tobi-P has still its priorities figured out

  • 3D Printing

    jdelbe09/27/2021 at 07:48 0 comments

    All the 3D printing details can be found on the dedicated Thingiverse page.


    The slicer software is the latest PrusaSlicer (2.3 at the time of writing), combined with the latest firmware for the MK3 (3.9).

    And now that all the parts have been printed, we can see what worked really well in the design and what did not:

    • The Good

    I have definitely over-engineered the internal parts. Being the first time as well that I was using PETG for its mechanical properties, I wanted to make sure that it would be robust enough for the payload. So for the first parts, I started adding an extra perimeter, and even switched to a honeycomb infill pattern with increased density... Well, those are VERY robust!

    There are also enough holes and fastening possibilities, in case a "fix" or add-on is needed.

    For the parts that have to be printed identically multiple times, I realized that versioning is - as for software - almost mandatory. Actually printing the version number onto the part is a very good idea, otherwise similar pieces that have only very minor differences between them (tolerance for instance) cannot be distinguished anymore.

    Another cautious trick was to start printing the outer case from the back, so that potential early mistakes may not disturb the general look too much. I am glad I did that, this way I could correct some of the flaws for the sides and the front.

    • The Average

    Though the split of the cube in frames and panels worked well to achieve smooth edges without support, this has required a lot of work. The panels themselves do not always fit very well, and being thin and white, they turn out to be more transparent than expected. But at least they are very light on filament usage.

    One of the very new features of PrusaSlicer that I have tried is Ironing. It has potential, but it did not really pay off in this case.

    • The Bad

    I have made a mistake by designing the snap-fits between the back panel and frame. Though I knew already about the importance of the build direction for a cantilever snap-fit joint, I thought it would not matter too much since there is almost no force applied to this area. I was wrong.

    Some of these snap-fits did not even print correctly (very sensible to stringing and to Z-layer shifts, because there are far apart and very thin), some broke right away the first time the panel was fitted into the frame. Luckily I had put enough (too many) of them in the design, so that it still fits and holds well enough.

    I have learnt from that experience and had the occasion to rethink the snap-fits for the front part, with a satisfying modular result. It might come in handy for other projects.


    Overall I'm really happy that I didn't have to reprint any part, and didn't have any major failure. I might rework the back or improve smaller things there and there, but I don't need to. This a real success for a first project done like this.

    The sum of all the gcodes for Tobi-P says that there has been 5000 minutes of printing time so far, which is about 83 hours.


  • Designing with Blender

    jdelbe09/27/2021 at 07:46 0 comments

    This ended up being the longest part of the project, and by far. It is also a proof that with perseverance, one can achieve a lot, even with a rather unfitting tool. I definitely wanted to use Blender though, for its amazing UI (since version 2.8) and rendering capabilities (this is also important).

    The case design came unforeseen, long after the components where chosen and the first prototype ready. I thus decided to use this opportunity to do something new and quite ambitious: designing a pleasant 3d-printable case entirely tailored for the existing components, with no reference or prior experience, and all the while still learning to use the software.

    On top of it, I had additional objectives:

    • using all the types of fastening and assembly techniques I could think of
    • using no support to print the parts
    • reducing material usage whenever possible, while retaining enough robustness (I did not go as far as using structure optimization software though. It would have to be FOSS anyway)
    • thinking in 3D, experimenting with forms, volumes, giving my creativity no limit (at first)
    • avoid potential print failures as much as possible, by considering the physics of the 3d printer

    And the following challenges came as well during the process:

    • using the new sculpt mode to draw the paws and muzzle
    • using the new collections and exact booleans for an almost non-destructive workflow
    • exporting valid .stl files for the slicer software, rescaling meshes and making them manifold
    Working with booleans can be cumbersome, but it preserves the meshes

    In the end I went for a kind of two-layer solution, one inner structure to hold all the components, and one outer cover for the overall shape and look. This way it is a bit the best of both worlds, and it allows for interesting possibilities: two colours, different densities, objects that are easy to print versus smooth looking ones, etc.

  • Software

    jdelbe09/27/2021 at 07:44 0 comments

    Free and Open-Source Software is used as much as possible throughout the project. On the robot of course, but also for the tools around it: the source code is written on Linux and hosted on GitLab, the case is designed with Blender, sliced with PrusaSlicer, and a Fairphone running /e/OS is used for the Android app.

    Component selection

    1. Raspbian (Raspberry Pi OS) Lite

    The rock-solid OS for the Pi, based on Debian.

    2. ROS 1


    The reference framework for roboticists. I actually wanted to ramp up on ROS 2, however this proved to be way more complex than I expected (at least a couple of years ago). So I stuck to the traditional one, ROS 2 will have to wait for another time.

    An option would have been to cross-compile the latest version from sources, but that seemed too tedious. And in spite of being quite slow, the direct installation on the target from the available arm packages was sufficient in the end.

    3. raspicam_node

    A dedicated ROS 1 node for the Raspberry Pi camera module, which worked out of the box.

    4. pi-blaster

    This excellent tool enables using hardware PWM on the desired GPIO pins of the Pi, and is thus very efficient.

    Tobi software

    The complete code running on Tobi-P can be found in the dedicated GitLab repository (see the README for instructions). In particular there is an installation script that takes care of almost everything. It even has a nice little spinner displayed while waiting for completion.

    The wireless network is provided by an Access Point running on the robot, therefore there is no need for an existing Wifi connection. Stand-alone usage is really practical, it means that Tobi-P can for instance run outdoors. He is also - by the way - the ROS master. Obviously.

    The nodes are written in C++, and there are a couple of helper files (launch, machine) for flexible configuration. There is a launch file that enables controlling a turtlesim simultaneously, which is always helpful for quick network tests when dealing with multiple machines.

    The min and max angles of the servomotor have been limited by software, in order to account for the connecting rods behind the face, that physically reduce the rotation range. The servo angle is also always reset when the application starts, meaning that the camera/face comes back to its initial vertical position. This way it matches the behaviour of the tilt slider on the Android application.

    Android application - ROS Control 🥕

    The ROS Control fork for Tobi-P contains everything needed to generate the apk from Android Studio (be sure to carefully follow the instructions in the README).

    While most of the elements I had in mind for an app were already present in the upstream repo, I still wanted to tailor it for this use case, hence the fork. First I wanted a lighter version, so I stripped down the interface and removed the features not required (mapping, HUD, other control modes and advanced options). Then to tilt the camera, a vertical slider was missing. This was solved by using a seekBar from the SDK.

    The application now directly starts in the camera view mode with the desired layout for the controls. It also handles portrait and landscape orientations. The new ROS parameters and topic names can as well be changed directly in the options.

    When looking down with the camera, the front paws can be seen, the tip of the ears when looking up.

  • Electronics

    jdelbe09/27/2021 at 07:41 0 comments

    Component selection

    1. Raspberry Pi

    This project started because I absolutely wanted to make use of something I had lying around for some time: a Raspberry Pi 1 Model B (with a whopping 512MB of RAM !!). This was great a few years ago, though it lacked wireless connectivity.
    Nowadays a Pi Zero W would probably replace it perfectly and make the whole build much smaller.

    2. Micro motors + driver

    Pololu has an extended choice of micro brushed DC motors. I had determined that I wanted the 100:1 version, meaning enough torque to carry a real payload (speed was not so much a priority). I even took the extended shaft option for encoders, since I wanted room for potential evolution.

    The DRV8835 page has all the information needed. It is perfect for the selected motors and supports a simple differential drive mode that I wanted. It also states "built-in protection against reverse-voltage, under-voltage, over-current, and over-temperature", so I did not need to add important safety features myself.

    3. Power Bank

    To power everything up, I opted for a convenient and standard USB power bank. I was able to find one with dual output: One is rated 2.1A max, plenty enough for the Raspberry Pi, the other 2.4A. This covers exactly the continuous 2 x 1.2A per channel that the motor driver can deliver. It does not cover the 2 x 1.5A peak it can reach, but in practice this has been good enough.

    4. Camera + micro servomotor

    While deciding to get a an embedded camera for the robot, I did not know exactly what I would do with it (video streaming? image processing?). Having no quality-vs-speed criteria yet, and because I definitely wanted good software compatibility from the start, the official camera module from the Raspberry Pi Foundation seemed like the natural choice.

    The last component is a simple and standard 5V-compatible analog micro servo, directly power by the Raspberry Pi. It provides the tilt for the camera, thus avoiding any blind spot when teleoperating.

    Wiring

    1. Preparation


    I try to avoid soldering whenever possible, hence making Dupont connectors and crimping pliers my first choice.

    This GPIO pinout website is very complete when it comes to the Raspberry Pi, and the truth table and schematics of the motor driver are on its product page.

    2. Putting it all together

    The complete wiring diagram:

    And the result in action:

  • Joinery techniques

    jdelbe09/24/2021 at 20:18 0 comments

    Working without prior knowledge gave me an opportunity for (almost) boundless experimentation while designing the case. It was a great playground to learn and see for myself what I could do with 3D printed parts, in order - among other things - to not use additional screws or glue.

    This was achieved by using some of the joinery techniques I knew, as well as a few others that are a bit more exotic. Some of them come traditionally from the woodworking world, whereas some are specific to plastic, or even exclusive to 3D printing.

    Butt joint

    The most basic possible joint, where two pieces are put in contact, only connected by two flat surfaces. Here for instance between the white back frame and orange base back.

    Lap joint

    This is main joint used for the panels. Their edges are slightly overlapping the frame parts.

    Box joint

    A variation of the box joint is here used to interlock the orange axle and the white front frame.

    Dovetail joint

    By far the form that I have used the most in Tobi-P, especially for inner structure, as it is very solid.
    Some are quite lose, some tight, and some make for a sliding joint which is later constrained, when a subsequent piece blocks the remaining degree a freedom.

    Dowel pin

    A common and fairly easy one to make, where a smaller piece is inserted inside others. It is very practical to reinforce an existing joint for instance.

    Gutter joint (cam lock?)

    I am unsure about the name of this one, but the idea is there.
    I have used this for the top side frame, where one end is more or less cylindrical, and is inserted into the front frame. A 90° rotation then prevents further translation. The rotation itself is later on stopped when the other end is fitted in the back frame.

    Press-Fit / Mortise and tenon joint

    One of the obvious choices when dealing with plastic, thanks to its elasticity. Here the difference between press-fit and mortise joint is mostly a matter of tolerance and clearance between the parts.

    Snap-Fit joint

    This the typical and emblematic plastic joint. I have used cantilever snap-fit connections only for the outer case, where space was more limited, and robustness not so much a concern.

    Print-in-Place

    And last but not least, I had to try the print-in-place concept. This is not really a joint type per se, but it also does bring two or more pieces together. This techniques - specific to 3d printing - allows embedding one piece (or part of it) into another one during the printing process. This results in a compound piece, which potentially has moving parts, but whose individual components cannot be de-assembled without breaking it.
    I have used that to tie the back panel and back door together, where the hinge pins are embedded in the panel during printing. The created door does rotate (with friction), and it cannot be separated from the panel.

    In the end this turned out really well for a first try! I will definitely keep that trick in mind for future projects.

  • Powering the rabbit

    jdelbe09/08/2021 at 20:38 0 comments

    Here is how the power bank can easily be recharged or swapped.

    Tobi-P is being fed...
    ... transforming it into a disco bunny at night !

  • Entering the 2021 Hackaday Prize

    jdelbe08/30/2021 at 10:11 0 comments

    This is my first public project ever, and the first robot I am building from A to Z.

    Unlike so many other robots on this website, Tobi-P is not extremely complicated, technically speaking. There is no novel algorithm or some crazy optimization going on here. But it does look different, and is working great for its intended purpose (not to mention that using Blender as a CAD software is just a gigantic hack in itself).

    And this is why Tobi-P fits so well into this year's challenge "Redefine Robots". I have literally had to redefine what for a robot it was going to be.

    To give a bit of background, this project actually started over 5 years ago.
    It was initially supposed to be yet another cheap robotic platform for experimentation, without real purpose or added value. The prototype would have gone through several more iterations, getting rotary encoders, then maybe a LiDAR, and so forth. It then stalled for years, before the COVID-19 crisis came in, and with it the first lock-down.

    This is where the focus changed. Suddenly with much more time to spend at home, the project gained momentum again. But it was not anymore about learning some tech stuff (not only at least). It had to become something more. Something tangible would be really helpful in this particular context. Something that one can relate to, maybe almost like a pet substitute?

    "It must be cute!" I was also told. And so the journey to design a friendly companion had begun, with a new emphasis on aesthetics.

  • The importance of Aesthetics

    jdelbe08/29/2021 at 21:53 0 comments

    People who have seen Tobi-P so far reacted at first with surprise, then with enthusiasm. They are smiling, some even laughing. The question then often comes up: “And what can the robot actually do now? What is it good for? What is its function?"

    The simple answer to this is: to be friendly. Tobi-P's job is to put a smile on people's faces. It is neither a pet nor a toy, but it is still an excellent companion in everyday life, especially when one has to stay at home for longer periods of time.

    The secret is not in Tobi-P's technology, but in its appearance. In this way, it attracts interest, detracts from worries and spreads a good mood. The perfect example for this category of robots is the fluffy Paro, used for therapeutic purposes.

    A key factor in the design of Tobi-P is that it should look cute but harmless. There should be nothing creepy about it, an effect (the uncanny valley) that can occur with robots that imitate nature too perfectly. This does not happen with Tobi-P because it is still clearly recognizable as an artificial being. And it is also quickly identified as a bunny: only a few of its multiple accessories are needed to make it clear.

    Through his (googly) eyes, Tobi-P can create an emotional bond in seconds, because people automatically react to beings that look at them. They project their own emotions onto the robot, give it a character, and thus almost bring it to life.

    Many people tend to associate technology and robotics with coldness and functionality. Tobi-P is also technology, but one that awakens warmth and joy and evokes positive emotions. It represents an easy and alternative way to connect with robotics at home.

  • Welcome, Tobi-P !

    jdelbe08/29/2021 at 13:06 0 comments

    After a hiccup during the assembly, the little white companion is well, and ready for this world!

    Robot surgery in progress
    Newbie error: plugging the ribbon cable for the camera module the wrong way around

    It is now running (rolling, to be precise) all over the place, and has already made its first encounter.

    It even has a proper certificate, with a QRabbit code, to easily share this page!


    And here the video of the complete process:

View all 13 project logs

Enjoy this project?

Share

Discussions

Joseph M. Harwood wrote 09/15/2021 at 09:26 point

Tobi-P is an FPV robotic companion that is completely open-source. A Raspberry Pi 1 running ROS is at its heart, with a custom Android app for teleoperation. It also makes use of common and readily available components, making it simple to construct and affordable. Hope they upgrade it for more features like playing top monster hunter world weapons and getting some crime fighting games are better than ever.

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates