Git Product home page Git Product logo

diyino's Introduction

DIYino Prime

An Arduino compatible integrated circuit board for prop electronics.

Goal of this particulat Git is to collect information about the Board, but I will also include snippets of code I write which helps better deal with the DIYino board like test code, calibration code for used chipsets, known-working lightsaber code etc.

#Useful Git links: LSOS by neskweek: https://github.com/neskweek/LightSaberOS USaber by Jakesoft: https://github.com/JakeS0ft/USaber

#THANK YOU !!!

Thanks to Sebastien Capou (neskweek) for writing the first professional LightSaber code called LSOS (see link below) Thanks to Jacob Martin (Jakesoft) from Arduino Forum for his initial idea of using Arduino device to build a lightsaber and many more source of inspirations. Thanks to him also for his USaber library which is fully compatible to DIYino Prime.

diyino's People

Contributors

protonerd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

diyino's Issues

MPU6050 clash detection - works but no clue why?

Hi neskweek,
Yesterday I've been experimenting again with the clash detection, because it still seems to be not as responsive as it should be. I looked at the code and also read the MPU6050 Manual, all about motion interrupts.

It seems there are only 4 parameters playing a roles:

These settings change the full scale range of the accelero/gyro (not yet in LSOS...). These should change the sensitivity of the saber because an LSB is scaled with full range.
// set the fll scale range of the gyro- and accelerometer respectively
mpu.setFullScaleGyroRange(0); //0: 250deg/s | 1: 500deg/s | 2: 1000deg/s | 3: 2000deg/s
mpu.setFullScaleAccelRange(0); //0: 2g | 1: 4g | 2: 8g | 3: 16g

Then there are the settings for the motion interrupt. The first one sets the threshold, but no idea how...I guess the number means LSB. But it's strange, with a setting of 10, we should hear clash triggering all the time even if we just shudder.
mpu.setMotionDetectionThreshold(10); // 1mg/LSB
mpu.setMotionDetectionDuration(1); // number of consecutive samples above threshold to trigger int

I experimented with following things (using 2 sabers both with DIYino):

  • set mpu.setFullScaleAccelRange(0) and mpu.setFullScaleGyroRange(0) once to 0 and once to 3 (2 extreme values) -> no change in the clash detection, no tangible effect on other motion detection
  • play with mpu.setMotionDetectionDuration(1) -> no change in clash detection

Funny thing is, my LED string saber is no (without any change) very responsive, even small taps will trigger clash (the right way!), while my new neopixel saber (using also DIYino) sometimes even fail to detect quite hard hits...I re-calibrated both MPUs and also tried with a sketch what they read, they read and are calibrated both perfectly.

So I feel we still do not fully understand how this motion interrupt feature works...although clash is by far the most important feature of a saber (besides the LEDs).

It is more a fundamental topic, not an immediate bug, but I did not find a better place to report/discuss.

Cheers: Andras

burnt MOSFET

Not sure how, but I managed to burn off LS1 MOSFET. I only use 3 of the MOSFETs to power a tri rebel luxeon with 2 blue and 1 white. I rewired my led that was on LS1 to LS4. When I power on now it makes the initial noise of speaker being powered, but no sound. Neither the start up or the hum, but the lights work (kind of). Do the MOSFETs affect sound at all? Or is it simply in the code? (LSOS V1.0) Im not sure if LSOS makes sure the MOSFETs are working, like it does for the MPU. I need to buy another one anyway but I'm on a tight budget right now. 200 days til episode 8 and I need one working lol

Add bootloader info

In the "DIYino_v1_User_Manual_draft_v03.pdf" is no information which setting you have to use in the Arduino IDE to succesfully upload sketches.

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.