Jump to content


  • Content Count

  • Joined

  • Last visited

  1. As an update, I got some feedback elsewhere on the QEI module problem. I had incorrectly configured the GPIO pins! This line: GPIOPinConfigure(GPIO_PL1_PHA0 | GPIO_PL2_PHB0); needs to be this: GPIOPinConfigure(GPIO_PL1_PHA0); GPIOPinConfigure(GPIO_PL2_PHB0); Now to make the results from the QEI module more reliable!
  2. That's unfortunate. I am indeed hooking up a quad encoder (datasheet). In the meanwhile I thought it could be that the Launchpad wasn't seeing the logical high, as the quad encoder logical output was 5Vs, where the Launchpads logical high input is 2.145V - 4V. Therefore, I made a crude voltage divider to bring the quad encoders output down to 3.3V, but it still doesn't seem to work. I'm gonna try and figure out how to make my own interrupts now, to see if I can just skip the QEI module entirely, but I'm getting a bit confused as to what I'm reading in the Tiva API guide vs. the examples pr
  3. Hey all, I've got a project going where I'm making a PID controlled DC motor using the TM4C1294NCPDT LaunchPad. The idea is to send a set point to the DC motor, whether it be a certain velocity (rpm) or a certain position (in degrees), and the motor will attempt to follow this profile with the implementation of a PID controller. So far, I've completed the code which will drive my motor, which is shown below. This also allows a potentio meter to change the duty cycle, simply to show it is working, and will not be used in the final code. To interpret the velocity and direction of the DC mo
  4. Thanks for the reply! I went back and looked at the "Hello World" example to make it a bit easier on myself. I browsed around to find the include file for the larger Tiva launchpad, which I assume to be: #include <tm4c1294ncpdt.h> So then when I add this, my included libraries are: #include <stdint.h> #include <stdbool.h> #include <hw_memmap.h> #include <hw_types.h> #include <gpio.h> #include <pinout.h> #include <pin_map.h> #include <rom.h> #include <rom_map.h> #include <sysctl.h> #include <uart.h> #include <uartstd
  5. Hi all, Forgive me if this has been asked before, the search function didn't find anything relevant for me. I've just picked up the TIva C Series Connected Launchpad board, and I've been messing around with it. I've mainly been working on some of the examples including already in Energia, and expanding on them to get some different results. I've now found the TivaWare for C Series software package, which comes with another set of examples. I would like to get these examples to work on my board, but I am having some difficulties. I managed to import all of the libraries, but now I g
  • Create New...