Jump to content
43oh

vaultingnaq

Members
  • Content Count

    37
  • Joined

  • Last visited

About vaultingnaq

  • Rank
    Advanced Member
  1. Hey everyone, I yet again require your friendly and expert advice I have a 20x4 LCD screen that I want to 'READ' values from. The LCD Screen is from the famous, Kill-A-Watt and I want to read values out from the LCD screen (picture attached) and display them via my Launchpad on the serial port. I am trying to look for tutorials which I can use to connect such a LCD screen to a launchpad, sadly I have not gotten anything solid. I hope I can get some aid tonight on this forum, thanks guys!
  2. The following code is from the virtual_com_cmds: void transmitDataString(char data_mode, char addr[4],char rssi[3], char msg[MESSAGE_LENGTH] ) { char temp_string[] = {" XX.XC"}; int temp = msg[0] + (msg[1]<<8); if(!(data_mode & degCMode)) { temp = (int)(((float)temp)*1.8)+320; temp_string[5] = 'F'; } if( temp < 0 ) { temp_string[0] = '-'; temp = temp * -1; } else if( ((temp/1000)%10) != 0 ) { temp_string[0] = '0'+((temp/1000)%10); } temp_string[4] = '0'+(temp%10); temp_string[2] = '0'+((temp/10)%10); temp_string[1] = '0'+
  3. The following code is from main_ED.c: /*********************** Get Load_Voltage ***********************/ ADC10CTL1 = INCH_2; // A2 - P5 ADC10CTL0 = SREF_1 + ADC10SHT_2 + REFON + ADC10ON + ADC10IE + REF2_5V; // ADC10CTL0 |= REF2_5V; // 2.5V Reference // ADC10CTL1 = INCH_2 + ADC10DIV_3; // Input Selct and Clock Div P2SEL = 0x04; // Pin Select ADC10AE0 = 0x04; // ADC Low Bit (A2) ADC10AE1 = 0x00; // ADC High Bit __delay_cycles(240); ADC10CTL0 |= ENC + ADC10SC; // Sampling a
  4. The following code is from main_AP.c: /*********************** Get Load_Voltage ***********************/ // ADC10CTL1 = INCH_2; // A2 - P5 // ADC10CTL0 = SREF_1 + ADC10SHT_2 + REFON + ADC10ON + ADC10IE + REF2_5V; ADC10CTL0 |= REF2_5V; // 2.5V Reference ADC10CTL1 = INCH_2 + ADC10DIV_3; // Input Selct and Clock Div P2SEL = 0x04; // Pin Select ADC10AE0 = 0x04; // ADC Low Bit (A2) ADC10AE1 = 0x00; // ADC High Bit __delay_cycles(240); ADC10CTL0 |= ENC + ADC10SC; // Sampli
  5. Oh, my bad, it's the same code for the Battery Section and the Hub Section, I can provide the whole code?
  6. Are you referring to the Battery section on the EZ430-Rf2500? In that case, are you hinting that I shouldn't connect the GND to the GND@the Battery pack and instead I should connect it to the EZ430-RF2500 at P1?
  7. Am I asking for something wrong here?
  8. // Get Load_Voltage ADC10CTL0 |= REF2_5V; // 2.5V Reference ADC10CTL1 = INCH_2 + ADC10DIV_3; // Input Selct and Clock Div P2SEL = 0x04; // Pin Select ADC10AE0 = 0x04; // ADC Low Bit (A2) ADC10AE1 = 0x00; // ADC High Bit __delay_cycles(240); ADC10CTL0 |= ENC + ADC10SC; // Sampling and conversion start __bis_SR_register(CPUOFF + GIE);
  9. Hey everyone, I am currently stuck at a point where I don't see any light :-( I am trying to connect EZ430-RF2500 to a Kill-A-Watt (http://media.treehugger.com/assets/images/2011/10/killawatt-watt-meter-photo347.jpg). And the ports that I have used are: P3 (2.0) as Voltage and P4 (2.1) as Current. This is a snippet of my code for my TRANSMITTER/END DEVICE below: ******************************************************************************************************* static void linkTo() { uint8_t msg[5]; #ifdef APP_AUTO_ACK uint8_t misses, done; #endif /* Keep tryin
  10. I am just looking for a simple code to download on the sender and receiver EZ430-RF2500 so that I can read the values from Port 3 and Port 4. And I would like to use Energia to code the target boards, if possible...
  11. Has anyone attempted to connect a Kill-a-Watt to the EZ430-RF2500 before? If yes, could you please guide me through the project? I am currently, creating a full fledged smart grid for my final engineering project and I plan to use the RF2500+Kill-A-Watt to provide me with power consumption values... If no one has ever tried it before, then can someone point me to the direction where I can find some basic coding examples for EZ430-RF2500 on Energia? Your help is much appreciated! Thanks guys!
  12. And, still...I can't send any prompt via serial monitor :-(
  13. I can't communicate with the Serial Monitor...I can run a loop of sending signals to the 6 buttons...R1 ON and OFF works, R2 OFF and ON works but R3 ON and OFF doesn't work. The only thing I can do is, IF the Push button on the LP 1.3 is pressed then simulate the buttons in a predefined sequence. But I am curious as to why P1.6 and P1.7 won't work...I can press the buttons manually, and it would work, but not via LP+Energia....any ideas?
  14. This is what I get when I remove the if condition:
×
×
  • Create New...