Jump to content
43oh

nesslersreagent

Members
  • Content Count

    9
  • Joined

  • Last visited

About nesslersreagent

  • Rank
    Noob Class
  1. Hi, I've designed a circuit to produce a high voltage, high frequency sine wave from a low voltage square, produced by a microcontroller(Stellaris Launchpad). I've used a simple LC oscillator as a voltage magnifier. Voltage input to LC circuit = 3.3v (peak to peak) Voltage out = 54.42v (peak to peak) Resonance frequency = 355kHz The voltage generator produces a square wave Vmax=3.3v, Vmin=0v, with an internal resistance of 20k ohms at a frequency of 355kHz. Duty cycle is 50%. to simulate the microcontrollers output pin. The buffer IC used, is the LMH6321. Is this circuit effective? Are the
  2. Hi, I have modified the code as per Lyon's suggestions and it works! Thanks. Also I've realised that the ADC speed must be changed before the ADC peripheral is enabled. This was the prime cause of all my troubles. Output: 1 2 3 4 5 6 7 8 Code: #include "Energia.h" #include "driverlib/sysctl.h" #include "driverlib/adc.h" void setup() { Serial.begin(115200); Serial.println("1"); //set the speed to 1Msps. SysCtlADCSpeedSet(SYSCTL_ADCSPEED_1MSPS); //enable the adc0 peripherial. Serial.println("2"); SysCtlPeripheralEnable(SYSCTL_PERIPH_ADC0); SysCtlPeripheral
  3. Hi, I've recently upgraded my Energia IDE to the latest release 0101E0011. I'm using the Stellaris Launchpad with lm4f120h5qr. My sample ADC code doesn't seem to work right. Worked well in the previous release of Energia. The code compiles properly but does not produce the right output. The only changes made were to change "ADC_BASE" to "ADC0_BASE" as required. I've added Serial output code for debugging purposes. The serial output produced is: 1 2 3 Code: #include "Energia.h" #include "driverlib/sysctl.h" #include "driverlib/adc.h" void setup() { Serial.begin(115200);
  4. Thanks, That "add user to dialout group" did the trick. Now it works perfectly. And speaking of temperature sensor code, I am actually using your code and it's simple/brilliant! I intend to do more research on Stellarisware and possibly port some over to Energia. Thanks again. Cheers, Shaun
  5. Hi Bernard, Thanks for your solution. My Ubuntu(12.04 LTS) installation now allows me to program my Stellaris Launchpad via Energia. No ICDI driver problems anymore. But I still have to manually enter the command "sudo chmod 666 /dev/ttyACM0" in the terminal else my Launchpad's serial connection is not available in the Energia IDE. This is not a problem but it would help if I could automate this somehow. Note: I'm trying to read serial data(temperature sensor) from the Stellaris via the serial port, so I've got to enable my serial port for this. Cheers, Shaun
  6. Hi, I'm trying to get my Stellaris Launchpad to work with the Energia IDE. I'm told to upload programs and to run the serial port I've got to create a udev entry. I'm relatively new to linux (although not Ubuntu) so could anyone please provide me with a sample udev file. My Stellaris board's on port /dev/ttyACM0, VID=1cbe and PID=00fd. As of now I'm using this -> # This file allows non-root access to TI stellaris launchpad # See udev(7) for syntax. # SUBSYSTEM=="usb",ATTRS{idVendor}=="1cbe",ATTRS{idP roduct}=="00fd",MODE="0666" KERNEL=="ttyACM0",ATTRS{idVendor}=="1cbe",ATTRS{id Product
  7. Hi, Is it possible to use the MSP430 launchpad as a "usb to serial/TTL" interface so that I could use the UART of some other chip/deice to communicate with the PC? Like connecting the respective TXD and RXD pins(of the device) to the launchpad. If so, could you please elaborate on this setup?
×
×
  • Create New...