Jump to content
43oh

icserny

Members
  • Content Count

    29
  • Joined

  • Last visited

Everything posted by icserny

  1. 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. 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. 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. 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
  6. 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. Note that the HC-SR04 ultrasonic sensor requires 5 V power supply. Sent from my Xiaomi Redmi 1s with Tapatalk
  8. 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. 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. 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 followin
  12. 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
  15. No, the downloaded program is stored permamently in the flash memory. It will be erased at the next program downloading.
  16. digitalWrite(GREEN_LED, !digitalRead(GREEN_LED)); // toggle green LED Yes of course. You must first read the digital status of the GREEN_LED pin so that you could negate it. An alternative would be: you can store the status of the GEEN_LEED pin in a RAM variable: int ledstate; void setup() { pinMode(GREEN_LED, OUTPUT); digitalWrite(GREEN_LED, HIGH); ledstate = HIGH; } void loop() { delay(500); ledstate = !ledstate; //toggle status digitalWrite(GREEN_LED, ledstate); // update green LED status }
  17. You can by an MSP-TS430PN80USB - MSP43055xx USB 80-Pin Target board which is suitable for that. See at: https://estore.ti.com/MSP-TS430PN80USB-MSP43055xx-USB-80-Pin-Target-board-P1631.aspx
  18. The behaviour on a real printer is the same as with the Microsoft XPS document writer with "Printing to file" option. In Windows (Windows 7 Home premium 64 bit + Java 32 bit) I have to position the cursor at the beginning of the source code, otherwise soma parts will not be printed or left blank. (I have tested it with a short scketch of about 1.5 pages: 20 line froms the beginning and 20 lines from the end - just before the closing bracket were not printed). After positioning the cursor by hand everything was printed fine. Would not be possible to make this "cursor positioning" automatica
  19. I don't see much differences between the last two versions. It seems that both of them printed correctly if I had positioned the cursor at the begin of the source code. (I have tested by using the Microsoft XPS document writer with "Printing to file" option).
  20. UNfortunately I know too little about Tiva microcontrollers.
  21. I have made a trial by using the TivaC Launchpad card (delayMicroseconds(2); and if (counter > 15) were used). I can confirm that sometimes there are unusual results: 1, 2B, 1, D, 3A =? 3A Humidity: 29.9 % Temperature: 26.9 *C 8 7 8 7 8 7 8 22 7 8 22 7 22 8 22 21 8 8 8 8 7 8 7 22 8 7 8 7 22 22 8 21 7 8 22 22 22 8 22 7 40 1, 2B, 1, D, 3A =? 3A Humidity: 29.9 % Temperature: 26.9 *C 8 8 8 8 7 8 7 22 8 7 22 8 22 7 22 22 7 8 8 8 8 7 8 21 8 8 7 8 22 22 7 22 8 7 22 22 22 7 22 8 40 1, 2B, 1, D, 3A =? 3A Humidity: 29.9 % Temperature: 26.9 *C 8 8 7 8 7 8 7 22 8 7 22 22 8 7 22 22 8 8 8
  22. The Energia Reference says: In Energia, however, the tone() function does not plays the tone for the specified duration due to a miscalculation in Tone.cpp. This causes incompatibility compared to the behavior of the tone() function in Arduino. The problem is here: if ( duration > 0 ) tone_periods[n] = (duration * (F_TIMER/2)) / (1000L * tone_interval[n]); else We must not divide F_TIMER by 2, so I modified the code to the following: if ( duration > 0 ) tone_periods[n] = (duration * F_TIMER) / (1000L * tone_interval[n]); else Now it play tunes as expected.
  23. This value of 12 may not be sufficiently large. The best solution is to gather some statistics (see my previous comment in #27).
  24. You can use one of the pins labeled as VBUS (supposing that the board is connected to the PC, ie. USB powered).
×
×
  • Create New...