Jump to content

icserny

Members
  • Content Count

    29
  • Joined

  • Last visited

About icserny

  • Rank
    Member

Contact Methods

  • Website URL
    http://esca.atomki.hu/~cserny

Profile Information

  • Gender
    Male
  • Location
    Debrecen, Hungary
  • Github
    https://github.com/icserny

Recent Profile Visitors

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

  1. icserny

    Cannot start Energia-0101E0015

    It is very strange, but now I cannot reproduce the problem. As I have removed or reinstalled several software packages (including JDK, development environments for different microcontrollers etc) in the past days I guess, that it was just a misfortunate interference between different versions of Java or virtual COM drivers. In the Arduino forum I linked above several possible reasons are mentioned.
  2. icserny

    Cannot start Energia-0101E0015

    Finally I could find the exact symptom: Energia 15 could not start if the Energia/libraries folder (located in my user Documents directory) contains anything from my previous developments. It starts however, when that folder is empty. Similar problems were reported in the case of the Arduino IDE 1.0.x and 1.6.x as well. See in this forum: http://forum.arduino.cc/index.php?topic=167553.0 Thank you for your attention!
  3. icserny

    Cannot start Energia-0101E0015

    Of course, the installation directory is c:\energia-0101E0015.
  4. I have downloaded and extracted energia-0101E0015-windows.zip. When I try to run energia.exe the following message is given: Unfortunately, this message is not very informative, so I don't know what is the cause of the problem. I have no such problem with the earlier versions of Energia (including versions 9 - 12).
  5. icserny

    PF0_output_tm4c123gxl

    The PF0 pin shoud be unlocked before setting its mode The code fragment is from an example program from the J. Valvano's EDX course "Embedded Systems - Shape The World" See lines at step 2). SYSCTL_RCGC2_R |= 0x00000020; // 1) activate clock for Port F delay = SYSCTL_RCGC2_R; // allow time for clock to start GPIO_PORTF_LOCK_R = 0x4C4F434B; // 2) unlock GPIO Port F GPIO_PORTF_CR_R = 0x1F; // allow changes to PF4-0 // only PF0 needs to be unlocked, other bits can't be locked GPIO_PORTF_AMSEL_R = 0x00; // 3) disable analog on PF GPIO_PORTF_PCTL_R = 0x00000000; // 4) PCTL GPIO on PF4-0 GPIO_PORTF_DIR_R = 0x0E; // 5) PF4,PF0 in, PF3-1 out GPIO_PORTF_AFSEL_R = 0x00; // 6) disable alt funct on PF7-0 GPIO_PORTF_PUR_R = 0x11; // enable pull-up on PF0 and PF4 GPIO_PORTF_DEN_R = 0x1F; // 7) enable digital I/O on PF4-0
  6. icserny

    energia for MSP430g2553

    You can adopt Arduino projects or libraries. Look for these for example: http://arduinobasics.blogspot.hu/2012/11/arduinobasics-hc-sr04-ultrasonic-sensor.html http://playground.arduino.cc/Learning/TLC5940
  7. icserny

    energia for MSP430g2553

    Note that the HC-SR04 ultrasonic sensor requires 5 V power supply. Sent from my Xiaomi Redmi 1s with Tapatalk
  8. icserny

    MSP430G2553 and HC SR04 ultrasonic sensor

    You can adopt an Arduino project. For example this: http://arduinobasics.blogspot.hu/2012/11/arduinobasics-hc-sr04-ultrasonic-sensor.html Notes: 1. The HC-SR04 module requres +5V supply. 2. A voltage divider or a current limiter resistor may be required to receive the ECHO signal since the MSP430G2553 does not tolerate the 5V signal.
  9. icserny

    Stellaris interfacing with LCD

    1. It depends on the type of the LCD. 2. Probably yes, but you must provide negative voltage for contrast setting. I would prefer to buy 3.3V LCD from E-bay.
  10. icserny

    programming tool -language for children

    Modkit could be an interesting tool for childen, but I have no information about its present status. Sent from my Hongmi 1s by Tapatalk
  11. The latest official version of Energia (energia-0101E0012) does not define TEMPSENSOR for the TM4C1294 MCU. The suggested solution discussed at https://github.com/energia/Energia/pull/364# does not work for me. The function call to analogRead(TEMPSENSOR) is hanging the program. I have found a quick and simply solution for the problem, so anyone can use it until a better solution will be found. 1. Add this line to file pins_energia.h in folder Energia/hardware/lm4f/variants/launchpad_129 #define TEMPSENSOR PB_1 //Will be translated to ADC_CTL_TS 2. In the same file modify the following line (in the definition of array digital_pin_to_analog_in[], near to end of file): NOT_ON_ADC, // 95 - PB_1 unrouted simply replace it by ADC_CTL_TS, // 95 - PB_1 unrouted These modifications define the TEMPSENSOR symbol and will select the internal temperature sensor when readAnalog(TEMPSENSOR) is called. Here is a simple example sketch: uint32_t val; float temp; void setup() { Serial.begin(9600); } void loop() { delay(1000); val = analogRead(TEMPSENSOR); Serial.print("adc:"); //raw ADC data Serial.print(val); temp = 147.5 - 75*3.3*val/4096; //temperature in Celsius Serial.print(" temp:"); Serial.println(temp,1); } Good luck! Istvan Cserny
  12. icserny

    3D model of Stellaris LaunchPad

    See in the STEP file FAQ: http://www.pcb-3d.com/knowledge-base/step-file-faq
  13. Hi @@chicken Thank you very much for your BMP085 library. It works nicely also with the Software I2C Master Library for MSP430G2553 written by Rei Vilo. I tested with MSP430G2 Launchpad and a BMP180 breakout module (bought from Ebay). In the attached screenshot the final value of the pressure was corrected for altitude (that's why the dumped value of p and the pressure are different). Istvan Cserny
  14. You are right, the floating point arithmetic is a waste of memory and CPU time. On the other hand it makes Energy sketches a little more readable. Good question, but I don't expect sub-zero temperature in my room. But merely changing the return type of function tc75_read(void) from uint16_t to int16_t should do the trick. Istvan
×