Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by L.R.A

  1. SD card data logging

    HI EVERYONE, Long time no see. University has been hard, not time for anything. But I am back into the MCU world! And I am having some problems so I first would like to know if anyone ever tried this. I am using a SD card to save data with FATFS. The problem is that the MCU is also doing other stuff... I've been having writes of a few ms which is normal with FATFS. I am considering of course trying to write 512bytes at a time but also implementing DMA on the SPI. But I am not sure the DMA will help. It seems FATFS f_write and the port function disk_write, want to right away read or write more stuff into the card, meaning I would anyway have to wait the couple of ms... Am I wrong in this? (from what I've seen I probably have to directly write into the SD card after pre-allocating a file if I want the DMA to help)
  2. Just 1 question, there can't be switch of context when pulseIn is occurring, correct?
  3. Hi @@curtis63 I would advise to use Energia. Use Energia libraries when you can. If you need some feature not supported by any Energia libraries (user submitted or core) then use more low level programming (using MSP register headers and things like that). This way you get a mix of both and spend the least time developing software. If you would like some debug power, CCS supports Energia sketches. That said I think you can do everything you want with Energia libraries. Note that some problems you might face are not language wise. Yes many times in CCS you use C instead of C++. But you can use C++ just fine if you want, after all you use it with Energia. The thing is, what you will find different is hardware configuration. See it like making a driver for a piece of hardware. 1. Can Energia robustly and without errors do the above things? It can but you of course have to code the MSP correctly for your purpose. 2. Am I wasting my time getting all of the above accomplished using Energia? For what I understood of what you want to do, you will save time using Energia libraries instead of MSP430 register programming. 3. Should I be using Code Composer Studio? You can use it if you need to use debug tools. Otherwise don't bother. 4. Having NEVER developed ANY controller level code outside of Arduino and Energia, what kind of Learning Curve am I looking at to accomplish the above things? If you are talking about implementing in register programming fashion it's a bit hard to start. You will have to understand about registers in general and then learn the MSP430 register (just the ones that you need) and how to access them (by using the names on the headers). When using register programming a Wire.begin() becomes multiple lines of code configuring registers. Not that hard but when you start it can be discouraging to configure them. You also need to learn how interrupts work and how to use them. It may seem a lot but there are very good workshops and resources for the MSP430. Being a TM4C user it makes me envious! But as I (and @energia) said, you should not need any of that 5. Where is the best place to start learning this? There are a ton of MSP430 tutorials and resources from the TI team. I know most for other MSP430s. Not sure if you can consult the cloud. It has a ton of the software and documents: https://dev.ti.com/ But here is a good one for the MSP430G2553. http://processors.wiki.ti.com/index.php/Getting_Started_with_the_MSP430G2553_Value-Line_LaunchPad_Workshop 6. Where is the best place to look for answers to MSP430 development questions? If you are really interested you can make some questions in this forum or TI E2E. btw, if you came from Arduino, remember all launchpads work with 3.3v and most don't have 5v tolerant pins, including the MSP430G2553. So if you are using i2c with a 5V slave, be careful if you use 5V pull-ups. Hope it helps
  4. I have no idea about those particular examples. Usually when using Energia for that I only needed really simple stuff so I used Serial.available on the receiving end to check if anything was received. The serial library has a buffer and automatically stores what was received (of course there's a limit of how much you can receive before having to start emptying the buffer)
  5. Hi guys! I have a little problem here. So I want to make a robot with 2 servo motors. To make it small and easy to use for the kids at the club, I want to use a power bank to power everything. Well I've heard some powerbanks have a minimum current before they shut down. I don't want to use a resistor or a pulsed load to keep the powerbank on if that's the case. So I would like to know if anyone has had experience in using these powerbanks and knows it's good to use with just a microcontroler drawing power from it - the robot has servos but sometimes it can just be standing still. I'm thinking of using this ones (they need to be about 100x25x25mm or less) http://www.ebay.com/itm/USB-2600Mah-Portable-External-Battery-Charger-Power-Bank-for-Cell-Mobile-Phone-/141564208385?var=&hash=item20f5e26501:m:mjdVxgZQJgBThymbmYBeIUA If anyone could help it would be greatly appreciated
  6. So far I am pleasantly surprised as it is still going and already charged it (well it was not all they way discharged when it came). I would post a video but it doesn't seem to support it. How did you open yours? I want to look inside mine but not sure on how to open the case.
  7. Seriously? what a bummer :/ I've been waiting for another before this one.... since august the 15th (this one that arrived was ordered august the 31st)... let's hope that one works. If it arrives.
  8. At the very least there should be a sense resistor. You can increase it but then you limit the maximum current before it cuts off. If there is a voltage divider setting the minimum current, that would be awesome.
  9. @@Fmilburn It arrived. Tested it and there seems to be a lower limit. I would estimate about 50mA. If you draw less than that it turns off... It will work for this little robot, I could have an LED in it flashing too. But it's a shame, can't use it for a project that only has a bluetooth device, a MCU and a IMU.
  10. Ken Shirriff's articles about BeagleBone

    I wonder, the PRU can only be programmed in assembly? I see here many times a RPI running ROS, connected to an Arduino, in robotic platforms. The Sitara with those MCUs could probably be used to substitute both.
  11. You said, any path but still I must ask. Does your windows user name have any weird characters like (how are they called in english), the:
  12. @@energia btw, is MSP432 Energia still not supported in CCS so it the debugger can be used?
  13. I'm probably gonna order some for me too after september starts. Plus,of course, some for this project
  14. btw, anyone interested in this base (@@chicken, @Fmilburn)? I'm probably gonna make another version that has places to fit in the launchpads back female headers. It's based on a project by adafruit, so the rest of the parts are there, I just made a different base. open with adobe reader to look around. It's 130x75mm in size. The powerbank box should be about 2cm of the ground. The powerbank box is 120x25x25mm test.PDF
  15. The circuit seems to be pretty much the same for these ones. I don't think there will be any diference in this model relative to that protectiom. I asked a seller and he said there isn't such protection. So if it comes and there is, then I will ask for a refund based on that answer
  16. This will be mostly for using Arduinos and Launchpads like the TM4C with Energia so if 17mA is good then no problem Thank you very much. Then I might be able to order the whole bunch without having to ask for 1, test and then ask for the bunch
  17. How to store data in TM4C

    btw, using the flash should be easy. The problem is you have to erase an entire block to write it. The TM4C123 has blocks 1KB and the TM4C1294 is of 16KB. So you can for example simply erase an entire block and then write 1 word (or just byte? I don't remember how specific you can write) as data arrives. Since you erased the entire block you can do that. Problem is, if you want to go back and start over the block, or change a value, you have to erase the entire block! Just be aware if you end up using flash
  18. How to store data in TM4C

    Check Tivaware manual on what the functions EEPROMRead and EEPROMProgram take as parameter
  19. How to store data in TM4C

    Note that the EEPROM is kinda small compared to the flash. The TM4C123 has 2KB and the TM4C1294 has 6KB. You access it in blocks of 16 word. There is probably a example in Tivaware. Here is how I enable it: bool eeprom_good = false; if(!SysCtlPeripheralReady(SYSCTL_PERIPH_EEPROM0)) { SysCtlPeripheralEnable(SYSCTL_PERIPH_EEPROM0); while(!(SysCtlPeripheralReady(SYSCTL_PERIPH_EEPROM0))); } if(EEPROMInit() == EEPROM_INIT_OK) { eeprom_good = true; } return(eeprom_good); How I read it: uint32_t temp; EEPROMRead(&temp, address, 4); return temp; And how I write into it: uint32_t temp; uint32_t result; temp = value; result = EEPROMProgram(&temp,address,4); return(result);
  20. It should be kinda compatible yes since the MCUs are similar (but just kinda), but I advise you to not get it. I advise you getting a launchpad and getting the components you need... You can add support to that MCU easily if you need, since it is similar to the currently supported tm4c129 launchpad
  21. How to store data in TM4C

    You can use internal EEPROM or the flash. The TM4C1294 should have more than enough flash, and the tm4c123 should be enough depending on your code size and data size.
  22. Signed too. I've been wanting to learn more on ROTS. Though with 7 classes I probably will only watch it later in vacation... (funny enough I will have real time systems this semester but not specifically RTOS)
  23. I had exactly the same trouble a minute ago with a HC-05 xd
  24. Also note that the programmer + TM4C can take up in total up to 150mA or something. Altough the programmer should not consume much while idle
  25. Increasing PWM Frequencies

    Holy... 256Mhz? That's higher than I ever saw.