protonerd / diyino Goto Github PK
View Code? Open in Web Editor NEWAn Arduino compatible integrated circuit board for prop electronics
License: Creative Commons Zero v1.0 Universal
An Arduino compatible integrated circuit board for prop electronics
License: Creative Commons Zero v1.0 Universal
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):
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
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.