Jump to content
Forum sending old emails Read more... ×

Dortol

Members
  • Content Count

    4
  • Joined

  • Last visited

About Dortol

  • Rank
    Noob Class

Profile Information

  • Location
    Germany
  1. Dortol

    Sending data via USB to another USB

    Thank you very much. OK, this code works very well as a basic solution for PWM with synchronous LED blink. #define LED RED_LED const int PINttl = 11; const int ButtonOne = PUSH2; int PINttlState = 0; int ButtonOneState = 0; void setup() { pinMode(PINttl, OUTPUT); pinMode(ButtonOne, INPUT_PULLUP); pinMode(LED, OUTPUT); } void loop() { ButtonOneState = digitalRead (ButtonOne); // PWM signal about 50% OnTime with synchronous LED blink if (ButtonOneState == LOW) { digitalWrite(PINttl, HIGH); digitalWrite(LED, HIGH); delay(50); digitalWrite(PINttl, LOW); digitalWrite(LED, LOW); delay(50); } else { digitalWrite(PINttl, LOW); digitalWrite(LED, LOW); } }
  2. Dortol

    Sending data via USB to another USB

    Upcoming question is how I send a digital HIGH at PIN11 (2.3) It doesn't work. Why ?.. const int PINttl = 11; const int ButtonOne = 33; Int PINttlState = 0; Int ButtonOneState = 0; void setup() { pinMode(PINttl, OUTPUT); pinMode(ButtonOne, OUTPUT); } void loop() { ButtonOneState = digitalRead (ButtonOne); // the following should be a beginner solution to generate a static PWM signal about 50% OnTime if (ButtonOneState == LOW) { digitalWrite(PINttl, HIGH); delay(500); digitalWrite(PINttl, LOW); delay(500); } else { digitalWrite(PINttl, LOW); } }
  3. Dortol

    Sending data via USB to another USB

    Thanks a lot for that support. I will try to realize it by UART between the electronic parts.
  4. Hi there, first of all sorry but I am a greenhorn in programming a µController :-/ I set myself a new goal that I program a tiny tool to measurer timings of a self made shutter electronic for a camera. For this I would like to send a String by pushing button1 at my MSP430G2553 LaunchPad. The string should be sending via USB connection to PC and again to another USB Port. The hardware at the end of the second USB Port will drive a solenoid. The primary purpose is to measure the delay between sending at the LaunchPad and receiving the driver signal of the solenoid driver. The problem is, I have no idea how does the communication is possible :-/ At this days I understand how some ENERGIA examples does work and I can program some parts by my own. Possibilities of communication is totally new for me. Please could someone give me some tips on how to solve that ? I am grateful for all information.
×