Jump to content

Rhab

Members
  • Content Count

    31
  • Joined

  • Last visited


Reputation Activity

  1. Like
    Rhab got a reaction from altineller in Problems Using QEI with EK-TM4C123GXL   
    yes and no. i decided to use the clock-direction mode with only one hallsensor, because the signal of both hall-sensors did not fit to what is needed for quadrature-mode (my sensors did not have the state both high, tell me if you need more information...).
    i get the direction directly from my montor-controler and only need one hallsensor as "clock" because every flank (up and down) is counted, there are two counts per revolution. if you know this it should be no problem to use this mode if this is a good enough resolution...
     
    sorry for this late answer
     
    it should be possible to monitor two motors because the the EK-TM4C123 has two QEI-moduls. You should use the QEI-Pins to use QEI, so you have no big choice...
  2. Like
    Rhab reacted to terjeio in Problems Using QEI with EK-TM4C123GXL   
    Use QEI_CONFIG_SWAP instead of QEI_CONFIG_NO_SWAP for QEIConfigure to swap inputs, to invert inputs you have to add the constants yourself as they are not defined in the qei.h for some reason, I think the following defines are correct:
     
    #define QEI_INVA 0x00000100
    #define QEI_INVB 0x00000200
     
    You may also check if SIGMODE is set correctly for your type of input.
                     
    I am using similar code as yours with a stepper motor providing the phase inputs and it works as it should.
  3. Like
    Rhab reacted to Rei Vilo in [Energia Library] LCD_screen Library Suite   
    That's the way for learning!
     
    The LaunchPad TM4C has two 0 ? resistors R9 and R10. R9 connects pin 23 to 14 and R10 connects pin 24 to 15.
     

  4. Like
    Rhab reacted to Rei Vilo in [Energia Library] LCD_screen Library Suite   
    The solution was clearly described at http://www.kentecdisplay.com/uploads/soft/Products_spec/BOOSTXL-K350QVG-S1_UserGuide_04.pdf.
     
    Reading the data-sheets is key for electronics. Ask your teacher to focus on that point. 
  5. Like
    Rhab reacted to Rei Vilo in [Energia Library] LCD_screen Library Suite   
    Try the Protocol example and select your screen.
     
    They are 2 releases of the Kentec 3.5" screen: 8-bit parallel and SPI.
  6. Like
    Rhab reacted to Rei Vilo in [Energia Library] LCD_screen Library Suite   
    Glad you've found a solution. So you're using the SPI version of the Kentec 3.5" screen.
     
    By default, Energia seems to compile all the files in the folder of the library, hence the Screen_ILI9340.h.
     
    The SPI.h capitalisation issues comes from older releases of Energia. Now SPI is always capitalised.
     
    White screen... that's strange. Have you checked the jumpers on the BoosterPack are configured in 4-wire 8-bit SPI?
×
×
  • Create New...