Jump to content
43oh

sirri

Members
  • Content Count

    161
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    sirri reacted to Rei Vilo in Reading internal temperature sensor value   
    The built-in temperature sensor isn't very accurate. For a more accurate sensor, consider instead
    the TMP102 (operates with I2C bus, library at http://github.com/energia/Energia/tree/master/examples/6.Sensors/I2C_TMP102_Thermometer_430) or the thermo-cum-hydrometer DHT22 (one-wire, library at http://forum.43oh.com/topic/2865-energia-library-dht22-temp-rh-one-wire-sensor/). Enjoy
  2. Like
    sirri reacted to Rei Vilo in Reading internal temperature sensor value   
    Release 9 of Energia carried a series of changes
  3. Like
    sirri reacted to energia in Serial.parseInt() Help please   
    Happy to hear you got it working.
  4. Like
    sirri reacted to Rei Vilo in Serial.parseInt() Help please   
    That's the subtle but annoying difference between print() and write() introduced by Arduino 1.0...
  5. Like
    sirri got a reaction from energia in Serial.parseInt() Help please   
    int var2 = 0; // for incoming serial data
    int var = 0; // for incoming serial data




    int segA = P1_3;
    int segB = P1_4;
    int segF = P1_5;
    int segG = P2_0;
    int segE = P2_1;
    int segC = P2_2;
    int segD = P2_3;

    int dig1=P1_7;
    int dig2=P1_6;
    int dig3=P2_5;
    //int dig4=P2_4;
    int dig4=P2_4;
    int sayi;
    byte seven_seg_digits[10][7] = { { 1,1,1,1,1,1,0 }, // = 0
    { 0,1,1,0,0,0,0 }, // = 1
    { 1,1,0,1,1,0,1 }, // = 2
    { 1,1,1,1,0,0,1 }, // = 3
    { 0,1,1,0,0,1,1 }, // = 4
    { 1,0,1,1,0,1,1 }, // = 5
    { 1,0,1,1,1,1,1 }, // = 6
    { 1,1,1,0,0,0,0 }, // = 7
    { 1,1,1,1,1,1,1 }, // = 8
    { 1,1,1,0,0,1,1 } // = 9
    };

    byte four_digits[4][4]= {{0,1,1,1},//ilk dijit a

  6. Like
    sirri reacted to energia in Serial.parseInt() Help please   
    The sketch below works just fine for me. Also tried it on a Arduino board and the behavior is the same.
    If you type "1" in the serial terminal then the sketch below prints 1. If you type 2 it prints 2, etc. What happens is that parseInt is parsing the input string converting it from ASCII to integers. Then the print function does the reverse, it converts from dec value to an ASCII representation of the dec value of 1.
     
    http://www.asciitable.com is your friend.
     
    Robert
  7. Like
    sirri reacted to energia in Servo control   
    I will look into the parseInt().
     
    When you type "1" in the serial console then that "1" is the character one in ASCII encoding. "1" translates to a decimal value of 49 as per ASCII representation. See http://www.asciitable.com
  8. Like
    sirri reacted to energia in Serial communication not working?   
    The LaunchPad is a bit quirky for Serial communication.
     
    1: Any MSP430 will work with TimerSerial (Examples->TImerSerial->TimerSerialExample) with jumpers in default position.
    2: For Hardware based serial (e.g. MSP430G2553) TX/RX need to be swapped at J3.
    - For LaunchPad v1.5 and later you can simply put the jumpers in horizontal position as noted on the silkscreen.
    - For earlier versions, simply cross jumper TX and RX at header J3.
  9. Like
    sirri reacted to Rei Vilo in Reading internal temperature sensor value   
    Please refer to the example AnalogInput_InternalThermometer_430 available at :arrow: http://github.com/energia/Energia/tree/ ... ometer_430
  10. Like
    sirri reacted to energia in New Energia release 0101E0009 - 12/06/2012   
    After 4 months (to the day) of hard work by the Energia team, Energia release 0101E0009 - 12/06/2012 it is ready to go! A full list of new features and bug fixes will be posted on the github wiki page later this week.
     
    Highlights for this release are:
     
    - StellarPad aka EK-LM4F120XL support (http://www.ti.com/tool/EK-LM4F120XL).
    - FraunchPad aka MSP-EXP430FR5739 FRAM support (http://www.ti.com/tool/MSP-EXP430FR5739).
    - Lots of bug fixes.
     
    The release is available for download @ http://energia.nu/download/
    Pin mapping for the new boards is posted here: https://github.com/energia/Energia/wiki/Hardware courtesy of @rei-vilo.
     
    Thanks to all Energia users for your continued support and providing us with invaluable feedback!
     
    Thanks to Energia team members @StefanS, @ReaganR, @rei-vilo, @Rickta59, @pbrier, @clyvb for making this release possible.
     
    Special thanks to @bluehash for his continued support with 43oh.com.
     
    Enjoy the new release!
     
    Robert
  11. Like
    sirri reacted to Rei Vilo in Real-Time Clock (RTC) Library for the MSP430/LaunchPad   
    I tried two RTCs with the MPS430G2553: the DS1307 and the even more integrated PCD2129A (no quartz needed).
     
    Both work fine and the Arduino libraries require no special adaptation to run on Energia.
  12. Like
    sirri got a reaction from Rei Vilo in 4 Digit 7 Segment Parallel (16 pins) Led Display Programming with Energia   
    On the above code we have made a function that lets us display the number (0-9) to the desired digit (1-4). Now, by using some modula (%) and little math. we are calculating each digits seperately in a (up to) four digit number (actually in a number that is between 0-9999)
    //sirri.tanribilir@gmail.comint segA = P1_3; int segB = P1_4; int segF = P1_5; int segG = P2_0; int segE = P2_1; int segC = P2_2; int segD = P2_3; int dig1=P1_7;int dig2=P1_6;int dig3=P2_5;//int dig4=P2_4;int dig4=P1_2;long sayi;byte seven_seg_digits[10][7] = { { 1,1,1,1,1,1,0 }, // = 0 { 0,1,1,0,0,0,0 }, // = 1 { 1,1,0,1,1,0,1 }, // = 2 { 1,1,1,1,0,0,1 }, // = 3 { 0,1,1,0,0,1,1 }, // = 4 { 1,0,1,1,0,1,1 }, // = 5 { 1,0,1,1,1,1,1 }, // = 6 { 1,1,1,0,0,0,0 }, // = 7 { 1,1,1,1,1,1,1 }, // = 8 { 1,1,1,0,0,1,1 } // = 9 }; byte four_digits[4][4]= {{0,1,1,1},//ilk dijit a
  13. Like
    sirri reacted to xv4y in Real-Time Clock (RTC) Library for the MSP430/LaunchPad   
    Hi,
     
    On this page you can find the code for a simple C library using the RTC capabilities included in the MSP430g2553 shipped with the LaunchPad.
    I know TI already offer a nice RTC lib but it is in assembler and not easy to compile outisde of the given IDE.
    This one has been designed to work under Energia and should be easier to port.
     
    http://xv4y.radioclub.asia/2012/05/22/bibliotheque-rtc-pour-le-msp430/
     
    Regards,
    Yannick.
  14. Like
    sirri reacted to oPossum in Using 32 kHz xtal with breadboard   
    Be careful bending the pins - easy to break.
     


  15. Like
    sirri got a reaction from energia in 4 Digit 7 Segment Parallel (16 pins) Led Display Programming with Energia   
    Hello,
    After some reading from master's tutorials i have made my 4 digit, 7segment Led display, working with MSP430,
    I have used array definitions for digits and segments. Also i wrapped that within a function so that we can control the number and the digit we want to display.
    Probably code can be improved a lot, but this is i could do for now. Recommendations are welcomed. And i will be glad if it helps for very beginner Launchpaders ))
     
    PS: It is working allll parallel. i have used 7 output pins for segments and 4 output pins for the digits..
     
    int segA = P1_3; int segB = P1_4; int segF = P1_5;int segG = P2_0;int segE = P2_1;int segC = P2_2;int segD = P2_3; int dig1=P1_7;int dig2=P1_6;int dig3=P2_5;int dig4=P2_4;byte seven_seg_digits[10][7] = { { 1,1,1,1,1,1,0 }, // = 0 { 0,1,1,0,0,0,0 }, // = 1 { 1,1,0,1,1,0,1 }, // = 2 { 1,1,1,1,0,0,1 }, // = 3 { 0,1,1,0,0,1,1 }, // = 4 { 1,0,1,1,0,1,1 }, // = 5 { 1,0,1,1,1,1,1 }, // = 6 { 1,1,1,0,0,0,0 }, // = 7 { 1,1,1,1,1,1,1 }, // = 8 { 1,1,1,0,0,1,1 } // = 9 }; byte four_digits[4][4]= {{0,1,1,1},//ilk dijit a
  16. Like
    sirri got a reaction from Rei Vilo in 4 Digit 7 Segment Parallel (16 pins) Led Display Programming with Energia   
    Hello,
    After some reading from master's tutorials i have made my 4 digit, 7segment Led display, working with MSP430,
    I have used array definitions for digits and segments. Also i wrapped that within a function so that we can control the number and the digit we want to display.
    Probably code can be improved a lot, but this is i could do for now. Recommendations are welcomed. And i will be glad if it helps for very beginner Launchpaders ))
     
    PS: It is working allll parallel. i have used 7 output pins for segments and 4 output pins for the digits..
     
    int segA = P1_3; int segB = P1_4; int segF = P1_5;int segG = P2_0;int segE = P2_1;int segC = P2_2;int segD = P2_3; int dig1=P1_7;int dig2=P1_6;int dig3=P2_5;int dig4=P2_4;byte seven_seg_digits[10][7] = { { 1,1,1,1,1,1,0 }, // = 0 { 0,1,1,0,0,0,0 }, // = 1 { 1,1,0,1,1,0,1 }, // = 2 { 1,1,1,1,0,0,1 }, // = 3 { 0,1,1,0,0,1,1 }, // = 4 { 1,0,1,1,0,1,1 }, // = 5 { 1,0,1,1,1,1,1 }, // = 6 { 1,1,1,0,0,0,0 }, // = 7 { 1,1,1,1,1,1,1 }, // = 8 { 1,1,1,0,0,1,1 } // = 9 }; byte four_digits[4][4]= {{0,1,1,1},//ilk dijit a
  17. Like
    sirri reacted to danielpi in Hello from Australia   
    Thanks for the welcome Sirri and Bluehash,
     
    I'll put a link up to the Cocoa BSL program I've written in the projects section.  I should also put some info up about our controller but I realise there isn't any details on our website. I'll get to that one when I can.
  18. Like
    sirri reacted to bluehash in 4 Digit 7 Segment Parallel (16 pins) Led Display Programming with Energia   
    Good job!. 
    Also, please use the <> tag next time to display code. 
  19. Like
    sirri got a reaction from bluehash in 4 Digit 7 Segment Parallel (16 pins) Led Display Programming with Energia   
    Hello,
    After some reading from master's tutorials i have made my 4 digit, 7segment Led display, working with MSP430,
    I have used array definitions for digits and segments. Also i wrapped that within a function so that we can control the number and the digit we want to display.
    Probably code can be improved a lot, but this is i could do for now. Recommendations are welcomed. And i will be glad if it helps for very beginner Launchpaders ))
     
    PS: It is working allll parallel. i have used 7 output pins for segments and 4 output pins for the digits..
     
    int segA = P1_3; int segB = P1_4; int segF = P1_5;int segG = P2_0;int segE = P2_1;int segC = P2_2;int segD = P2_3; int dig1=P1_7;int dig2=P1_6;int dig3=P2_5;int dig4=P2_4;byte seven_seg_digits[10][7] = { { 1,1,1,1,1,1,0 }, // = 0 { 0,1,1,0,0,0,0 }, // = 1 { 1,1,0,1,1,0,1 }, // = 2 { 1,1,1,1,0,0,1 }, // = 3 { 0,1,1,0,0,1,1 }, // = 4 { 1,0,1,1,0,1,1 }, // = 5 { 1,0,1,1,1,1,1 }, // = 6 { 1,1,1,0,0,0,0 }, // = 7 { 1,1,1,1,1,1,1 }, // = 8 { 1,1,1,0,0,1,1 } // = 9 }; byte four_digits[4][4]= {{0,1,1,1},//ilk dijit a
  20. Like
    sirri reacted to xv4y in shiftOut()   
    Hi,
     
    ShiftOut() works great. I have ported code for driving an AD9850 DDS from Arduino to Energia/MSP430 without changing anything to it, so even timing is rather similar.
     
    Yan.
  21. Like
    sirri got a reaction from izdane in D'OH ! : ) [humor :P]   
    What happens if Homer wants to do something with a Launchpad : )
     
     

  22. Like
    sirri reacted to energia in shiftOut()   
    Both implementations are the same. Timing might be a bit different but that should not be an issue. 
    The know issues page is outdated. A lot has been added/fixed since then. The page will be updated during the next few weeks.
  23. Like
    sirri reacted to toraora in 74HC595 Shift Register - not working   
    Hi all,
     
    I'm trying to interface a 2553 to my 74HC595, but I'm having no success.
     
    Here's my code:
     
    #define SER 5 #define SCLK 6 #define RCLK 7 void shiftReg(int val) { digitalWrite(RCLK, LOW); for (int n = 0; n < 8; n++) { digitalWrite(SCLK, LOW); digitalWrite(SER, (val>>n)&1); digitalWrite(SCLK, HIGH); digitalWrite(14, (val>>n)&1); Serial.print((val>>n)&1); delay(50); } Serial.println(""); digitalWrite(RCLK, HIGH); } void setup() { pinMode(SER, OUTPUT); pinMode(SCLK, OUTPUT); pinMode(RCLK, OUTPUT); pinMode(14, OUTPUT); Serial.begin(9600); } void loop() { shiftReg(170); delay(500); shiftReg(255); delay(500); }  
    Pin 14 is the green LED.
     
    With all 8 outputs connected to a common anode 7-segment display, the segments flicker for a little then eventually all turn off (shift register all high), and the serial monitor alternates "11111111" and "00000000".
     
    Output Enable is connected to ground, while Reset is connected to Vcc.
     
    Can anybody help me determine what's wrong?
     
    Thanks
  24. Like
    sirri reacted to bluehash in D'OH ! : ) [humor :P]   
    Good one!
  25. Like
    sirri got a reaction from Fe2o3Fish in D'OH ! : ) [humor :P]   
    What happens if Homer wants to do something with a Launchpad : )
     
     

×
×
  • Create New...