Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by Rhab

  1. Hi guys, i try to connect a SD-Card to my Tiva-C Launchpad using the SD-Card-Boosterpack . But i always get an error: "Failed with rc=6". The Launchpad-Pins i use for my first testing are: PD0: SCLK PD1: CS PD2: MISO PD3: MOSI i use the sd-cardtutorial with little changes: because tm4c has no temprature-sensor i commented // analogReference(INTERNAL1V5);// analogRead(TEMPSENSOR); and i changed ui32_ReadTemp = ((uint32_t)analogRead(TEMPSENSOR)*27069 - 18169625) *10 >> 16; to ui32_ReadTemp = ((uint32_t)millis()); that should lead to usable values...
  2. By now i use a SD card, or i try to use it. When i started this topic i was thinking about several options to manage a mass storage and because i already had a micro-usb-stick i thought it would be nice to solve it that way.
  3. ok i try to explain it with pictures... this is how my output-signals look like and this is what the qei expexts: (can be found on page 1309 of Tiva
  4. 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
  5. No, not for the EK-TM4C123. But there is an ccs-example for DK-TM4C123 and it should be possible to adapt it to EK-TM4C123, but that means much work if you want to adapt it to energia... if someone wants to do this work it should be mentioned that on the EK-TM4C123 the VBUS and ID pin are not connected. You would have to put in resistors. (How this works can be read at the userguide of EX-TM4C123)
  6. This is correct. It is one of the Tiva C series connected launchpads. The cheapest one. http://www.ti.com/ww/en/launchpad/launchpads-connected-ek-tm4c123gxl.html#tabs best regars rhab
  7. found my problem signal doesn't fit to what quadrature, so i can't use qei to detect direction... but i can detect velocity and count position with clock_dir...
  8. My cable had a problem, but the code doesn't work... i tested the signals with an oscilloscope, i tested the inversion wir clock-dir-mode, i think the unlocking should work too... In CLOCK_DIR mode i see that position is counted if the magnet passes (2 counts each time) it works with both signals (tested by swapping PhA an PhB). In QUADRATURE mode, the position counter doesn't work. Sometimes it +1 or -1 around the base value but it doesn't count the rotations... I have unlocked PD7 and i think this works... (see clock_dir mode), the inversion works because the direction in clock_dir mod
  9. i think i have a problem with my hardware, found out, that it is possible to change the velocity-value by shaking the cables... so maybe my code works
  10. yes, this are hall-sensors... thanks for your code i can't see huge differences but the order is a bit different, so i'll try some things and maybe i'll have success...
  11. solved my Problem... i forgot myScreen.setFontSolid(true); now it works
  12. Thanks, after you told me what the clock/direction-signal should be, i am sure that i have to use quadrature... i have two signals following each other... the picture shows the QE-sensors and the engine shaft with a magnet....
  13. hi, now i got a new problem. what i want to do is switching between different "screens", which all show different measurement-data (as changing string). If i use only one "screen", there is no problem. But in the moment i draw a button (which should be used to switch "screen") the changing values can't be displayed correct (the value is only white pixel-bulk) here you can see the value 2x (second character is changing in this moment) without button here you can't see any value with button... here is my code(the functionality of the button is not implemented yet, but this shouldn
  14. Hi guys, has anyone tried to use a micro-USB-stick as mass-storage to log measurement-data with EK-TM4C123GXL launchpad? are there any tutorials or maybe at least libs for how to use usb/log data? I would be very happy if anyone could help me.
  15. does this boosterpack work with EK-TM4C123GXL ?
  16. thanks for your hint... i found out that there is a hw_qei.h with: #define QEI_CTL_INVB 0x00000400 // Invert PhB #define QEI_CTL_INVA 0x00000200 // Invert PhA so i included it ( #include "inc/hw_qei.h") i think i have to set this with: HWREG(QEI0_BASE + QEI_O_CTL) |= QEI_CTL_INVA; HWREG(QEI0_BASE + QEI_O_CTL) |= QEI_CTL_INVB; but i'm not sure about it and i'm not sure where to place it... all in all it doesn't work right now i think my sigmode is set correct, but i am not 100% sure, i have two sensors (A and B ) that are placed in an 90
  17. Hi, i want'to use QEI to detect velocity and position of an electric motor. But it doesn't work as suggested. So I hope that anyone has an idea how to solve the problem. The main problem could be that my PhA and PhB Signals are inverted, that means standard-state is 3.3V and pulse-state is 0V. If I understood the TM4C123GH6PM Microcontroller datasheet it is possible to set PhA and PhB on inverted, but i don't understand how this works (Pages 1312-1314). The second thing which i gues that could be wrong is unlocking of PD7 (if i use QEI0), but i have the same problem if i use PC
  18. ok if i use GPIOPinConfigure(0x00031806); // 0x00031806 =>GPIO_PD6_PHA0 GPIOPinConfigure(0x00031C06); // 0x00031C06 => GPIO_PD7_PHB0 it works... But is there any possibility to use automapping?
  19. you're right... and not only the ti-datasheet, but also the manufacturer-datasheet too...
  20. After installing a few libraries with examples on my laptop (fedora 20 / linux) everything worked perfectly while using my 23" screen but without this large screen i couldn't start energia. When starting energia via terminal (./energia) i got java exceptions: Exception in thread "main" java.lang.IllegalArgumentException: scrollCount and interval must be greater than 0 at processing.app.tools.MenuScroller.<init>(MenuScroller.java:310) at processing.app.tools.MenuScroller.<init>(MenuScroller.java:283) at processing.app.tools.MenuScroller.setScrollerFor(MenuScroller.java:166) a
  21. Thank you very very much. Now my Display works as it should work.
  22. Hi, i'm trying tu use a qei too, but i always get errors like error: 'GPIO_PD6_PHA0' was not declared in this scope also with the code-example above... can someone tell me what i'am doing wrong? i think GPIO_PD6_PHA0 is declared in pin_map.h ... i am using EK-TM4C123GXL
  23. II'm not sure about pin 24. I'm going to remove R10, i'll tell you if it works or not.
  24. this leads to compilation error: LCD_protocol_Terminal_test.cpp:125:16: error: cannot declare variable 'myScreen' to be of abstract type 'Screen_K35_SPI' Screen_K35_SPI myScreen; ^ In file included from LCD_protocol_Terminal_test.cpp:124:0: /home/patrick/sketchbook/libraries/LCD_screen/Screen_K35_SPI.h:76:7: note: because the following virtual functions are pure within 'Screen_K35_SPI': class Screen_K35_SPI : public LCD_screen_font { ^ In file included from /home/patrick/sketchbook/libraries/LCD_screen/Screen_K35_SPI.h:62:0, from LCD_protocol_Termi
  25. Thanks. If i want to use touch, option 2 is not possible, but i want to try if it works before "destroying" my hardware... but i don't now what to comment... the function void Screen_K35_SPI::_getRawTouch(uint16_t &x0, uint16_t &y0, uint16_t &z0) has no content i think...
  • Create New...