Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by altineller

  1. Hello, Is it possible to use the XDS110 debug probe with Energia? And if so, how? Best regards, -C.
  2. I have made a simple implementation of an ANN that runs on the Tiva-C and 5529 using c++. It basically is a spiking neural network where the input is summed, and if above threshold, that neuron fires all the axons with 1 * W. There is also a mechanism of decay of the firing rate each time the neuron runs, and a mechanism to modify the neurons firing time, (the more the sum is, the quicker it fires, with in a range.) So the output from each neuron is always one, but the frequency differs. So, it is a trivial spiking neural network but it works. I already connected 4 light sensors, 4 input
  3. Hello, What is the status of Wire.h when using energia with the tiva-c board? Since there is the BoardManager in E18, the file layout has changed. Which leads to some confusion. eagle@daredevil:~$ find . -type f -name "Wire.h" ./.energia15/packages/energia/hardware/msp432/3.8.0/cores/msp432/ti/runtime/wiring/Wire.h ./.energia15/packages/energia/hardware/msp430/1.0.2/libraries/Wire/Wire.h ./.energia15/packages/energia/hardware/tivac/1.0.2/libraries/Wire/Wire.h ./.energia15/packages/energia/hardware/msp432r/5.6.0/cores/msp432r/ti/runtime/wiring/Wire.h ./bin/energia-1.6.10E18/hardware/en
  4. Has anyone seen the : Mini-M4 for Tiva-C https://download.mikroe.com/documents/starter-boards/mini/tiva/mini-m4-tiva-manual-v100.pdf Would it be safe to assume that it could run energia? Best, C.
  5. Hello, After installing E18, and getting the TivaC board package with packages manager, when I try to upload a program into the Tiva-C board I get the following error: fork/exec /home/can/.energia15/packages/energia/tools/arm-none-eabi-gcc/4.8.4-20140725/bin/arm-none-eabi-g++: no such file or directory Error compiling for board LaunchPad (Tiva C) w/ tm4c123 (80MHz). If I go the the mentioned directory, I can see that the arm-none-eabi-g++ executable exists by: $ file arm-none-eabi-g++ arm-none-eabi-g++: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamical
  6. Hello, Is there any way to figure out if a Tiva-C board is being powered with the usb connector, or from an external power supply connected to vbus? This is the problem I am facing: I am poweing Tiva-C board from the vbus connector, on a robot. At times we need to connect the usb cable for programming. Since VBUS is connected to external battery, it will "some times" (most of the time) - crash the computer. So I am using a pololu switching regulator, with a shutdown control pin. What I would like to do is, the device to figure out if usb power is being used, and shutdown the ext
  7. yes i did. i tried all the spi dividers upto div128. tomorrow, i am going to hookup a logic analyzer to spi pins and try to debug and post the results. Sent from my iPhone using Tapatalk
  8. hello, i have the 5110 working with tivaC. i think i had to change the spi clock divider and spi mode. also i remember, different batches of screen from different sources required different settings. Sent from my iPhone using Tapatalk
  9. Hello, yes I set the CS as explained in my previous reply. I also checked the ds3232 sheet, and for CS it is active when it is low. I got this from the ds3234 datasheet, And on codewise: void DS3234_set_addr(const uint8_t pin, const uint8_t addr, const uint8_t val) { digitalWrite(pin, LOW); SPI.transfer(addr); SPI.transfer(val); digitalWrite(pin, HIGH); } the CS pin is pulled low, and then spi transfer is made in two operations always, then CS pin is pulled high. Is this correct? Best regards, C.
  10. Hello, Yes, I configured the CS pin as output. Relevant init code as follows: const int CS = PB_5; void DS3234_init(const uint8_t pin, const uint8_t ctrl_reg) { pinMode(pin, OUTPUT); SPI.setModule(2); SPI.begin(); SPI.setClockDivider(SPI_CLOCK_DIV16); SPI.setBitOrder(MSBFIRST); SPI.setDataMode(SPI_MODE3); DS3234_set_creg(pin, ctrl_reg); delay(100); } For some reason it will not read values the right way. I put a serial.print(char); in the for loop where it reads time, and figured out it will read only 0x00. The code works on the msp430g5529.
  11. Hello, I am having trouble using a SPI DS3234 RTC with Energia and TivaC series launchpad. I am using the ds3234 library at https://github.com/rodan/ds3234 which is originally written for arduino. I modified few settings in the initialization, tried few things, but have not had any luck. The module will not talk spi at all, and I get 1900.00.00 00:00:00 for date all the time. Here is the relevant code from the init section: void DS3234_init(const uint8_t pin, const uint8_t ctrl_reg) { pinMode(pin, OUTPUT); SPI.setModule(2); SPI.begin(); SPI.setClockDivider(SP
  12. Hello All, I made a PID controller, using a TivaC board and VNH2SP motor driver and encoder motors, which are read by the hardware QEI. All works well, and I have been able to get more resolution and run it faster and with smoother output compared to my previous implementations on arduino. Also, because of the QEI, it is much less components and wiring on the circuit side. Right now I am using double for PID calculations. Would I benefit from using float ? I am inclined to give it a try, but I wanted to ask in this forum. How is double and float handled in TM4C123 platform. Best Re
  13. Hello, I am using the latest energia release 0101E0017 and suddenly analogWrite and PWMWrite does not work on my TivaC Board, with TM4C123 #define EN_A PF_0 #define EN_B PF_1 #define IN1 PE_0 #define IN2 PE_1 #define IN3 PE_3 #define IN4 PE_2 #include <wiring_analog.c> void setup() { pinMode(EN_A, OUTPUT); pinMode(EN_B, OUTPUT); pinMode(IN1, OUTPUT); pinMode(IN2, OUTPUT); pinMode(IN3, OUTPUT); pinMode(IN4, OUTPUT); digitalWrite(IN1, LOW); digitalWrite(IN2, HIGH); digitalWrite(IN3, LOW); digitalWrite(IN4, HIGH); } void loop() { PWMWrite(EN_B,
  14. Hello @@chicken, I am trying to use your library for a PPM decoder. (PPM as in radio control standard) Basically I need to do a: attachInterupt(PIN, isr_routine, CHANGE); in the setup, then: timer.start(); isr_routine() { process_value = timer_val; timer.reset(); // process the value } So I basically need to be able to start a timer on demand, and read value of it, then reset it, but programmatically, not by reading a pin? Any ideas on how to modify this library to accomplish something similar? The arduino equivalent of this code is below: #define
  15. Thanks, well I have multiple motors with different encoders, so I will try soon. It would be really exciting to get that board working with high res QEI. Yes about sensors you mentioned `my sensors did not have the state both high` what does this mean? I have square wave sensor outputs, usually overlapping to a degree, and if on falling edge of A, B is high that is forward, and if the falling edge of A has B low, that is reverse. Would that be sufficient? Best regards, C.A.
  16. Hello Rhab, In the past I made a pid controller for pololu n20 motors with encoders. (tiny little motors) At the beginning I was using an optical encoder, which turned out to be problematic, (since they require external signal processing, and output not square but sine wave, and that sine wave can change in amplitude and offset depending on the position of the encoder disk to the sensor, they were problematic) Then I got the same encoders with hall effect sensors, which did indeed output pure square wave. I then used interrupts to read encoder outputs, and driving two motors with the t
  17. Hello All, I am working on a circuit on phase comparison. I managed to build an edge sensitive phase detection circuit, like in the 4046 PLL using only nand gates. The phase detector outputs phase differences, and depending on sign of phase (that is which pulse comes first, CLK or SYNC) it will output a phase difference signal, negated if phase is negative. The logic analyzer output is shown below: The first capture at the top is when CLK comes first. As you can see the signal labeled PHASE at below correctly outputs a pulse for phase difference in falling edges of the inc
  18. Hello, I too want to use the QEI for a project, and I was wondering which launchpad you are using: The title says "EK-TM4C123GXL" which is the Tiva-C series connected launchpad? Is this correct? Best regards, C.A.
  19. Hello, I am currently working on syncronizing two RTC's, where I am using a Tiva-C series TM4C123 Launchpad. I basically have two ISR's like: void rtc_isr() { time_micros = micros(); rtc_flag = true; } void sync_isr() { sync_micros = micros(); sync_flag = true; } void loop() { if(rtc_flag) { mcu_offset = time_micros - prev_time_micros; prev_time_micros = time_micros; DS3231_get(&timestamp); print_time(); rtc_flag = false; } if(sync_flag) { sync_offset = sync_micros - time_micros;
  20. Hello, I know this is an old post but how is two timers being used? and what is the advanage of using wdt timer for this, instead of timerA. Best regards, C
  21. Hello, pinMode(P5_5, INPUT) will return a compiler error due to P5_5 not being defined. I understand the naming scheme has changed, I tried P55, P_55 and 55 with no luck. How do we refer to pins for msp432 for making a simple digitalRead? Best regards, C.
  22. Hello, Upon more debugging and coding, I found out that if you access i2c from a function driven by a clock, it crashes the sketch. For the above code if I move the measure_parameters inside the loop, and comment out the clockMeasure, it will run. Best regards, C.A.
  23. Hello, I got my msp432 LP and started porting some of my previous code to the newer Energia MT, using the clock library. I want to measure number of variables from my sensors, and display them on the Sharp LCD board. Namely: float sensors[15]; Clock clockDisplay; Clock clockMeasure void setup() { ... clockDisplay.begin(update_display, 1000, 1000); clockDisplay.start(); clockMeasure.begin(measure_parameters, 1000, 100); clockMeasure.start(); ... } void update_display() { screen.clearBuffer(); screen.text(10, 10, floatToString(buffer, senso
  24. I will make a speed test for this with a signal generator, and scope. For many reasons, writing to energia ports are sometimes slow. I just could not fix my bricked 5529 and waiting for a new one. Best, C.A.
  25. Hello, I am uploading a working test of a very simple program that works with https://github.com/energia/Energia/tree/issue_696build of energia. I had to download this from github as a zip file, then also download emt-master.zip, and unzip it into the emt directory. Then I changed dir to build and issued: ant dist There were few problems, one being it did not find energia.h, so I had to change it to Energia.h Then I also had to copy Clock.h and Clock.cpp and Sharp library files, as well as rtosGlobals.h and then by looking at multiblick with clock example, I wrote the foll
  • Create New...