Table of Contents

About

The Rolling Ball created by EYENIMAL is a toy for pets that moves around randomly and is meant to be chased. The insides show a simple de-centered motor driven by a single AA battery that makes the ball spin and roll around by throwing around its own weight. Even though EYENIMAL advertises the ball as being able to change direction in front of other objects, the rolling ball does not have any special mechanism in place to do that.

Essentially, the ball will end up colliding with objects and eventually randomly spin around and perhaps roll in a different direction. Nevertheless, the inside of the sphere is large enough to host a WeMoS D1 Mini with a LiPo battery that would allow switching the roll ball on or off.

Effectiveness and Potential Non-Technical Modifications

The device is simple, effective and definitely catches the attention of any pet. Young dogs and cats require a lot of attention and will be perfectly happy to eat, sleep and play all the time which can be overbearing for an owner. The rolling ball seems to catch a pet's attention at the very least.

However, there seem to be a few "aesthetic" or perhaps "psychological" issues with the device. One of the characteristics is that the rolling ball is just black and white and seems a little boring even if it is not. Painting the ball or replacing the hemispheres with more colorful or "sparkly" counterparts might prove more effective. One simple solution perhaps is to wrap up the ball in aluminum foil to make the ball more "interesting". Another would perhaps be to roll the ball in some adhesive and put glitter allover it.

Another problem, yet inherent of the sturdy design, is that the plastic shell is "hard to grip" - even by clawing or scratching. Perhaps a solution is to wrap the ball in some woolen pattern design (like old socks) since it would provide more grip and would perhaps give the pet the satisfaction of properly digging its claws inside it.

Requirements

The following components have been used for this project:

Block Diagram

Compared to other projects, the WeMoS is powered via its $3.3V$ input pin rather than the $5V$ input pin. The R1 relay will act in parallel to the mechanical switch of the rolling ball providing just an alternate way to switch on the device.

     +-----------+
           | 3.3V LiPo |
           +--+-----+--+
              |     |
              |     |
+-------------+-+   |
| WeMoS D1 Mini |   |
+-+-----------+-+   |
  | GPIO      | GND |
  |           +-----+
  |           | 
+-+-----------+-+
|    R1 Relay   |
+-----+----+----+               +--------------+
      |    |                    | Rolling Ball |
      |    |                    | AA Battery   |
      |    |                    |              |
      +-------------------------+ GND          |
      |    +--------------------+ +1.5V        |
      |    |                    |              |
+-----+----+----+               +--------------+
|  Rolling Ball |
|     Switch    |
+---------------+

Bringing it Together

The electronics are fastened to the axle in the middle with some 3M double-sided strong sticky tape. Alternatively, the various components could be glued using hot glue or, perhaps permanently, using some epoxy adhesive. Naturally, the problem is making sure that the sphere closes up properly and on various tries, the top hemisphere ended up blocking the motor mechanism - the issue was found to be the rolling ball switch that has the wiring very tightly packed.

The WeMoS was programmed using a boilerplate pin toggling template thereby exposing the GPIO pins via MQTT.

Node-Red Automation

The Node-Red automation is straight-forward:

Further Developments

The WeMoS D1 Mini could be replaced with an ESP32 and messages could be sent over BLE thereby increasing the battery life. The ESP32 seems to be suitably small in order to fit inside the roller ball and can also be powered by a $3.3V$ source.

One of the current caveats of this solution is that the ball must be opened and an USB cable connected to the charger inside in order to charge up the LiPo battery. In case manual control is not needed, then the locking switch could be removed altogether and a simple $3.5mm$ power jack fitted inside the hole at the top with leads drawn to the LiPo charger such that charging the battery would become a matter of lifting up the ball, connecting the power jack to the ball and the other end to an USB port.

Perhaps a more complicated solution that would offer even more convenience would be to split the top hemisphere in two and then replace each half-hemisphere with some conductive material. A corresponding holding hole could then be designed such that the rolling ball could just simply be placed inside in order to charge.