hmjswt

Members
  • Content count

    17
  • Joined

  • Last visited

  • Days Won

    2

hmjswt last won the day on April 1

hmjswt had the most liked content!

About hmjswt

  • Rank
    Member

Contact Methods

  • Website URL
    http://swtmeteo.byethost7.com/

Profile Information

  • Gender
    Male
  • Location
    The Netherlands

Recent Profile Visitors

147 profile views
  1. Hallo bakey, ( goeie morgen ;-)) ) How about this: I tested this on my MSP-EXP430G2 with a 2553 #include <SPI.h> void setup() { pinMode(LED, OUTPUT); Serial.begin(9600); } void loop() { double ding = 10.15; Serial.print( "<320;" ); Serial.print( ding ); Serial.println( ";" ); // String s = + String(ding) + String(";"); // Serial.println(s); delay( 1000 ); } Works OK. When I use String and + there are conversion errors!
  2. Hallo Neetee, The routines/functions are very generic. Maybe the I2C pins are different. But that is no problem. Just try it. That's the fun of experimenting.That;s why I love this as a hobby. If it is for money, pleas try it and you can pay me royalties. Come on, go for it. Greetings from a very sunny Netherlands.
  3. Hallo I am using this code for my 430G2553. /* LaunchPad EEPROM Author : Henk Siewert File : EEPROMTest Date : 27 september 2016 Version : 003 MCU : TI MSP430G2553 Memory : Microchip Language : Energia C++ Compiler : Energia 0101E0017 Systeem : Windows XP Pro SP3 Editor : NotePad++ WWW : http://www.swtcomp.com Pin 6 IC = SCL --> 9 LET OP! Nieuw in 17 Pin 5 IC = SDA --> 10 LET OP! Nieuw in 17 Pin 8 IC = VCC --> Vcc (3.3V) Pin 4 en 7 IC = GND --> GND 4,7K Pull up on pin 5 and 6 !!! Let op - Is jumper geplaatst? */ #include <Wire.h> // I2C library int disk1 = 0x50; // Address of EEPROM chip // 50 for Microchip 1,2,3 GND // 57 for Atmel 1,2,3 open #define memmax 32768 // Maximum memory: // 32768 for Microchip 24LC256 // 65536 for Microchip 24LC512 // 131072 for Microchip 24LC1026 // 4096 for Atmel 24C32 byte value = 133; // Value to write to EEPROM void setup(void) { Serial.begin(9600); // Start serial Wire.begin(); // Start I2C start(); // Start program } void start() { test(); } void test() // Write and read data to memory locations { for ( unsigned long address = 0; address < memmax; address++) { writeEEPROM(disk1, address, value); Serial.print( address ); Serial.print(" = "); Serial.print(readEEPROM(disk1, address)); Serial.println(" "); } } void writeEEPROM(int deviceaddress, unsigned long eeaddress, byte data ) { Wire.beginTransmission(deviceaddress); Wire.write((int)(eeaddress >> 8)); // MSB Wire.write((int)(eeaddress & 0xFF)); // LSB Wire.write(data); Wire.endTransmission(); delay(5); // Writing takes time } byte readEEPROM(int deviceaddress, unsigned long eeaddress ) { byte rdata; Wire.beginTransmission(deviceaddress); Wire.write((int)(eeaddress >> 8)); // MSB Wire.write((int)(eeaddress & 0xFF)); // LSB Wire.endTransmission(); Wire.requestFrom(deviceaddress,1); if (Wire.available()) rdata = Wire.read(); return rdata; } void loop() { // Not used }
  4. Hallo, To make is easy: buy a HC05 card and use the TX en RX. Keep it simple... What operating system are you using? Henk Siewert
  5. Hallo, This is nice. Thanks. Henk Siewert
  6. Hallo, Oh, that brings back so much memories. I used to program in FORTRAN. And still do. Here is my Flowchart template.
  7. Hi, Nice to read your commends. I thought I was the only one getting very tired of seeing old things being sold as new. I am using computers since 1967. And I have seen very little new things coming along. Ok, the systems are getting smaller and cheaper. But there is very little real innovation going on. Again and again thing that are already working for years are being renamed and relabeled and sold as something new. Especially programming languages. Just put a new wrapper on some old language and you can sell it as something new. Just glue a couple of things together and you can make a program. Until you have to do really new things. Then nobody knows how to program at a low level. Because they are used to just cut and paste objects until they get something that seams to work. it is all old wine in new sacks. But then, I am a grumpy old electron pusher. I even don't have a smart phone. So what do I know about new technology. So I go back to my old XP systems and old style solder station to build and program some more model rocket computers. See you in the clouds. Henk Siewert
  8. Hallo, Very interesting. When I go to https://simplex1.wik...uction-Set.html I have to log in... Uh, help please... Henk Siewert
  9. @@dubnet, I find this forum very valuable. And I am very grateful for Energia. I have learned my lessen, again. Don't, really DON'T go for the latest release. Specially when there are no release notes on the website. But the real question is: why the change. This makes all the boards I have made not programmable with 17. You can hear me protesting clear to IJsselstein. ( I live in Maarssen...) ;-)
  10. What the F@#$#$ Why change the SDA and SCL? I installed the new 17 version. Programmed a new sensor and I did get a lot of rubbish on my screen. Did a lot of debugging. Nothing. Now I am reading that they changed SDA and SCL. Are they out of their minds? Got back to 16 and my code is OK. Stupid thing to do, this change.
  11. Hallo, Yes, there are bigger ones. I am using 1024 Bits EEPROMS. Costs less then $3.00. You can chain 8 IC's for a total of 8Megabits!. Works like a dream. I have a page about EEPROMS and the LaunchPad on my website. A lot is in dutch but I translated the EEPROM page in English. You can download the source code. http://swtcomp.com/launchpad/eeprom/eeprom.htm
  12. @@roadrunner84 I use EEPROM for my temperature sensor logging. It gives a lot of memory for little money. I have to have an EEPROM dying on me yet. An 512Kbit EEPROM costs about 1 Euro. For my projects I make a stand-alone 2553 and EEPROM. I communicate by Bluetooth. Works very nicely. And I can read the data by using TeraTerm or graphing it in Processing in real time. Well, it works for me. And using EEPROM is really simple and uses almost no memory. So you have more memory for your program. Nice to meet a fellow country man on this forum.
  13. Hallo, Why write to flash? You can use EEPROM. Very easy to do. Lots of space and you can swap/change IC's. Greetings, Henk Siewert
  14. Hallo, I loaded my Launcpad with adc.mpy But where can I find the console window? Greetings from the Netherlands, HenkSWT
  15. Hi, For all you Dutch LaunchPad People: Now there is a Dutch Language LaunchPad Forum on: http://launchpad.swtrocketry.com Voor alle Nederlandstalige LauchPad gebruikers: http://launchpad.swtrocketry.com Is voortgekomen uit het Nederlandstalige Arduino Forum. Groet, Henk Siewert