Atmega128 internet radio ?

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

Guys,

 

Is there a possibility to combine Atmega128,VS1003 and ENC28J60 as an internet radio ?

Internet radio is sending a mp3 file, isn't it ?

 

Cheers

Last Edited: Sun. Apr 12, 2015 - 10:46 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think that there IS a possibility of using a mega128, a VS1003 and ENC28J60 as an internet radio because I have seen those part numbers used with avrs previously. I bet Sheldon Cooper could calculate the probability of success if he knows the programmer expertise and the time alloted. I'd say with an inexperienced c programmer and two weeks for program development... lets see...  carry the 1... the probablity is .0001%.

 

Imagecraft compiler user

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

hehe, so there's a probability.....I'll make it as an experiment.....I don't care for how long....and yes I don't have any experiences on C or anything like that, I'm a human, I can't speak C, it's a robot language...hehe

To Bob, if you have experience with C and internet radio, how long do you reckon if you're doing it ? 1 week ?

have a good weekend

Last Edited: Fri. Apr 10, 2015 - 09:33 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The term 'internet radio' might need clarification. Once you get the ethernet working enough to load a file from an ip address, you just read mp3 files from a disk somewhere and stuff em in the mp3 chip. This has nothing whatsoever to do with radios and wireless electromagnetic radiation. But computers ARE used in digital radios where the if freq is captured with a flash converter and the rest is digital signal processing. c is the human readable version that gets compiled to binary. That's the robot dialect that avrs understand.

 

 

Imagecraft compiler user

Last Edited: Fri. Apr 10, 2015 - 11:25 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for the info, I've known that....how can you retrieve the file from here ?

http://www.shoutcast.com/

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

I have no idea, but it would be a lot easier to retrieve them from the drive on your pc in the same room to start with.

 

Imagecraft compiler user

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

Careful Bob, this guy will suck your life force.

Bianchi - are you missing a key on your keyboard that only allows you to enter avrfreaks.net?
Google avr webradio
And what do I see? All your questions answered. And no need to suck people's life force.
You've been at your clock thingy for over two years and still not completed it. Surely you could've spent some of that time learning? Or maybe found a new hobby? Bee keeping?

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

hehehe....Kartman, if you are not interested to help just say nothing, I don't want to suck your life force, keep your energy yourself there if you don't want to help ... better than being bitter, very simple..... ....hehehe

 

I'm looking for somebody else opinion not looking for enemy....

Yes I saw some examples already for avr internet radio....it was few days ago already before you said it...

Thanks for your comment...

Have a very good weekend Kartman.....cheers...

.....

....

I can see this link....http://shoutmedia.abc.net.au:10424/ and where's the file that I can stream (mp3 file)?? puzzle for me....I can play MP3 file already with sdcard,vs1003 and mega....and I can give command from EN28J60, I want to combine them.....

 

Last Edited: Sat. Apr 11, 2015 - 11:38 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I can see this link....http://shoutmedia.abc.net.au:10424/ and where's the file that I can stream (mp3 file)?? puzzle for me....I can play MP3 file already with sdcard,vs1003 and mega....and I can give command from EN28J60, I want to combine them.....

So, then if you know how to do the playback part, and you know how to used the EN28J60, then you should have no problem adding a buffer to send the stream to, while you are playing back the audio from said buffer all the while you are monitoring the incoming stream for hiccups(dropouts) that you need to re-frame to your buffer to keep the audio....well streaming

 

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

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

it'll be :.

http://shoutmedia.abc.net.au:10424/streaming

 

what I've been thinking, is on http://shoutmedia.abc.net.au:10424/, there's a script running accepting a request from client..

 

What I had done a year ago, VS1003 is accepting a stream of bytes from SDcard.....and on ENC28J60, it's accepting streaming bytes from my PC .....so what I need now is a streaming bytes from http://shoutmedia.abc.net.au:10424/

 

how can I obtain it ? that's the puzzle....any experiences ? If you don't have answers....don't worry.....I'm not even asking you to read.....hehehehe

It's volunteer and free.....

Last Edited: Sun. Apr 12, 2015 - 02:41 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok, so here is the streaming URL:

http://www.abc.net.au/radio/stat...

 

Just connect to that and just use what you have for streaming from your PC.  Piece of cake if you already have the pc to avr stream stuff done no?

 

 

 

Oh yeah, what is with the "hehehehe"?

 

JIm

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

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

thanks for the info......you guess it for "hehehehehe" it's a C language....hahahahaha

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

Personally I'd give myself a bit more "headroom" and wouldn't use an AVR8 for this. When streaming you need large buffers and one of the things an AVR8 does not do well is allow easy access to a decent amount of buffering RAM. I suppose, at a pinch you might use Xmega with EBI. But, seriously, you can get Cortex-M with 100's of K of SRAM. 

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

That was my thought, because when I used Atmega128 for webserver based command, I need more RAM for the web page....

would 64K of internal SRAM be enough ?

Which Xmega do you suggest ? how much is the minimum internal SRAM I need ? thanks

.....

on the second opinion...

use external SRAM with ATMEGA128 ?

Would 8Kbytes SRAM be enough ? it's easier for me since I have some PCBs for the experiment..

Last Edited: Sun. Apr 12, 2015 - 09:42 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:

Personally I'd give myself a bit more "headroom" and wouldn't use an AVR8 for this. When streaming you need large buffers and one of the things an AVR8 does not do well is allow easy access to a decent amount of buffering RAM. I suppose, at a pinch you might use Xmega with EBI. But, seriously, you can get Cortex-M with 100's of K of SRAM. 

I'm thinking on using STM32...it's cortex M3 and 64K internal SRAM....would it be sufficient ?

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

The STM32F411 has got 128kB of SRAM.

The Freescale K64 has got 256kB of SRAM.

Both are available for MBED and with Arduino footprints.

 

I bet you can find variants with even more internal SRAM.

 

Or you take the Xmega route and use MBs of external DRAM via its EBI interface.    Likewise,  there are Cortex chips that can access external memory.    And have Ethernet.

 

David.

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

I prefer internal SRAM, save space on PCB implementation, reduce the complication on routing it as well....what's the minimum SRAM I need for this application ? for small experiment I don't need fancy, fast and expensive MCU....

Atmega128 has 4Kbytes internal SRAM....will it be enough ? will it run in slow speed ? or ??

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

I can see STM32F107, it has ethernet interface, from datasheet....."It supports two industry standard interfaces to the external
physical layer (PHY)...."....

it will make my life a bit easier.....been reading for how much RAM does it have ?

Last Edited: Sun. Apr 12, 2015 - 10:07 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Calculate it yourself.    At 128kbit/s you need 16kbyte per second.    I don't know how much you have to store before dropouts happen.   In your example the MP3 decode is done by the VS1003, the Ethernet done by the microchip IC, so basically the AVR would only do the internet protocols and move the data around.   Check the ENC28J60 data sheet if you get the data through fast enough, Microchip often designs bottlenecks into their ICs.    Also check their errata and sample code (search for "bug"), a lot of their design faults are not documented (I had some fun with this controller a good few years ago).

 

If the buffering time is enough I see a good chance that you can get this working.    I built an audio player using an xmega256a3u with external sd-card as storage (slow spi mode only), no MP3 decode, only WAV 16bit 44.100kHz and the internal DACs with 4 times oversampling.   Sounds surprisingly good.   I wrote the audio output in assembler, sd card is all in C.   With 32MHz clock the whole thing uses about 75% processing power.

 

So from that point of view I would agree with clawson: why make your life difficult when there is a much easier way using a 32 bit ARM with plenty of memory?    There are plenty of cheap NXP ARM evaluation boards on ebay which have everything on board what you will need.

Last Edited: Sun. Apr 12, 2015 - 10:08 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have no idea how much SRAM you might need.     But a $10 NUCLEO-F411 is hardly going to break the bank.     You can develop your ideas with a sensible amount of resources.     Once you have some experience,   you might well port it back to a 'small' AVR.

 

I would definitely choose internal SRAM unless you require MB of RAM.    The XMEGA-XPLAINED comes with 8MB of external RAM (I think).

 

The external bus of a mega128 is not going to give you much RAM and for the same amount of effort as EBI on a Xmega.

 

I think that the $10 MP3 player dongle that plugs into my lighter socket has no more than a m128 and a FM transmitter (to play through the car radio)

 

David.

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

Thanks to hugo_habicht for your opinion,

I've been considering STM32F107 or STM32F407.....because I have those board on my desk, I don't have to buy again, save some money and waiting time :)

...yes it will make my life easier...my internet speed is up to 1Mbit/s it will be 128 kbytes/s peak......that's another consideration....but I don't think I will get that speed in peak always....so I reckon 64Kbytes of RAM will be sufficient for my small experiment..64Kbytes/s = 384 kbits/s

 

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

david.prentice wrote:

I have no idea how much SRAM you might need.     But a $10 NUCLEO-F411 is hardly going to break the bank.     You can develop your ideas with a sensible amount of resources.     Once you have some experience,   you might well port it back to a 'small' AVR.

 

I would definitely choose internal SRAM unless you require MB of RAM.    The XMEGA-XPLAINED comes with 8MB of external RAM (I think).

 

The external bus of a mega128 is not going to give you much RAM and for the same amount of effort as EBI on a Xmega.

 

I think that the $10 MP3 player dongle that plugs into my lighter socket has no more than a m128 and a FM transmitter (to play through the car radio)

 

David.

I'm interested with   a $10 NUCLEO-F411 where did you get it ? ebay ? yes I know, external mega128 only gives me 64 Kbytes...

STM32F407 gives me 192Kbytes internal SRAM....and I have a board....I can give a go with this board.....what do you think ? only I need a PHY interface for it....any chips do you suggest ?

 

*No longer an Atmel discussion... so this gets locked.*

 

Last Edited: Sun. Apr 12, 2015 - 10:46 AM
Topic locked