Jump to content
43oh

szymekrak1426459900

Members
  • Content Count

    9
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    szymekrak1426459900 got a reaction from tingo in The Stellaris-MP3-thing   
    Hi.
     
    Finally I decided to say a word or two about a project I am currently working on. While this is nothing innovative or really impressive, this is my first invention that actually can be used for something.
     
    This is a MP3 player, with colour LCD screen and touchpanel. I also hope to add some features that an iPod or something like don't have, for example serial console, or AVR programmer.
     
    I have made something like a Booster Pack to connect elements together. While this is a perfboard with a lot of cables, and it looks ugly, it works and I can even say it is portable. I would like to make a real Booster Pack with everything needed, but I have no experience in etching PCBs yet.
     
    My board connects the Launchpad with LCD screen and VS1003b board(which is responsible for sound and MP3/WMA decoding in my project). It also has SD card socket.
     
    I dream of final device with rechargeable battery, VS1053/1063 for FLAC and OGG playback, and a RTC, all enclosed in a nice case.
     
    Now, about the software. I am writing it in Energia IDE, but avoid using things like digitalWrite in parts of code where speed is important. For SD card, I use the FatFs library, the files that I posted before. The code may be a big mess, but it somehow works. Here is the list of what it currently has:
    A simple menu to select "apps" Screen calibration. Data is stored in EEPROM so don't run my code without modifications if you own the revision of LM4F120 which stops working after EEPROM write attempt. The calibration algorithm is not very smart. The file selector used in below functions. This currently does not check extensions! Picture viewer. Currently it supports only RAW RGB565 bitmaps and it assumes they are 240x320. Support for BMP is coming, and maybe even some JPEG decoding if I finally understand how picoJPEG works. "Slide" is also RAW picture viewer, but it takes longer images(width 240, height longer than 320) and lets user scroll through the image with touch. It uses LCD's ability to do hardware scrolling and this feature looks nice. Code, however is not perfect and there is a bug which I am trying to fix. Minipaint lets user paint on the screen. This is meant for touch panel testing. But if I add saving feature, this may become more useful. Audio player. It plays MP3, WAV and WMA files. If VS1053 was used instead of VS1003b, also FLAC and OGG would be supported. It shows artist and title from ID3 tag, and also bitrate of MP3 and WMA files. Module player. This is ported from PIC32, the same code was used in Stellaris Mod Player presented there some time ago. But I am using the VS1003b for audio output and not PWM. The player needs optimization. It needs a lot of memory for buffers. With current settings I can play some of my mods, but 4 channel mods with large samples don't play properly. With larger buffer and maximum of 4 channels I can play all my 4 channel mods perfectly, but no mods with larger number of channels are supported. I am going to try putting also S3M playback. I think about making the buffers dynamically allocated, so they won't use RAM when MOD player is not in use. Plasma effect. It displays animated plasma, like in old classic intros. I attached some pictures of the thing. I put that piece of plastic on the Launchpad to diffuse LED lights. They are nasty, aren't they? Also, all my code is available if anybody wants to look at all the mess:
    https://github.com/szymekrak/mp3thing
     
    I look forward for any opinions and even criticism. I know everything is far from perfection. I would be pleased for any help and advice
     
    I am also sorry if there were any mistakes in my English as this is not my native language.





  2. Like
    szymekrak1426459900 got a reaction from bluehash in The Stellaris-MP3-thing   
    Hi.
     
    Finally I decided to say a word or two about a project I am currently working on. While this is nothing innovative or really impressive, this is my first invention that actually can be used for something.
     
    This is a MP3 player, with colour LCD screen and touchpanel. I also hope to add some features that an iPod or something like don't have, for example serial console, or AVR programmer.
     
    I have made something like a Booster Pack to connect elements together. While this is a perfboard with a lot of cables, and it looks ugly, it works and I can even say it is portable. I would like to make a real Booster Pack with everything needed, but I have no experience in etching PCBs yet.
     
    My board connects the Launchpad with LCD screen and VS1003b board(which is responsible for sound and MP3/WMA decoding in my project). It also has SD card socket.
     
    I dream of final device with rechargeable battery, VS1053/1063 for FLAC and OGG playback, and a RTC, all enclosed in a nice case.
     
    Now, about the software. I am writing it in Energia IDE, but avoid using things like digitalWrite in parts of code where speed is important. For SD card, I use the FatFs library, the files that I posted before. The code may be a big mess, but it somehow works. Here is the list of what it currently has:
    A simple menu to select "apps" Screen calibration. Data is stored in EEPROM so don't run my code without modifications if you own the revision of LM4F120 which stops working after EEPROM write attempt. The calibration algorithm is not very smart. The file selector used in below functions. This currently does not check extensions! Picture viewer. Currently it supports only RAW RGB565 bitmaps and it assumes they are 240x320. Support for BMP is coming, and maybe even some JPEG decoding if I finally understand how picoJPEG works. "Slide" is also RAW picture viewer, but it takes longer images(width 240, height longer than 320) and lets user scroll through the image with touch. It uses LCD's ability to do hardware scrolling and this feature looks nice. Code, however is not perfect and there is a bug which I am trying to fix. Minipaint lets user paint on the screen. This is meant for touch panel testing. But if I add saving feature, this may become more useful. Audio player. It plays MP3, WAV and WMA files. If VS1053 was used instead of VS1003b, also FLAC and OGG would be supported. It shows artist and title from ID3 tag, and also bitrate of MP3 and WMA files. Module player. This is ported from PIC32, the same code was used in Stellaris Mod Player presented there some time ago. But I am using the VS1003b for audio output and not PWM. The player needs optimization. It needs a lot of memory for buffers. With current settings I can play some of my mods, but 4 channel mods with large samples don't play properly. With larger buffer and maximum of 4 channels I can play all my 4 channel mods perfectly, but no mods with larger number of channels are supported. I am going to try putting also S3M playback. I think about making the buffers dynamically allocated, so they won't use RAM when MOD player is not in use. Plasma effect. It displays animated plasma, like in old classic intros. I attached some pictures of the thing. I put that piece of plastic on the Launchpad to diffuse LED lights. They are nasty, aren't they? Also, all my code is available if anybody wants to look at all the mess:
    https://github.com/szymekrak/mp3thing
     
    I look forward for any opinions and even criticism. I know everything is far from perfection. I would be pleased for any help and advice
     
    I am also sorry if there were any mistakes in my English as this is not my native language.





  3. Like
    szymekrak1426459900 got a reaction from gmtii in The Stellaris-MP3-thing   
    Hi.
     
    Finally I decided to say a word or two about a project I am currently working on. While this is nothing innovative or really impressive, this is my first invention that actually can be used for something.
     
    This is a MP3 player, with colour LCD screen and touchpanel. I also hope to add some features that an iPod or something like don't have, for example serial console, or AVR programmer.
     
    I have made something like a Booster Pack to connect elements together. While this is a perfboard with a lot of cables, and it looks ugly, it works and I can even say it is portable. I would like to make a real Booster Pack with everything needed, but I have no experience in etching PCBs yet.
     
    My board connects the Launchpad with LCD screen and VS1003b board(which is responsible for sound and MP3/WMA decoding in my project). It also has SD card socket.
     
    I dream of final device with rechargeable battery, VS1053/1063 for FLAC and OGG playback, and a RTC, all enclosed in a nice case.
     
    Now, about the software. I am writing it in Energia IDE, but avoid using things like digitalWrite in parts of code where speed is important. For SD card, I use the FatFs library, the files that I posted before. The code may be a big mess, but it somehow works. Here is the list of what it currently has:
    A simple menu to select "apps" Screen calibration. Data is stored in EEPROM so don't run my code without modifications if you own the revision of LM4F120 which stops working after EEPROM write attempt. The calibration algorithm is not very smart. The file selector used in below functions. This currently does not check extensions! Picture viewer. Currently it supports only RAW RGB565 bitmaps and it assumes they are 240x320. Support for BMP is coming, and maybe even some JPEG decoding if I finally understand how picoJPEG works. "Slide" is also RAW picture viewer, but it takes longer images(width 240, height longer than 320) and lets user scroll through the image with touch. It uses LCD's ability to do hardware scrolling and this feature looks nice. Code, however is not perfect and there is a bug which I am trying to fix. Minipaint lets user paint on the screen. This is meant for touch panel testing. But if I add saving feature, this may become more useful. Audio player. It plays MP3, WAV and WMA files. If VS1053 was used instead of VS1003b, also FLAC and OGG would be supported. It shows artist and title from ID3 tag, and also bitrate of MP3 and WMA files. Module player. This is ported from PIC32, the same code was used in Stellaris Mod Player presented there some time ago. But I am using the VS1003b for audio output and not PWM. The player needs optimization. It needs a lot of memory for buffers. With current settings I can play some of my mods, but 4 channel mods with large samples don't play properly. With larger buffer and maximum of 4 channels I can play all my 4 channel mods perfectly, but no mods with larger number of channels are supported. I am going to try putting also S3M playback. I think about making the buffers dynamically allocated, so they won't use RAM when MOD player is not in use. Plasma effect. It displays animated plasma, like in old classic intros. I attached some pictures of the thing. I put that piece of plastic on the Launchpad to diffuse LED lights. They are nasty, aren't they? Also, all my code is available if anybody wants to look at all the mess:
    https://github.com/szymekrak/mp3thing
     
    I look forward for any opinions and even criticism. I know everything is far from perfection. I would be pleased for any help and advice
     
    I am also sorry if there were any mistakes in my English as this is not my native language.





  4. Like
    szymekrak1426459900 got a reaction from reaper7 in The Stellaris-MP3-thing   
    Hi.
     
    Finally I decided to say a word or two about a project I am currently working on. While this is nothing innovative or really impressive, this is my first invention that actually can be used for something.
     
    This is a MP3 player, with colour LCD screen and touchpanel. I also hope to add some features that an iPod or something like don't have, for example serial console, or AVR programmer.
     
    I have made something like a Booster Pack to connect elements together. While this is a perfboard with a lot of cables, and it looks ugly, it works and I can even say it is portable. I would like to make a real Booster Pack with everything needed, but I have no experience in etching PCBs yet.
     
    My board connects the Launchpad with LCD screen and VS1003b board(which is responsible for sound and MP3/WMA decoding in my project). It also has SD card socket.
     
    I dream of final device with rechargeable battery, VS1053/1063 for FLAC and OGG playback, and a RTC, all enclosed in a nice case.
     
    Now, about the software. I am writing it in Energia IDE, but avoid using things like digitalWrite in parts of code where speed is important. For SD card, I use the FatFs library, the files that I posted before. The code may be a big mess, but it somehow works. Here is the list of what it currently has:
    A simple menu to select "apps" Screen calibration. Data is stored in EEPROM so don't run my code without modifications if you own the revision of LM4F120 which stops working after EEPROM write attempt. The calibration algorithm is not very smart. The file selector used in below functions. This currently does not check extensions! Picture viewer. Currently it supports only RAW RGB565 bitmaps and it assumes they are 240x320. Support for BMP is coming, and maybe even some JPEG decoding if I finally understand how picoJPEG works. "Slide" is also RAW picture viewer, but it takes longer images(width 240, height longer than 320) and lets user scroll through the image with touch. It uses LCD's ability to do hardware scrolling and this feature looks nice. Code, however is not perfect and there is a bug which I am trying to fix. Minipaint lets user paint on the screen. This is meant for touch panel testing. But if I add saving feature, this may become more useful. Audio player. It plays MP3, WAV and WMA files. If VS1053 was used instead of VS1003b, also FLAC and OGG would be supported. It shows artist and title from ID3 tag, and also bitrate of MP3 and WMA files. Module player. This is ported from PIC32, the same code was used in Stellaris Mod Player presented there some time ago. But I am using the VS1003b for audio output and not PWM. The player needs optimization. It needs a lot of memory for buffers. With current settings I can play some of my mods, but 4 channel mods with large samples don't play properly. With larger buffer and maximum of 4 channels I can play all my 4 channel mods perfectly, but no mods with larger number of channels are supported. I am going to try putting also S3M playback. I think about making the buffers dynamically allocated, so they won't use RAM when MOD player is not in use. Plasma effect. It displays animated plasma, like in old classic intros. I attached some pictures of the thing. I put that piece of plastic on the Launchpad to diffuse LED lights. They are nasty, aren't they? Also, all my code is available if anybody wants to look at all the mess:
    https://github.com/szymekrak/mp3thing
     
    I look forward for any opinions and even criticism. I know everything is far from perfection. I would be pleased for any help and advice
     
    I am also sorry if there were any mistakes in my English as this is not my native language.





  5. Like
    szymekrak1426459900 got a reaction from PTB in The Stellaris-MP3-thing   
    Hi.
     
    Finally I decided to say a word or two about a project I am currently working on. While this is nothing innovative or really impressive, this is my first invention that actually can be used for something.
     
    This is a MP3 player, with colour LCD screen and touchpanel. I also hope to add some features that an iPod or something like don't have, for example serial console, or AVR programmer.
     
    I have made something like a Booster Pack to connect elements together. While this is a perfboard with a lot of cables, and it looks ugly, it works and I can even say it is portable. I would like to make a real Booster Pack with everything needed, but I have no experience in etching PCBs yet.
     
    My board connects the Launchpad with LCD screen and VS1003b board(which is responsible for sound and MP3/WMA decoding in my project). It also has SD card socket.
     
    I dream of final device with rechargeable battery, VS1053/1063 for FLAC and OGG playback, and a RTC, all enclosed in a nice case.
     
    Now, about the software. I am writing it in Energia IDE, but avoid using things like digitalWrite in parts of code where speed is important. For SD card, I use the FatFs library, the files that I posted before. The code may be a big mess, but it somehow works. Here is the list of what it currently has:
    A simple menu to select "apps" Screen calibration. Data is stored in EEPROM so don't run my code without modifications if you own the revision of LM4F120 which stops working after EEPROM write attempt. The calibration algorithm is not very smart. The file selector used in below functions. This currently does not check extensions! Picture viewer. Currently it supports only RAW RGB565 bitmaps and it assumes they are 240x320. Support for BMP is coming, and maybe even some JPEG decoding if I finally understand how picoJPEG works. "Slide" is also RAW picture viewer, but it takes longer images(width 240, height longer than 320) and lets user scroll through the image with touch. It uses LCD's ability to do hardware scrolling and this feature looks nice. Code, however is not perfect and there is a bug which I am trying to fix. Minipaint lets user paint on the screen. This is meant for touch panel testing. But if I add saving feature, this may become more useful. Audio player. It plays MP3, WAV and WMA files. If VS1053 was used instead of VS1003b, also FLAC and OGG would be supported. It shows artist and title from ID3 tag, and also bitrate of MP3 and WMA files. Module player. This is ported from PIC32, the same code was used in Stellaris Mod Player presented there some time ago. But I am using the VS1003b for audio output and not PWM. The player needs optimization. It needs a lot of memory for buffers. With current settings I can play some of my mods, but 4 channel mods with large samples don't play properly. With larger buffer and maximum of 4 channels I can play all my 4 channel mods perfectly, but no mods with larger number of channels are supported. I am going to try putting also S3M playback. I think about making the buffers dynamically allocated, so they won't use RAM when MOD player is not in use. Plasma effect. It displays animated plasma, like in old classic intros. I attached some pictures of the thing. I put that piece of plastic on the Launchpad to diffuse LED lights. They are nasty, aren't they? Also, all my code is available if anybody wants to look at all the mess:
    https://github.com/szymekrak/mp3thing
     
    I look forward for any opinions and even criticism. I know everything is far from perfection. I would be pleased for any help and advice
     
    I am also sorry if there were any mistakes in my English as this is not my native language.





  6. Like
    szymekrak1426459900 got a reaction from reaper7 in [Energia Library] Stellaris Launchpad FatFs Energia library   
    I am afraid this wrapper doesn't have mentioned functionality. But normal FatFs library can. I use it with Energia without any problems. I use diskio.c from one of the StellarisWare examples, modified to suit my connections. However, unmodified FatFs library requires using a timer.
    The SDFat library also works with Energia(some code changes are needed), but it is slower because of using things like digitalWrite.
     
    Attached file contains fatfs and SDFat from my libraries directory. They worked for me, but my SD card is connected to SSI3 and this is hardcoded. Wouldn't be hard to modify, I think.
     
    I can also share my working sketch, if needed.
    libraries.7z
  7. Like
    szymekrak1426459900 got a reaction from Rei Vilo in [Energia Library] Stellaris Launchpad FatFs Energia library   
    I am afraid this wrapper doesn't have mentioned functionality. But normal FatFs library can. I use it with Energia without any problems. I use diskio.c from one of the StellarisWare examples, modified to suit my connections. However, unmodified FatFs library requires using a timer.
    The SDFat library also works with Energia(some code changes are needed), but it is slower because of using things like digitalWrite.
     
    Attached file contains fatfs and SDFat from my libraries directory. They worked for me, but my SD card is connected to SSI3 and this is hardcoded. Wouldn't be hard to modify, I think.
     
    I can also share my working sketch, if needed.
    libraries.7z
  8. Like
    szymekrak1426459900 reacted to EuphonistiHack in Stellaris Launchpad Powered Marble Maze   
    Hey everybody, I made a new thing!
     

     
    This project uses two Stellaris Launchpads equipped with Sensorhub Booster Packs, which in turn have CC2533EM Zigbee 2.4 GHz daughter cards attached.
     
    The notion is that one launchpad is hand held, and continually computes its roll, pitch, and yaw via the sensors on the booster pack.  It then transmits these values down to the receiver via the Zigbee daughter card.  The receiver takes these values and uses them to rotate servos that are attached to the x and y axes of a marble maze.
     
    An explanation video can be found at http://www.youtube.com/watch?feature=player_embedded&v=NUIewWkACPk  Sorry for the noise, but I was debuting the demo at NI Week, and the exhibition hall was pretty noisy.
    A full writeup can be found on my blog, at http://euphonistihack.blogspot.com/2013/08/amazing-sensors.html
    The source code and bill of materials can be found on my github, at https://github.com/EuphonistiHack/marble-maze
    ...well, the bill of materials will eventually be there.  Still working on it.  Source code's up, though
     
    Hope you all enjoy it, and if you have any questions, feel free to ask!
     
    -EH
  9. Like
    szymekrak1426459900 got a reaction from PTB in Does progmem work with Stellaris ?   
    I think that static const should work. I have put 153600 bytes image inside the flash with this method. It worked just fine.
×
×
  • Create New...