My xplain demo

Go To Last Post
23 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi guys
I posted a demo video on youtube for xplain.

http://www.youtube.com/watch?v=EJ-6T3Kugt8

I don't know if i can write here this message, if not, sorry, tell me, and next time I will not write it again.
Tanks.
Davide

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Very neat! I was thinking about doing something like this, but I've been far too busy with my other projects. Well done.

How are you doing the level meter? Are you simply lighting up the LEDs according to the sample value?

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Very nice!

Dr. David Harris OpenLCB Development Team openlcb.org

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

thanks guys,
Mine It's a simple software,the v-meeter is refreshed every 100 samples. it's not the value of the sample but I use the function below for to define the range for to switch on the leds.
if (V_meeter_time++ >= 100)
{
if(Pwm_data <= 128)
PORTE.OUT = 0xFF;
else if((Pwm_data >= 129) &&(Pwm_data <= 140))
PORTE.OUT = 0xEE;
else if((Pwm_data >= 141) &&(Pwm_data <= 155))
PORTE.OUT = 0xCC;
else if((Pwm_data >= 156) &&(Pwm_data <= 170))
PORTE.OUT = 0x88;
else if(Pwm_data >= 171)
PORTE.OUT = 0x00;
else;

I can post the software but I don't know how to do, now I try :)
If someone whant it, he can contact me or tell me how to post it. :)

There is only one problem: I'm not a so special programmer, my code is not very perfect code, excuse me. :)
I'll try to write more info into the file _NOTE.C

bye bye

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry, No bye bye.... only bye :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Very neat! Well done -- good code or bad, one can't argue with results :). To post your code, you need to zip it up, then attach it to your post. To do that, click the "New Reply" button at the bottom of the page, then select your zip file from the attachment box and press "Submit".

If you can figure out how to read in samples from the SPI bus or UART, I can write up a program for the XPLAIN's AT90USB1287 which will turn it into a USB sound card, so you can play music directly from the PC to the speaker.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Great Dean,
I hope you all can read the attached file.

Next step I want to use an SPI color LCD 320x240 for to visualize images and do some easy game, I'm waiting to reseive the master connector conversion.

Bye Dean and thanks, I hope to see soon your software.
See you soon.
Davide

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Nice sub-woofer ;-)

/Jesper
http://www.yampp.com
The quick black AVR jumped over the lazy PIC.
What boots up, must come down.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

eh eh eh thanks... ---i think to pump too much the volume... the speaker become warm!
Next step I'll put two volume buttons. :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Call me a freaking convert, but I officially LOVE the XMEGA. I was having a royal freakout last night when I realized that I would be completely unemployable with only one architecture behind my belt. I found the AVR32s to be totally unworkable without Atmel's abstraction libraries, but the XMEGA haa a great middle ground.

A hundred lines of code later and I have my XPLAIN board showing live audio samples to the board LEDs, in only half an hour! Next step is to figure out the DAC, and then I'll post a video. I chose the SPI bus as the audio sample transport rather than the USART, due to its speed.

Development isn't supposed to be this much fun, is it?

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

With XMEGA it's fantastic to develop, I find much fun, more than AVR32. Of course, because I don't know very vell the AVR32.
I want to know it better but when I start to study it I stop and I say: "but Xmega it's better and easyer" and so I continue to play and study the xmega. ah ah ah. :)
I really hope it will start to have success, so I'll find more applications and move my fantasy and increase my experience.
I'm happy to know I'm not the only one to have fun with The XMEGA, I felt so alone! :)
I wait the link to your video.
Davide

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ah I forgot.... my first play with XMEGA it was this:
http://www.youtube.com/watch?v=2-tv2TJWW0wmaybe you already saw it...

I found much fun!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

abcminiuser wrote:
... I have my XPLAIN board ...

- Dean :twisted:

What did you say? "Possession is 9/10 of the law" ... hmmm, we will have to see about that, shy or not shy!

Ross McKenzie ValuSoft Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

What did you say? "Possession is 9/10 of the law" ... hmmm, we will have to see about that, shy or not shy!

Don't worry Ross, it'll be returned to you ;). Did you want me to bring it on the 11th to the meetup, or post it?

I've already got my cruddy USB speaker working, in 8-bit mono. It sounds horribly distorted however -- I don't think it's the bus speed that's an issue (4MHz SPI) so it's got to be my DAC initialization.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

abcminiuser wrote:
I was having a royal freakout last night when I realized that I would be completely unemployable with only one architecture behind my belt.

Don't worry, guys like you will never be unemployable. Not even if that single architecture was PIC!
But, look at the ARM devices, and get some ucLinux and/or other embedded Linux experience and you'll be drowning in job offers.

/Jesper
http://www.yampp.com
The quick black AVR jumped over the lazy PIC.
What boots up, must come down.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Dean what happened to the one you "purchased" on eBay? Another scam?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Dean what happened to the one you "purchased" on eBay? Another scam?

I paid, seller didn't ship. Actually, technically my brother paid on my behalf (since my PayPal account is empty) - but I think he did a reversal once it was clear that nothing was ever going to arrive. Ross kindly sent me his for a few weeks so I could develop a PDI programmer, but I fear that is soon coming to an end, so I'm getting as much XMEGA practice in as I can until I have to ship it back.

Anyone want to swap a Raven kit for an XPLAIN? ;)

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Dean,

I am not worried. Just pulling your leg. Hold onto the xPlain for as long as you need; I am too busy with other things now to find time to do anything with it myself. It is certainly in more productive hands at the moment.

See you on the 11th.

Cheers,

Ross

Ross McKenzie ValuSoft Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What I don't understand is why Atmel isn't coming forward.

Is there no Atmel FAE in Australia or the rest of the world willing to get off his or her lazy arse and get that kid an xplain board? PRONTO!

And while you move your arse, throw some tinys with TPI into the package, too.

Atmel's Xmega marketing until now was abysmally bad ("available now", HA, HA, HA. EDN product of the year, HA, HA HA. Xplain not available. Xplain not programmable via USB.). Does no one at Atmel think it is time to change that?

Stealing Proteus doesn't make you an engineer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Atmel used to send me the occasional free gear package, but that stopped a few years ago - either due to financial strain on the company, or due to me getting older.

Thankfully Glitch is sending me some 6-pin TINY samples so I can test the new TPI programming code. That should be all wrapped up pretty soon.

Having now tasted the XMEGAs, I want more. It's not wildly different (ARM) to me so it retains some elements of familiarity, but it's different enough to expand my microcontroller knowledge.

Unlike the AVR32UC3B, the XMEGA's actually compilable and programmable with nothing more than a C file and a makefile. It seems the AVR32s aren't supposed to be used outside Atmel's Eclipse GUI and device framework.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here we go, a real-time USB speaker using the XPLAIN board. It's very basic, but at least it works! I've opted for just using 8-bit mono (left channel) samples across the SPI bus to the XMEGA, but this could be improved -- but mind the sample rate! At 48KHz, there's a lot of data being thrown to the AT90USB1287, so it's not possible to send dual 16-bit samples to the XMEGA. Premixing into a mono 16-bit might work.

One directory contains the LUFA code to load to the 1287, the other the DAC code to load to the XMEGA.

- Dean :twisted:

Attachment(s): 

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Could author of xplain sound player (Darighi) attach some sound files ready for transfer to xplain board and guide (with pics) how to do this. in italian language also will fine.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
I found the AVR32s to be totally unworkable without Atmel's abstraction libraries,

it is unworkable if you think it is unworkable.

I have programmed many of the CMx chips without resorting to OEM libraries (CMSIS is nice but it is quite simple as well). those chips all tend to have many registers so it is harder (but not impossible) to get them to work.

if you program with reusability in mind, you will soon accumulate a nice library of your own that will make your future jobs a lot easier.

tenacity is the key here.