Jump to content

All Activity

This stream auto-updates     

  1. Today
  2. RGB_LED_RANDOM not working

    The code was for the LM4F120H5QR / TM4C123GH6PM. On the TM4C1294NCPDT, the LEDs aren't PWM. See the pins map! Select pins in violet instead on the pins map.
  3. SSD1308 I2C OLED - Stellaris driver API

    tm4c123g = new name for Stellaris.
  4. SSD1308 I2C OLED - Stellaris driver API

    hello .... will it work for tm4c123g?
  5. Anyone interested in grouping PCB fab orders?

    Thanks. There is a pattern. Account suspended until the user responds back.
  6. RGB_LED_RANDOM not working

    This still isn't working. I've taken my code and added the pinMode() into the setup routine. Still no joy. Your supplied code didn't compile giving me errors that 'BLUE_LED' was not declared in this scope. I re-wrote the code so that i could get it to compile and whilst i'm seeing the serial port information, the RGB LED isn't coming on. As i can't get the PWM to work i have to now point the finger at the underlying code behind analogWrite() for my board EK-TMC1294XL. How would i go about writing my own analogWrite() routine, i.e. writing/reading to the micro registers directly?
  7. Support for C2000 by Energia has been discontinued. Try using an earlier version of the C2000 Code Generation Tools. On macOS, release v15.3.0 works for me.
  8. May be it is noise but not external.... cuz if i use internal Pulldown resistor , I am getting the same result. But If I connect it to 3.3V ....I am getting almost constant 4095 value. I have also tried using hardware avg and dither enable. When using hardware avg it is taking avg over the noise and thus giving a value between 10 to 15. But I need 0 output when connected to GND.
  9. Hi, I am trying to run F28027F launchpad with Energia E17 and I have the errors below when I run the example file at Basics/Blink. The positions of the switches S1 are UP, DOWN, DOWN. Position of the switch S4 is UP. Jumpers for J1, J2 and J3 are in place. I installed C2000 Code Generation Tools v18.1.0.LTS on a 64-bit Windows 10 operating system. I will appreciate if someone can help. Ekrem. Error message: "...\energia-0101E0017\hardware\c2000\cores\C2000\main.cpp" line 14: warning #218-D: controlling expression is constant "...\energia-0101E0017\hardware\c2000\cores\WString.cpp" line 67: error #136: namespace "std" has no member "ltoa" "...\energia-0101E0017\hardware\c2000\cores\WString.cpp" line 75: error #136: namespace "std" has no member "ltoa" "...\energia-0101E0017\hardware\c2000\cores\WString.cpp" line 84: error #136: namespace "std" has no member "ltoa" "...\energia-0101E0017\hardware\c2000\cores\WString.cpp" line 93: error #136: namespace "std" has no member "ltoa" "...\energia-0101E0017\hardware\c2000\cores\WString.cpp" line 101: error #136: namespace "std" has no member "ltoa" "...\energia-0101E0017\hardware\c2000\cores\WString.cpp" line 67: error #261: namespace "std" has no member "ltoa" "...\energia-0101E0017\hardware\c2000\cores\WString.cpp" line 67: error #269: namespace "std" has no member "ltoa" "...\energia-0101E0017\hardware\c2000\cores\WString.cpp" line 67: error #277: namespace "std" has no member "ltoa" "...\energia-0101E0017\hardware\c2000\cores\WString.cpp" line 285: error #136: namespace "std" has no member "ltoa" "...\energia-0101E0017\hardware\c2000\cores\WString.cpp" line 67: error #293: namespace "std" has no member "ltoa" Compilation failure
  10. Sounds like noise. How is the ADC input physically connected to ground? If it is a long jumper wire you may want to shorten it as much as possible. A long jumper wire will act as an antenna, picking up noise from the digital clocks on your board. Another thing you can try is placing a small capacitor right at the ADC pin to ground.
  11. Yesterday
  12. I cant compile codes for tm4c123g anymore. My boards suddenly disappeared from board manager. Now when I want to open it, it shows the following error: Error downloading http://www.energia.nu/packages/package_index.json java.lang.RuntimeException: java.lang.Exception: Error downloading http://www.energia.nu/packages/package_index.json at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$0(ContributionManagerUI.java:151) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.Exception: Error downloading http://www.energia.nu/packages/package_index.json at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:113) at cc.arduino.contributions.packages.ContributionInstaller.download(ContributionInstaller.java:330) at cc.arduino.contributions.packages.ContributionInstaller.downloadIndexAndSignature(ContributionInstaller.java:305) at cc.arduino.contributions.packages.ContributionInstaller.updateIndex(ContributionInstaller.java:283) at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$0(ContributionManagerUI.java:147) ... 1 more Caused by: java.io.IOException: Received invalid http status code from server: 416 at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:194) at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128) at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:111) ... 5 more
  13. I am using TM4C123GXL launchpad ....MCU TM4C123GH6PM.... when I am trying to read ADC value using analogRead() it is fluctuating very much....even if I directly connect it to the GND pin it is giving random value between 0 to 50( 50*0.8mV = 40mV).
  14. measure battery voltage level

    Hi @kiMedia You cannot supply 12 V to the G2553 directly without damaging the microcontroller - see datasheet for maximum voltages. Use an external voltage divider to get to safe values. Do a search on this site for how to use internal references - eg
  15. ADC not giving 0 value when grounded

    Please have a look at What Information to Provide When Asking for Help so others can help you.
  16. When using analog read function, ADC never gives 0 value even when it is directly connected to the ground. But when I connect it to 3.3V it gives constant 4095 value. What is the problem?
  17. I would like to measure the voltage of a NiMH DC battery not exceeding 12V and I just knew that msp430g2553's ADC has an internal voltage divider. Is it appropriate to use the internal voltage divider directly without any external circuit?
  18. These processes can be quite complex and the control is very dependent on the system. Autotune doesn't always work and hand tuning is sometimes necessary. It is impossible to guess what the constants should be without knowledge of the system and possibly experimentation. Read the background material in the link I have given above for a better idea of how PID works. If I remember correctly there is a very good link to a method for hand tuning when autotune fails.
  19. Last week
  20. PID Autotune

    No need to cross post. See Netiquette for Newbies.
  21. Is the issue specific to Energia, or do it also occurs on Arduino? For the latter case, open a ticket at the GitHub repository.
  22. PID Autotune

    I am building a code to control a heater with a PWM output connected to an SSR using the Arduino-PID-AutoTune-Library. There are two issues I am currently facing with the above library while using the normal mode(not simulating but using actual analog input of a thermocouple) of operation. https://github.com/br3ttb/Arduino-PID-AutoTune-Library 1> The temperature overshoots when I start the operation. I tried several values for the constants(kp=2,ki=0.5,kd=2; kp=1,ki=0.8,kd=0.8; kp=1,ki=0.5,kd=0 etc), but still the temperature overshoots by a significant amount. For eg, if the Setpoint is 100 C, the process value goes upto 130-140 C before coming back to stable state between 95 to 110 C. 2> When I use the Auto tuning feature, the Arduino enters the tuning mode, but the PWM output count just toggles between 50 and 150 and it never comes out of Autotune mode and the temperature goes on increasing continuously even beyond 200 C although the set point is 100 C. Can you please help me rectify the problem? Thanks sketch_feb12a.ino
  23. I am building a code to control a heater with a PWM output connected to an SSR using the Arduino-PID-AutoTune-Library. There are two issues I am currently facing with the above library while using the normal mode(not simulating but using actual analog input of a thermocouple) of operation. https://github.com/br3ttb/Arduino-PID-AutoTune-Library 1> The temperature overshoots when I start the operation. I tried several values for the constants(kp=2,ki=0.5,kd=2; kp=1,ki=0.8,kd=0.8; kp=1,ki=0.5,kd=0 etc), but still the temperature overshoots by a significant amount. For eg, if the Setpoint is 100 C, the process value goes upto 130-140 C before coming back to stable state between 95 to 110 C. 2> When I use the Auto tuning feature, the Arduino enters the tuning mode, but the PWM output count just toggles between 50 and 150 and it never comes out of Autotune mode and the temperature goes on increasing continuously even beyond 200 C although the set point is 100 C. Can you please help me rectify the problem? Thanks sketch_feb12a.ino
  24. RGB_LED_RANDOM not working

    You need to initialise the outputs! As always, the more obvious the cause, the more difficult to find it!
  25. RGB_LED_RANDOM not working

    This code works for me. [edit] on LaunchPad LM4F120H5QR / TM4C123GH6PM. [/edit] #include "Energia.h" void setup() { pinMode(RED_LED, OUTPUT); pinMode(GREEN_LED, OUTPUT); pinMode(BLUE_LED, OUTPUT); Serial.begin(9600); Serial.println(); Serial.println("RGB\tR\tG\tB"); } void writeRGB(uint8_t valueRed, uint8_t valueGreen, uint8_t valueBlue) { analogWrite(RED_LED, valueRed); analogWrite(GREEN_LED, valueGreen); analogWrite(BLUE_LED, valueBlue); } void loop() { uint8_t valueRed = random(255); uint8_t valueGreen = random(255); uint8_t valueBlue = random(255); Serial.print(millis()); Serial.print("\t"); Serial.print(valueRed); Serial.print("\t"); Serial.print(valueGreen); Serial.print("\t"); Serial.print(valueBlue); Serial.println(); writeRGB(valueRed, valueGreen, valueBlue); delay(333); } And the video at vimeo.com/256190702.
  26. I tested your port on the new Launchpad MSPFR5994: This card already has an SD card mounted, and everything works perfectly. Thank you very much for your work
  27. RGB_LED_RANDOM not working

    If i'm understanding the documentation i have correctly, the RGB LED is wired to PWM channels. Plus the software i have is provided not written by myself, so i presume somebody has written and tested it. I must be doing something wrong but i don't see what!
  28. RGB_LED_RANDOM not working

    That would mean this pin does not feature PWM.
  1. Load more activity
×