Jump to content

Search the Community

Showing results for tags 'processing'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 4 results

  1. On the 'Serial Communication' wiki entry, I see that the 'Software UART' case has not been elaborated or explained, unlike the Hardware UART feature available on v1.5 Launchpads. Can it be used to communicate with a Processing sketch running on PC (running Linux) ? Can someone please confirm that they have got the serial communication working (bidrectional) between MSP launchpad ?
  2. I am trying to run an Arduino program on MSP-430G2452 using Energia. My code is sending data to PROCESSING(I.D.E.) on my computer via usb, to change the colour of a box(made using processing) when a switch is pressed. But it seems that the processing is not receiving anything from the board. Can anybody please tell me what wrong I am doing ? The same code is running properly with the Arduino! CODE FOR ENERGIA:- int switchPin = 7; int LEDPin = 13; void setup() { pinMode (switchPin, INPUT); pinMode (LEDPin, OUTPUT); Serial.begin(9600); } void loop() { if (digitalRead(switchPin) == HIGH) { Serial.write(2); digitalWrite(LEDPin, LOW); } else { Serial.write(1); digitalWrite(LEDPin, HIGH); } delay(100); } CODE FOR PROCESSING:- import processing.serial.*; Serial port; int val; void setup() { size(400, 400); noStroke(); frameRate(10); println(Serial.list()); // print a list of all available ports port = new Serial(this, "COM3", 4800); } void draw() { if (0 < port.available()) { val = port.read(); } background(204); if (val == 1) { fill(255, 127, 0); // fill orange } if (val == 2) { fill(0, 170, 0); // fill green } rect(50, 50, 300, 300); }
  3. I am trying to run an Arduino program on MSP-430G2452 using Energia. My code is sending data to PROCESSING(I.D.E.) on my computer via usb, to change the colour of a box when a switch is pressed. But it seems that the processing is not receiving anything from the board . Can anybody please tell me what wrong I am doing ? The same code is running properly on Arduino ! CODE FOR ENERGIA: int switchPin = 6; int LEDPin = 2; void setup() { pinMode (switchPin, INPUT_PULLUP); pinMode (LEDPin, OUTPUT); Serial.begin(4800); } void loop() { if (digitalRead(switchPin) == HIGH) { Serial.write(256); digitalWrite(LEDPin, LOW); } else { Serial.write(1); digitalWrite(LEDPin, HIGH); } delay(100); } CODE FOR PROCESSING: import processing.serial.*; Serial port; int val; void setup() { size(400, 400); noStroke(); frameRate(10); println(Serial.list()); // print a list of all available ports port = new Serial(this, "COM4", 4800); } void draw() { if (0 < port.available()) { val = port.read(); } background(204); if (val == 1) { fill(255, 127, 0); // fill orange } else { fill(0, 170, 0); // fill green } rect(50, 50, 300, 300); }
  4. Hello everyone I wrote the following code to run a stepper motor in arduino depending upon a UART signal. The UART signal came from processing 2 code. Now instead of an arduino board i want to run the same code on my TIVA C series tm4c123gh6m launch pad what should i do. Note- I used digital pins 8,9,10,11 of the arduino to run the motor. What does 8,9,10,11 refer to in tiva C series? int a=8; int b=9; int c=10; int d=11; void setup() { Serial.begin(9600); pinMode(a, OUTPUT); pinMode(b, OUTPUT); pinMode(c, OUTPUT); pinMode(d, OUTPUT); establishContact(); } void loop() { int tex; tex=Serial.read(); if(tex=='A') { digitalWrite(a,LOW); digitalWrite(b,HIGH); digitalWrite(c,LOW); digitalWrite(d,HIGH); delay(5); digitalWrite(a,LOW); digitalWrite(b,HIGH); digitalWrite(c,HIGH); digitalWrite(d,LOW); delay(5); digitalWrite(a,HIGH); digitalWrite(b,LOW); digitalWrite(c,HIGH); digitalWrite(d,LOW); delay(5); digitalWrite(a,HIGH); digitalWrite(b,LOW); digitalWrite(c,LOW); digitalWrite(d,HIGH); delay(5); } } void establishContact() { while (Serial.available() <= 0) { Serial.write('A'); // send a capital A delay(300); } }
×
×
  • Create New...