Jump to content
43oh

oliveiracarlos

Members
  • Content Count

    22
  • Joined

  • Last visited

  1. Yyrkoon, perfect ! Now its working. Thanks again.
  2. This IDE looks great ! Thanks for sharing. But after all steps, video 1 and video 2, i got this message: Do you have any idea ? thanks.
  3. I got help from IRC. thanks user "Ike" for the link: https://github.com/energia/Energia/wiki/Hardware
  4. Please people, how do I use the piMode function ? I am trying to use a multiplexer (4051), but I dont how to set the lauchpad pins I wann use the p1.4/p1.5/p2.0 as digital write, and the P1.0 as analog read. But I cant use the 'pinMode(2, OUTPUT);' line code because I dont know the above pins numbers. thanks.
  5. 10k pot (B10k) thanks Rob for your help, but I give up. I gonna try with arduino because i see lots of pot examples working.
  6. PowerX, i am thinking about to choose another one. Another MSP430 example, like i
  7. PowerX, thanks for testing. DanAndDusty, I am too noob to use your code. Could you try to help me plz ? A friend of mine wrote this code. This code is "almost there", a very little instable output: unsigned int pot = 0; unsigned int adc = 0;unsigned int i = 0; long sum = 0; void setup() { Serial.begin(9600); } void loop() { while (i<100){ adc = analogRead(A7); sum = sum + (long)adc; i++; } sum = sum/100; pot = sum >> 3; Serial.print("Average = "); Serial.println(pot); delay(10); i=0; sum=0; } Thanks all, again.
  8. Please people, could somebody try those Rob examples and tell how is the out value in serial application ? Mine is still floating. I think i have 3 bad lauchpads boards. I am getting crazy !!!
  9. Rob, i wanna use the code to send midi messages to my keyboard. But i need no floating values because any change gonna send another message. thanks.
  10. People thx for reply. But I still have the same problem. RobG the code is not stabilizing the values. Even using a laptop in battery mode. I dont know what to do now :cry:
  11. Thanks Rob, but i am using this simple code: unsigned int sensor4Valor; void setup() { Serial.begin(9600); } void loop() { sensor4Valor = analogRead(A7); Serial.print("Pot 1 value = "); Serial.print(sensor4Valor); Serial.println(" | "); delay(1); } Even removing the potentiometer and using a wire between P1.7 and Vcc the value floats from 1022 to 1023.
  12. Thanks all replys. Roadrunner thx for the tip, I have no experience shifting to get results. I really appreciated your help. But cuberge was right, I dont need to convert, just use the 0..127 potentiometer value ! I will let the code here if someone wanna use. This code calcs the checksum used to send messages to Rolands keyboards. Now its workings right. With my [poor] english comments. Hope to help somebody. #include <math.h> int sensor1 = 0; long int sensor1Value = 0; void setup() { Serial.begin(31250); //Starts serial use - 31250 to midi messages } void loop(
  13. Thanks a lot my friend, I will try it.
×
×
  • Create New...