Go Down

Topic: Arduino Lightsaber (Read 415030 times) previous topic - next topic

neskweek

Anybody want to contribute an MPU6050 MotionManager to the USaber library? That seems to be the popular choice over in Proto's thread. I don't have the hardware to test it myself.
If no one does it before I will. But I'll be quite busy until the end of this month

JakeSoft

#751
Mar 17, 2016, 12:26 am Last Edit: Mar 17, 2016, 12:26 am by JakeSoft
If no one does it before I will. But I'll be quite busy until the end of this month
We're not on a clock here. ;)

honcka

Hello,
My 5 year son want lightsaber, but i dont want buy comercial craps,i found interesting LightSaberOS. I tried to make this exactly by the walkthrough, but i stucked on importing library, i still see only basic but no library from the imported project. I am sorry for lammer question

neskweek

#753
Mar 17, 2016, 08:56 am Last Edit: Mar 18, 2016, 04:53 pm by neskweek
Hey Honcka ! Welcome !

From readme ;)
Quote
1. If not already done create this directory : C:\Users\[YOUR USER]\Arduino
2. Copy and Paste LightSaberOS-master\Libraries directory inside C:\Users\[YOUR USER]\Arduino
After done this, start import process again from point 5.

@Everyone
Please post errors concerning LSOS on github.
Let's keep those thread as clean as possible ;)

I won't answer those on this forum anymore !

billpealer

#754
Mar 21, 2016, 03:30 pm Last Edit: Mar 21, 2016, 03:34 pm by billpealer
is there going to be mention or a link, as to where these items live?

#include <avr/sleep.h>
#include <avr/power.h>
#include <avr/interrupt.h>

Nesweek,  your power save code does not work with out it.

Proto, you tested this?  Where did you download the libraries?

Stemplar

Hello: I´m from to Argentina. This is my first and partial ligthsaber proyect.

Video:

https://youtu.be/CkjhoDr0pjs

- Nano Arduino
- WT588-U (One Line)
- 74CH595 (Shift Register Chip)
- UNL2803 (Darlintong Chip)
- 8 Led (replaced by 8 segments of 8 LEDs).
- Own Soft (no copy).

Thanks
Marcelo


jshaw

Hello: I´m from to Argentina. This is my first and partial ligthsaber proyect.

Video:

https://youtu.be/CkjhoDr0pjs

- Nano Arduino
- WT588-U (One Line)
- 74CH595 (Shift Register Chip)
- UNL2803 (Darlintong Chip)
- 8 Led (replaced by 8 segments of 8 LEDs).
- Own Soft (no copy).

Thanks
Marcelo


Very nice!  I'd be interested to hear how you are using the 74CH595 and UNL2803? 

Stemplar

Very nice!  I'd be interested to hear how you are using the 74CH595 and UNL2803? 
Thank you, JSHAW.

The chip 74CH595, I use it to turn 8 segments of LEDs, with only three digital outputs from NANO.

The UNL2803 chip, I use it for when you need to turn 64 LEDs. That is, when you need to manage power.

Greetings.

Stemplar

I have a problem with my design.

For sound, I use the WT588-U chip, but only allows me to handle 4 sounds.

When I recorded the sound fifth in both One-Wire and Three-Line or KEY mode, the positions of the sounds change when I enter the loop, and I can not wear them in the position that I recorded.

The module is the WT588-U (28 Pins)

Does anyone know, how to properly call sounds from the loop?

Thanks

JakeSoft

#759
Mar 22, 2016, 02:59 am Last Edit: Mar 22, 2016, 03:01 am by JakeSoft
I'll just leave this right here.

https://youtu.be/2gKd2tWIF-E

I took a look at the manual and the serial commands look pretty robust (after painfully running the command table through Google to translate from Chinese to English, of course).

Dude even made a library with basic functionality which could be expanded upon:
https://github.com/Critters/MP3FLASH16P

I attached my translated serial commands. Not to get us too far off track, but I may pick one of these up for experimenting. It could be one more sound module to add to the USaber library. (I'm working on adding sound support, I swear!)


Stemplar

#760
Mar 22, 2016, 05:32 pm Last Edit: Mar 22, 2016, 06:53 pm by Stemplar
Thank you, JakeSoft

I will work to experience this method.

I will keep you informed.

But... Is there any library for my WT588-U (28p) or WT588-16P ?

JakeSoft

Thank you, JakeSoft

I will work to experience this method.

I will keep you informed.

But... Is there any library for my WT588-U (28p) or WT588-16P ?
Everything you need to control WT588D over one-line serial is in post #47 of this thread.

Stemplar

Here is the code for the One-line serial mode.
Just remember to change de config in the WT588D programmer.

Code: [Select]

void WT588D_Send1(byte addr) {
    digitalWrite(wt_scl, LOW);
    delay(5);

    for(int i = 0; i < 8; i++)  {
        digitalWrite(wt_scl, HIGH);
        if(bitRead(addr, i)) {
            delayMicroseconds(600);
            digitalWrite(wt_scl, LOW);
            delayMicroseconds(200);
        } else {
            delayMicroseconds(200);
            digitalWrite(wt_scl, LOW);
            delayMicroseconds(600);
        }
    }

    digitalWrite(wt_scl, HIGH);
    delay(100);
}


Yes, I tried with this code, but... when i record the sound 5 (0 to 4) in the module WT588D-U (28P), after to ejecute the first time all sounds, there is a shift of sounds.

The number 0 ceases to be 0 and became 4.
Number 1 ceases to be 1 and became 1.
Number 2 ceases to be 2 and 3 became.
-
-
-
-
Number 5 ceases to be 5 became the 0.

Is there any solution for this?.

P/D: sorry for my bad english, but I am Spanish.

neskweek

Hey guys !

is that what you call a recharge port/kill switch (5.5mmx2.1mm DC Power jack socket female) ? :

JakeSoft

Hey guys !

is that what you call a recharge port/kill switch (5.5mmx2.1mm DC Power jack socket female) ? :

Yup.

Go Up