Pigeon-Kicker
Published © GPL3+

Cutsie Whun

A simple and cheap three wheeled time waster for almost any skill level. Basic stats are Arduino Mini Pro, Sonic distance, and a Gyro.

IntermediateWork in progress3 hours1,726
Cutsie Whun

Things used in this project

Hardware components

Arduino Pro Mini 328 - 5V/16MHz
SparkFun Arduino Pro Mini 328 - 5V/16MHz
×1
ZX Distance and Gesture Sensor
SparkFun ZX Distance and Gesture Sensor
I used the HC-SR04
×1
Pmod GYRO
Digilent Pmod GYRO
Needed only if you want it on two wheels
×1
RobotGeek Continuous Rotation Servo
RobotGeek Continuous Rotation Servo
Need only be a suitable 360 rotation servo, the faster the better.
×2
Li-Ion Battery 1000mAh
Li-Ion Battery 1000mAh
I used a 2000mAh cell phone battery, nice and flat.
×1
Delrin V Wheel Kit
OpenBuilds Delrin V Wheel Kit
I used the wheels from a spectacular model F4U-1 Corsair aircraft crash.
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
plastic saw
Hot glue gun (generic)
Hot glue gun (generic)

Story

Read more

Code

MEGA BREAD - Cutsie Whun Arduino Code

Arduino
A simple turn the wheels for 3 seconds in different directions as a test bed.
No code for 2 wheeled operation.
/* Sweep
  by BARRAGAN <http://barraganstudio.com>
  This example code is in the public domain.

  modified 8 Nov 2013
  by Scott Fitzgerald
  http://www.arduino.cc/en/Tutorial/Sweep

UPDATED BY -- MEGA BREAD _ MINI BOT 1
This will do a VERY VERY basic wheel spin changing
the direction of wheel spin every 3 seconds

Auto Navigation not yet implemented
*/

#include <Servo.h>

Servo myservo1;  // create servo object to control a servo
Servo myservo2;

// twelve servo objects can be created on most boards

int pos = 90;   // variable to store the servo position
int maxLow = 1;
int maxHigh = 179;
int servoSpeed = 2;

void setup() {
  myservo1.attach(10);
  myservo2.attach(12);
  pinMode(13, OUTPUT);
  pinMode(12, OUTPUT);
  pinMode(10, OUTPUT);
}

void loop() {
  digitalWrite(13, HIGH);
  myservo1.write(maxLow);
  myservo2.write(maxHigh);
  delay(3000);
  digitalWrite(13, LOW);
  myservo1.write(maxHigh);
  myservo2.write(maxLow);
  delay(3000);
  digitalWrite(13, HIGH);
  myservo1.write(maxHigh);
  myservo2.write(maxHigh);
  delay(3000);
  digitalWrite(13, LOW);
  myservo1.write(maxLow);
  myservo2.write(maxLow);
  delay(3000);
  myservo1.write(pos);
  myservo2.write(pos);
  delay(3000);
}

Credits

Pigeon-Kicker

Pigeon-Kicker

19 projects • 31 followers
Computer guru from the 80's, currently disabled veteran. Building this stuffs for my son to learn robotics.
Thanks to Mini Pigeon.

Comments