Jump to content
43oh

bcarroll

Members
  • Content Count

    10
  • Joined

  • Last visited

Reputation Activity

  1. Like
    bcarroll got a reaction from geppou in Launchpad Rev 1.4 RXD TXD jumpers ?   
    I too have a rev 1.4 Launchpad upgraded with an m430g2553 and have created an X jumper for the RXD TXD.  I have tried several of the example sketches in Energia but I am not getting any data back from the Launchpad in the serial console.
     
    Any help would be greatly appreciated.
  2. Like
    bcarroll got a reaction from sirri in Launchpad Rev 1.4 RXD TXD jumpers ?   
    I too have a rev 1.4 Launchpad upgraded with an m430g2553 and have created an X jumper for the RXD TXD.  I have tried several of the example sketches in Energia but I am not getting any data back from the Launchpad in the serial console.
     
    Any help would be greatly appreciated.
  3. Like
    bcarroll reacted to simpleavr in webbotlib speech synthesizer on launchpad   
    ok, i tried the new code and everything works. it is talking faster though. we can adjust the loop inside pause() to make it slower.
     
    hooking up a direct 8ohm smallish speaker i could barely make out what it says but should work ok if u spend time to construction a rc filter, and or fiddle w/ the timer / timing a bit.
     
    i also tried my CCS build (eventually used mspdebug to download the .out file) and it also works likewise.
     
    in case we had crystal installed and can't use p2.6....
    i checked and find out that i had used p2.6 for TA0.1 (timerA out1) as p1.2 is already used for uart.
    we can changed the code so that we use the 2nd timerA and have our pwm out at p2.1 or p2.2.
    i tried p2.2 and it works well, basically we need to change inside webbot_lib.h
     
    CCR0 -> TA1CCR0
    CCR1 -> TA1CCR1
    CCTL0 -> TA1CCTL0
    CCTL1 -> TA1CCTL1
    TAR -> TA1R
    TACTL -> TA1CTL
    BIT6 -> BIT2 (both in P2SEL and P2DIR, setups)
     
    i tested the above on mspgcc.
     
    ie.

    void sound(uint8_t { b = (b & 15); // Update PWM volume int16_t duty = Volume[b]; // get duty cycle if (duty != TA1CCR1) { TA1R = 0; TA1CCR1 = duty; }//if }
     
    and
     

    void soundOff(void) { TA1CCTL0 &= ~CCIE; P2DIR &= ~BIT2; } void soundOn(void) { TA1CCTL0 &= ~CCIE; TA1CCTL1 = OUTMOD_7; TA1CCR0 = 0x200; // more like 16Khz (16Mhz/1024) TA1CCR1 = 0x00; TA1CTL = TASSEL_2 + MC_1; P2SEL |= BIT2; P2DIR |= BIT2; // initialise random number seed seed[0]=0xecu; seed[1]=7; seed[2]=0xcfu; }
  4. Like
    bcarroll reacted to simpleavr in webbotlib speech synthesizer on launchpad   
    the pwm output is done inside webbot_speech.h -> soundOn(), where P2.6 is used.
    there should be no need for u to setup things up inside talk.c
     
    1. did u use CCS to build or did u use mspgcc?
    2. when u talk (via putty maybe) to the launchpad, after entering what u want to say and hit enter, does it take a few seconds (depending on length of sentence to say) before the "done" shows up?
     
    i can only hookup sound tomorrow to validate the code change. and i recall the tricky part is getting the timing right.
    i had to change pause() and __delay_cycle() to adopt to CCS and new version of mspgcc. this may have impact on timing.
    u may want to look at pause() and try and play around w/ the duration / delay, etc.
    the __delay_cycle() are now supplied by CCS and mspgcc library so i am not sure how they behave now.
     
    i will try to validate the changes tomorrow. if there are issues it can only be the timing issues i mentioned.
    also u can revisit my youtube video and compare w/ your experience.
  5. Like
    bcarroll reacted to simpleavr in webbotlib speech synthesizer on launchpad   
    apologies for late reply, i got notified of the newer message only yesterday. looks like the forum notify feature has some delay
    [edit]oops, forum notify is fine, i got notified immediately, my eyes are not, i mis-read and thought the last message was from August.[/edit]
     
    1. the "#define TRUE .. FALSE" is needed and u can added them correctly.
    2. the __delay_cycle(...)
    i tried w/ newer versions of mspgcc and it now provides __delay_cycles(..) and collide w/ mine. u should
    a) change __delay_cycles(..) to __my_delay_cycles(..), do it on all source files (common.h, webbot_speech.h, etc)
    your change will not work as it will call the delay() function that calls pause(), they will go into circles.
    3. ram issue
    . you will not get by w/ a 2452 or anything w/ 256 bytes and less ram
    . u may try, but i used obj-dump and looked at the listings
    . the sound lib uses a 128 byte "char sounds[]" to dynamically construct the phonemes, u can't do w/o
    . there is little room to optimize memory, i already "static const" all tables that can be done.
    . u need stack and other variables, they will eat up 256 bytes easily. i.e. u need 2553 w/ 512 bytes ram
     
     
    . I will find time to align the code for more recent mspgcc versions and will update github code. u will need a 2553 or something w/ 512 bytes ram. good luck w/ your project.
  6. Like
    bcarroll reacted to Rickta59 in How Do I Add Libraries To Energia?   
    Not without a deeper understanding of the hardware. The easiest solution is to get an msp430g2553 chip if you want to use simple code.
  7. Like
    bcarroll reacted to simpleavr in webbotlib speech synthesizer on launchpad   
    not sure this is considered a project. the package i am providing allows one to play w/ TTS on a launchpad w/ g2553 chip.
    i did not create the TTS s/w, credit belongs to webbot at http://webbot.org.uk
    instead of publishing derived code, i am publishing a perl script to convert his code for msp430 use.
    this allows me to avoid licensing issues and i think anyone want to implement this should look at the original source.
     
    the speech system is not high quality but fun to use in projects. i.e. talking clocks, alert / alarm modules, robot voices, etc.
     
     
    . s/w only speech synthesizer technique from webbot
    . one pin pwm.
    . text-to-speech and synthesizer code under 10k.
    . fits in a g2553 mcu.
     
    source
     
    https://github.com/simpleavr/webbot_talk430
    . hosted in github, search for "webbot_talk430" project
    . there are 4 files.
    . zconv.pl converts the webbotlib speech source codes to a msp430 compatible source.
    . talk.c TTS exercising firmware, talks to PC at 9600bps turns what u type into speech.
    . uart.h uart code
    . common.h some macros i used.
    . pwm hardware hook-up is in talk.c, just one resistor and one capacitor, can be improved by using better filters.
     


     
    instructions (as in README and help from conversion script)
     
    this is a perl script to convert the webbotlib speech sythesizer code from avr
    to msp430 usage. this script is use at your own risk giftware. webbotlib has
    it's own license terms.
     
    . locate "webbotlib" and download version 1.x, i tried w/ webbotavrclib-1.35
    . inside the package locate and extract the Audio/Text2Speech directory
    . u will see the following files
     
    Text2Speech.h
    phoneme2sound.c
    phonemeWriter.c
    sound2noise.c
    speech2phoneme.c
    speechWriter.c
    vocab_en.c
     
    . place these files in a same directory as this (zconv.pl) script
    . run it again and this script will
    . extract what's needed, ignore others
    . combine into a tighter package name "../webbot_speech.h"
    . replace avr controls w/ msp430 controls
    . to use it in your firmware, do
    . include "webbot_speech.h"
    . say("Hello World");
    . enjoy and thanks webbot
     
    <<< IMPORTANT >>>
    please observe the fact that webbotlib is GPL licensed and use / share accordingly
     
     
     
    will be glad to answer questions anyone may have in this thread. happy hacking.
  8. Like
    bcarroll reacted to Rickta59 in Do you want a linux binary distribution?   
    Yes to compile change to the build directory and type "ant clean build run"
     
    @blund You should give msp430-4.6.3 a try. The header files for the msp430g2231 chip changed between 4.5.3 and 4.6.3. The blink code does compile with either version of the compiler if you are using the larger chips. It seems like a lot of people trying this out recently are using the older launchpad with an msp430g2231 chip. More time has been spent getting the g2452 and g2553 chips to work as they have a a bit more memory and two Timers instead of one. You might want to sample an msp430g2553 chip or just spend another $4.30 and get a newer V1.5 launchpad that come with the msp430g2553 and msp430g2452 chips.
     
    -rick
  9. Like
    bcarroll reacted to bluehash in Do you want a linux binary distribution?   
    Ubuntu-32 bit is mostly used, so that would be a good start.
  10. Like
    bcarroll reacted to Rickta59 in Do you want a linux binary distribution?   
    I'm wondering if there are people out there who have thought about using Energia on linux but when they couldn't find a binary distribution stopped looking? If you would like to see a binary distribution, what linux distribution are you running ubuntu, debian or something else? Is it 64 bit or 32bit? Do you already have the latest msp430-gcc ( 4.6.3 ) or (4.5.3) ? If you don't have a gcc compiler would you want it bundled?
     
    I personally run ubuntu 11.04 32 bit with the latest 4.6.3 compiler.
     
    -rick
  11. Like
    bcarroll reacted to chibiace in Do you want a linux binary distribution?   
    Im using fedora 17 64bit, no luck on getting energia working as of yet.
×
×
  • Create New...