Introduction: Of the Cats, by the Cats, for the Cats

One day my best friend noticed that she was not spending much time with her cats and she felts a bit sorry.

This is why I am starting this project.

Step 1: Parts

Picture of Parts

Arm ... You just prepare only the part

- WIZwiki-W7500

- HC-SR04(Ultrasonic)

- SG-90(Servomotor)

- Jumper cable

Step 2: Schematic

Picture of Schematic

Step 3: Source Code

mbed :mbed link

#include "mbed.h"<br>#include "stdlib.h"  //For rand function 
#include "Servo.h"
#include "HCSR04.h"
HCSR04 sensor(D11, D12); //(Trig Pin, Echo Pin) 
Servo myservo(D6);
int main()
  	int number = 0;
		long d = sensor.distance(1);
        	printf("d = %d\r\n",d);   
		myservo = 0.5;   
		if(d<=25)    //25cm
			number = rand()%11;  //0~10    
			double a = number*0.1;
			printf("%d = %3f\r\n",number,a);                      
			myservo = number*0.1;

Step 4: Semblance

Picture of Semblance

The size is greater than or equal to Card.

Step 5: Video

The cats were constantly coming and going.

You can make it easier.

If you have a question, please send me email( or write the comment about this project


ElijahH3 (author)2016-06-02

Awesome project, I love this, I think i'll make this as my next project, if I do, I'll send you the picture. Thanks for sharing!

BenicioMurray (author)2015-12-03

I love this idea but the WIZwiki is difficult to get. Can you modify this instructional to use a Arduino?

ElijahH3 (author)BenicioMurray2016-06-02

Yes, Arduino UNO can hook up the the Ultrasonic Range Finder and a servo, the code should be easy enough to write, you can look it up. Also, in case you didn't know this already, servos on the Arduino require a library, that can be found on this page: I hope this helps, even though it's a little late.

irinak1 (author)BenicioMurray2015-12-15

I will test the arduino as soon as possible. wait for me^^

joon874 (author)2015-12-03

Show me the cat!

irinak1 (author)joon8742015-12-15

sorry :), you can't see the cats. Just test video,^^

joon874 (author)2015-12-03


irinak1 (author)joon8742015-12-15

Thanks you

ninja66 (author)2015-12-15

32-bit ARM to shake something and measure distance ?! huge overkill

About This Instructable




Bio: I am SoC engineer^^
More by irinak1:Control ppt using bluetooth module.Of the cats, by the cats, for the catsSmart Watch using SNTP
Add instructable to: