Giter VIP home page Giter VIP logo

tinylaserturret's Introduction

TinyLaserTurret

TinyLaserTurret is a simple ATtiny85 based laser turret, with Nunchuck control.

Requirements

TinyLaserTurret use few items:

  • An ATtiny85 microcontroller.
  • A 5V laser module.
  • A BCU-81 transistor to drive the laser module.
  • A 330Ω resistor to drive BCU-81 transistor.
  • A pan & tilt mount with servos to orient laser module.
  • A L78S05CV voltage regulator.
  • Two 100 µF capacitors to filter voltage spike.
  • Two 4.7kΩ pull-up resistors for I2C lines.
  • A WiiChuck adapter.
  • A power adapter.
  • And a 170 points breadboard, batteries, wires and a Wii Nunchuck.

The full bill of materials is available in the file “docs/bom.xlsx”

Optionnaly, you'll need a 3D printer to build the turret.

You can find all the schematics into “doc/ArduTemperatureMonitor.fzz”, to open with Fritzing.

How to use TinyLaserTurret

TinyLaserTurret needs an ATtiny85 controller running at 8MHz. Once you have build the assembly, you have to connect to it:

  • Batteries to the power adapter (from 7V to 12V).
  • Wii Nunchuck to the WiiChuck adapter.

Then you will be able to control the turret with Nunchuck's analog joystick, and fire the laser with Nunchuck's Z button. And your cat will be happy :)

Wiring diagram

Diagram

The breadboard assembly and schematics

Breadboard assembly Schematics

Building the turret

I provide 3D parts to build the turret. These 3D parts were sized for the specified bill of materials. If you use different items, you'll have to adapt the 3D parts. You'll find inside “3d_parts” folder the following files:

  • 3d_assembly.skp: 3D file to show how to build the turret.
  • 3d_assembly.stl: same as above, for automatic preview from GitHub site.
  • laser_support.skp: 3D file of the laser module support.
  • laser_support.stl: same as above, to be uploaded to 3D printer.
  • leg.skp: 3D file for turret legs.
  • leg.stl: same as above, to be uploaded to 3D printer. You'll have to print four of those.
  • main_support.skp: 3D file of the main support, where pan & tilt servos and breadboard will be put.
  • main_support.stl: same as above, to be uploaded to 3D printer.

“.skp” files were made with Trimble Sketchup Make 2013

3D assembly

Notes

TinyLaserTurret uses third party libraries, which are included with the project:

  • Servo8Bit: A library which allows ATtiny microcontroller to drive servos.
  • TinyWireM: An I2C library for ATtiny85.
  • USI_TWI_Master: Universal Serial Interface library for ATtiny85, used by TinyWireM. This library was modified to work with an 8MHz ATtiny85, and support I2C fast mode (400kHz) and standard mode (< 100kHz)
  • nunchuck_funcs: A library to communicate with Wii Nunchuck. It was modified to work with TinyWireM.

The live assembly

Live assembly

tinylaserturret's People

Contributors

sguclu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.