GithubHelp home page GithubHelp logo

stuffandymakes / droneeyes Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 612 KB

A very simple little circuit controlled by an Atmel ATtiny13 microcontroller that gives your little 3.7V-powered drone crazy eyes! It's an easy mod.

License: MIT License

C 92.88% Shell 7.12%

droneeyes's Introduction

DroneEyes

This is the source code and build files for a product I sell on my site (http://www.stuffandymakes.com/products/droneeyes) called, "DroneEyes." DroneEyes gives your little 3.7V drone a little more intimidation factor with bright LEDs that flash in patterns that it saves from startup to startup.

This is really just a very simple little circuit controlled by an Atmel ATtiny13 microcontroller that gives your little 3.7V-powered drone crazy eyes! It's an easy mod. Mount DroneEyes to your drone, solder power and ground from the battery to the DroneEyes board and power it up. Change modes on the DroneEyes by clicking the button. If you find your favorite mode, DroneEyes remembers that setting from power-up to power-up. You don't have to select modes over and over again.

Charlieplexing!

To keep battery usage small and efficient and to keep the part count low and cheap I've implemented Charlieplexing to control more LEDs than the little 8-pin Atmel® ATtiny13 AVR microcontroller has available. Technically, the ATtiny13 could ontrol upwards of dozens of LEDs with only 6 pins, but DroneEyes works and looks great with six "eyes." On the Syma X5C, if you remove the original LEDs from the drone and replace them with this board, you've eliminated EIGHT LEDs that were all on at the same time and replaced them with the equivalent of ONE single LED on at a time. The beauty of Chgarlieplexing.

I've written a few articles on how Charlieplexing is done with AVE microcontrolers, like Arduinos and whatnot:

Compiling and Flashing Chip

I use Atmel's AVR ISP Mark II programmer. It's shit-simple and works great. I'll update this README with a URL to the article on StuffAndyMakes.com where I talk about how I programmed the ATtiny13's for this project.

I everything on Apple equipment. Can't stand Windoze, sorry. If you're on Windoze, AtmelStudio 6 makes programming your chips simple, too. I'd recommend downloading that to do it. No sense in using the command line when you have a well-optimized IDE around the AVR chips. Atmel has all you need to know about it here: http://www.atmel.com/tools/atmelstudio.aspx

If you're going the command line route, this project depends on avrdude and avr-gcc and the like. These are included in the Arduino IDE, but making that work on the command line isn't a cake walk. The better way to get out from under the thumb of the Arduino environment is to install the AVR toolchain yourself. You can get the entire thing with the CrossPack installer here: https://www.obdev.at/products/crosspack/index.html

In this repo I've included the build and flash scripts for bash. Make sure they're executable. Do what you will with the C file, run the build script, make sure the AVR ISP MkII programmer is hooked up to your chip and then run the flash script.

Give Back

If you do something new and cool with the firmware, please share back with me.

droneeyes's People

Contributors

stuffandymakes avatar

Watchers

 avatar  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.