Showing posts with label 3d printer. Show all posts
Showing posts with label 3d printer. Show all posts

Monday, December 14, 2015

Bionic Hipster Glasses - the code behind

If you want to make something special for this Halloween, this is your chance!
For a few lines of code,

Just copy-paste the code blow into an new Arduino sketch.


//          ____   _                _        ______                
//         / __ ) (_)____   ____   (_)_____ / ____/__  __ ___      
//        / __  |/ // __ \ / __ \ / // ___// __/  / / / // _ \     
//       / /_/ // // /_/ // / / // // /__ / /___ / /_/ //  __/     
//      /_____//_/ \____//_/ /_//_/ \___//_____/ \__, / \___/      
//                                              /____/             
//      
//              Created by Yair Kapach 2015
//        For build details and more, please visit: 
//         http://www.youtube.com/user/microstrat
//           http://makestuffordie.blogspot.com/
//
//    you're welcome to hack it, break it and have fun !
#include <Servo.h>
#include <SoftwareSerial.h>

#define SERVO_PIN 9
#define BT_RX_PIN 10
#define BT_TX_PIN 11

Servo eye;
SoftwareSerial bluetooth(BT_RX_PIN, BT_TX_PIN);

int pos = 60;  
int lastPos = pos;

void setup()
{
  bluetooth.begin(9600);                // initialize communication
  eye.attach(SERVO_PIN);                // initialize servo
  eye.write(pos);                       // look ahead :)
}

void loop()
{
  if (bluetooth.available()) {           // try and read if available
    int data = bluetooth.read();         // read a single character
    pos = map(data, '0', '9', 10, 110);  // convert digit to degrees
  }
  if (lastPos != pos) {                  // don't resend the same values
    lastPos = pos;
    eye.write(pos); 
  }
}


Download any Bluetooth terminal app, I preferred one with custom hotkeys, you can set buttons 0-9 to send any data once clicked.
Since our protocol is quite dumb, button 0 sends '0', 1 sends '1' and so on...

Happy Halloween.

Tuesday, May 19, 2015

When Hipsters and Cyborgs meet


Just got back to an old project, a Halloween costume. It used to be a Bluetooth-controlled-pirate-eye, but it wasn't that comfortable to wear.
So I decided starting everything from scratch:
  • Only few electronic components.
  • Less than 50 lines of Arduino code.
  • Fully 3D printed parts (no screws, nuts etc.)
  • Printable on a 10cm^3 printer (~4'')

Soon available on Thingiverse...

Friday, May 8, 2015

The Arduino source code is now available on: https://github.com/MakeStruffOrDie/uArcade

Cabinet STL are not that perfect, but what the heck, software developers have debuggers, Makers have X-Acto and elbow grease...

Tuesday, May 5, 2015

uArcade - 3D printed desktop arcade





Sure, Xbox and PS are great, 3D graphics is amazing, but all of us who grew up in the 80's, can still enjoy 8bit games.

But why going eight when you can play one bit ... :)
Just started a new project, palm size arcade cabinet.

All you need is a tiny Arduino, an OLED display and a rotary encoder.
For the cabinet, it's nice to have 3D printer, but you can always use other matterials.

Stay tuned for more,
Make stuff or die trying....