Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Antscran last won the day on July 19 2015

Antscran had the most liked content!

About Antscran

  • Rank
    Advanced Member

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
  • Interests
    Technology, Microcontrollers, Fishing, Photography and the great outdoors as well as a few sports

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  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
  • Create New...