Jump to content

777funk

Members
  • Content Count

    36
  • Joined

  • Last visited

  1. Ok thanks! So similarly to Arduino, I will need a USB host. I'd guess it would be something I could find premade?
  2. The device I'm trying to control has a USB port and is recognized as a MIDI device when plugged into a computer. I will check this thread out.
  3. The device I'd like to control has a USB input. On a computer I can send MIDI commands to it and it's recognized as a MIDI device.
  4. I'd like to use just the data pair in a chopped USB cable to send the data to (to only) a MIDI device.
  5. I'd like to send MIDI control commands (or should I say simple Hex 0x00 strings) to a usb port. How can I achieve this? Something not far from this project, but far simpler: I'd like to have a set number of digital inputs that when high will give Hex 0x00 data to a USB output. Is this possible?
  6. If this is redculous forgive me. Still learning C programming. But here's what I just tried and it wouldn't compile: #include Servo myservo; // create servo object to control a servo // a maximum of eight servo objects can be created int pos = 0; // variable to store the servo position void setup() { myservo.attach(9); // attaches the servo on pin 9 to the servo object } Void loop () { void loopyloopA() { for(pos = 0; pos < 180; pos += 1) // goes from 0 degrees to 180 degrees { // in steps of 1 degree myservo.write(pos); // tell servo to go to position in variable 'pos' delay(15); // waits 15ms for the servo to reach the position } for(pos = 180; pos>=1; pos-=1) // goes from 180 degrees to 0 degrees { myservo.write(pos); // tell servo to go to position in variable 'pos' delay(15); // waits 15ms for the servo to reach the position } } loopyloopA(); }
  7. I have a program with some pretty repetitive blocks of code (i.e Loop A, Loop B, Loop C, then Loop A again... etc) , is it possible to define an entire loop as a single line/function? For example say A=the below code: { for(pos = 0; pos < 180; pos += 1) // goes from 0 degrees to 180 degrees { // in steps of 1 degree myservo.write(pos); // tell servo to go to position in variable 'pos' delay(15); // waits 15ms for the servo to reach the position } for(pos = 180; pos>=1; pos-=1) // goes from 180 degrees to 0 degrees { myservo.write(pos); // tell servo to go to position in variable 'pos' delay(15); // waits 15ms for the servo to reach the position } }
  8. Curious how it works out? I just switched from XP to Ubuntu a couple weeks ago. I still have the dual boot for things that can cause grief running in Linux but I'm curious if this is one of those that will work fine or be a problem. Arduino has a Native Linux install. That was actually pretty easy. Still haven't used it yet but it's there when I need it. Wondering about CCS?
  9. I'm trying to get a 0-5V signal to control a PWM duty cycle. I'm pretty confused by that first example. Is there anything tutorial etc on this type of thing available?
  10. Hi Blue, Not sure I understand what you mean about the platform. But some details, I'm using CCS, Launchpad, and an MSP430 chip (MSP430G2001). I'm wanting to use a pot to vary PWM.
  11. Curious if there is anyone who has sample code for a dimmer using a pot/analog reference voltage?
  12. I have wondered this for a while. Seems like it would be an IF/ELSE case but is it possible to have a switch to toggle the chip between two programs? Maybe the IF/ELSE wouldn't be real time or fast enough. But I'm curious the best way to go between two programs.
  13. I noticed that the 47k has to be there to allow the chip to run. Not sure why that would be.
  14. I am not sure what these two caps on the MSP430 Evaluation Board are for. One is 0.1uF and the other is 1000pF I believe. But what are they for and why are they different values? I'd assume they're doing the same thing. I'm guessing to send noise to ground maybe???? Also, why do these pins need to be Pulled Up with the 47k resistors for the chip to work?
  15. Ok... I forgot the 2 - 47k resistors from V+ to pin RESET and pin P1.3 (S2). Added those in and the two caps from those pins to ground and it's working. I remembered that in my first experimental board and forgot it in this second test. There's the problem. Thanks for the clue there Rob. I was really scratching my head.
×
×
  • Create New...