Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Antscran

  1. I wrote some stuff on debouncing back in 2014, all the code is for the MSP430 and based on various sources as well as Jack Ganssle's. It might be of some use. http://coder-tronics.com/switch-debouncing-tutorial-pt1/ http://coder-tronics.com/switch-debouncing-tutorial-pt2/
  2. I have not worked that much with the MPU6050 or the MSP432, but usually use lower value pull-ups than 10k as you get a cleaner i2c signal. 4k7 down to 2k2 are usually safe values and it is possible to go lower on 3.3v but probably not necessary in most cases. If you can scope the signal that could be useful to see, as well as the code. Other obvious problems is the wrong address, but assuming you have checked this.
  3. Hi Adnan, I have made a few energy harvesting circuits now and usually use Linear Technology IC's, they offer a good range of options. TI also do a range of devices as well as do other manufacturers, but I am less familiar with these. You need to use a boost or similar topology (Sepic) if you want to have the system running when the solar cell is below the loads running voltage. Unsure of the power output of your solar cell, but this will determine the charging speed of your supercapacitor at any given irradiance level and load requirements. I have not used the voltage range that yo
  4. Cheers for the comments and glad it will prove useful. You can up the refresh rate a bit, also in the CCS preferences menu under debug is a further option for refreshing the the data (forget the exact setting as on my mobile) you can increase this to 100mS Max I believe. The G2553 wasn't up for that and the code I was running, as it proved unstable so set it to 1000mS, but tweaking the settings you can find a balance. I have found the watched expressions don't seem to work on local variables, if someone knows otherwise please let me know. This should work on MSP430 (tested), Tiva
  5. Hi all, Just made a tutorial both written and video on how to use the graphing tool built into Code Composer Studio. I meant to do this awhile back just not had the time until now, hope it proves of some use. http://coder-tronics.com/code-composer-studio-graphing-tool-tutorial/ https://youtu.be/-iGnh0_9YxE Cheers, Ant
  6. oPossum, Thanks for the information this seems to tally-up with the my observations, I will look into the itoa function and also see if I can find alternatives. I was looking at your project, very nice and see you have solved the issue of measuring up to 16MHz despite using a 16Mhz clock is a simple but clever way.
  7. I made some tweaks to the code as below but still have the issue as described char buffer[8]; unsigned long toLCD = Freq; //int counter = 0; int Base = 10; itoa(toLCD, buffer, Base); //char array[6] = { 0, }; setColor(COLOR_BLACK); drawString(17, 80, FONT_LG_BKG, "888888"); setColor(COLOR_ORANGE_RED); //int2ASCII(Freq, array, 0); drawString(5, 80, FONT_LG_BKG, buffer); Now the issue happens pretty much at 32760kHz (adjustment too course on the function generator to be accurate), which happens to be exactly half of what a 16bit integer can hold. Back to more testin
  8. Hi Greeeg, I missed that, obviously! I don't have a function generator at home so will take it down the University lab and test tomorrow. Cheers for your input, Ant
  9. Hi all, After bit of help. I was inspired by this MSP430F550x frequency meter Jazz made and thought I would code one from scratch, different from the one I posted in the that original thread http://forum.43oh.com/topic/3317-msp430f550x-based-frequency-meter/ The one I made works fine but I am having an issue displaying above ~32kHz on the LCD, I know the variable Freq that holds the frequency is correct as viewed this in debug mode. So it must be my implementation of the itoa function or possibly a casting issue?....this is where my C skills are a bit sketchy! The video shows the
  10. I was playing around with the timers in the MSP430G2553 as making a frequency counter test, I don't have a function generator at home so was trying to generate a PWM and then also capture and count it...still working on this and not sure it's possible! However I found this post useful and modified the code a little bit to run on the MSP430G2553, I have only tested it on a 1kHz test signal from my oscilloscope but seems to work and read 1009Hz consistently. Posted the code below so someone else might find it useful. #include <msp430g2553.h> /*** Global variables ***/ volatile unsi
  11. @@Fred I have the DS1074Z great scope it definitely has the feature to be upgraded via software, so no doubt exploitable ;-). I am still in the trial time period so have the decoding and other features enabled. I have used the Saleae products though before and they are very good.
  12. Hi all, Well my programming skills are not as good as most, but could you not use an itoa function to convert a char to an integer, by using a different base value. The itoa code I usually use is linked below by Lukas Chmela. So I guess this is more of a question than an answer, but by changing the int base value, would this not allow char to int conversion? http://www.jb.man.ac.uk/~slowe/cpp/itoa.html
  13. I should have one of these arriving soon, Bluetooth 4 http://www.anaren.com/sites/default/files/Part-Datasheets/A2541R24A_ADB1_Product_Brief.pdf
  14. Hi Pawnie, Firstly sorry to hear you had trouble with my code! I can see one thing I would change and this may help, but if not follow the further steps below. Move the last 4 statements in the Read_adc() function around as below, so the CPU is sent to sleep after the readings from the array are assigned to the variables X_Axis = adc[2]; // adc array 2 copied to the variable X_Axis Y_Axis = adc[1]; // adc array 1 copied to the variable Y_Axis Z_Axis = adc[0]; // adc array 0 copied to the variable Z_Axis __
  15. Hi from Denmark, but I am a Brit
  16. @@zeke and Josh, thanks for the comments Would be interested in feedback from anyone testing the App, as would like to improve this on the longterm. Cheers, Ant
  17. Hi all, I was playing around with the MSP430G2553 and the UART at the weekend, then remembered I had a cheap HC06 bluetooth module. The result being a basic Android app that you can control your launchpad using voice control, it's far from polished but a bit of fun all the same Project tutorial. C code and Android App http://coder-tronics.com/msp430-voice-control-over-bluetooth/ Video demonstration https://www.youtube.com/watch?v=8Z5ixK30Ddc Cheers, Ant
  18. Are you going to use the C2000 spirilis? Sounds like a interesting project so would be good to see any progress updates...
  19. The Launchpad user guide has a nice circuit diagram to follow if need be, and has all the components already mentioned, see page 16 for the MSP430G Launchpad. http://www.ti.com/lit/ug/slau318e/slau318e.pdf
  20. @@bobnova it's very easy to use Go into the debug mode Add a watch expression for the variable you want to graph Right click on the variable in the expressions window, then scroll down to graph Then there are various parameters you can change to display the data if you have any issues let me know and can walk you through it....maybe it's worth a basic tutorial? Not sure if IAR has this feature? As I would like to switch over to IAR at somepoint.
  21. Bit late to the party on this post, but I found the graphing tool in Code Composer Studio very useful to see the direct effects of over sampling. It's not the fasted refresh rate, as in the debug mode you can only get a 100mS maximum refresh rate, but it's really good to see trends in data. This video shows it in action https://www.youtube.com/watch?v=AV4J9uGyiKo&list=UUUIN5H4aVjwwqXUS39_CEBQ I also did some tests with a digital filter using the graph tool and comparing the unfiltered data with the filtered. Both images below are of the same filter, if you refresh the data after
  22. Thanks Zeke, I actually had some help from RoadRunner84 on the some of the code for Part 3.
  23. Can I get mine added to the list http://www.coder-tronics.com/category/msp430/ Cheers, Ant
  24. I maybe misunderstanding the question as only read the thread quickly. I am guessing you need some kind of trigger from what ever is updating the display. The way I see it if the display updates, your interrupt fires and you get the correct square wave pulses great. But if while your in the interrupt and a new set of data is sent to the display then your code comes out of the interrupt only capturing the tail end of the pulse, you will have an incorrect value.
  25. Hi all, I have made a couple of MSP430 Tutorials and thought I would share the links here: ADC tutorial and example code I did this one awhile ago and just covers the ADC with 3 example codes, multiple channels, multiple reads etc http://coder-tronics.com/msp430-adc-tutorial/ Timer tutorial and example code Only posted recently and covers both timers on the MSP430G2253, again with 3 examples PWM, interrupts etc. http://coder-tronics.com/msp430-timer-tutorial/ Programming tutorial covering the GPIO and peripheral registers I found this all a little confusing when I started
  • Create New...