u Math s Help lsearchn Math -searchm Easy t Math risearcha Save Easy ea Easymathhelp e Easy e Easy Èsearchi Help asearcha Math i Math ssearchs Math o Help u. Help Ãn Math lsearch, Irrational esearchrsearchc Easy isearchesearchs Easymathhelp › Easymathhelp d Help pl
searchs Math a Easy c
Esearchs Irrational
tsearchSsearchv searchisearchM Math tsearch ™
fo Help researchl Save Easy n
usearchda Easy i Math ( Easy i Help i Math searchƒ Save efe
l Math p Help sosearchl Easymathhelp
dasearchi Easy Math tsearchu Easymathhelp lsearchd Math p Irrational i Math ie Help ® Easy s Math i Math usearchusearchidsearchs Math d Easy em Easy lsearchd
usearchn Save l
® Irrational f Math ma Math edi Irrational bilsearchOsearchn Easy f Irrational c
I Save re Easy ).
i’ve got a bunch of sensors form my PhD. thesis. i won’t bother you with the details =). unfortunately i wasn’t very inspired in my choosing and i ended up with a bunch of accurate, but hard to access sensors. the ones i’m talking about are MPL115A1, SHT15 and TSL230R all from my favorite provider MPL115A1 Arduino library, SHT15 Arduino library and TSL230R Arduino library. the code is provided “as-is” and the work is based on roaming drone’s TSL230R tutorial, jim lindblom’s sparkfun MPL115A1 example code and nathan seidle’s sparkfun SHT15 example code.
tomorrow i’ll update this post with an example code and some wiring diagrams.
n-am fost niciodată vocal în legătură cu industria online din românia, deși am avut partea mea de experiențe în domeniu. știu mizeriile care se întâmplă, știu cum se fac banii, știu ce înseamnă rebate și cât de găunoasă e o regie. știu că dacă ți-ai ratat cariera una dintre cele mai ușoare soluții e să te transformi în consultant new media. am văzut pseudo-vedete venind și plecând.
ce mă enervează e că jegul a acoperit ultimul colțișor care spunea lucrurilor pe nume, zoso.ro/update. mie personal o să-mi lipsească. deja renunțasem la ziare online și site-uri de știri în favoarea lui. vali, sper să revi asupra deciziei și să ții minte comentariul meu. poate ar trebui să închizi blogul pentru gușteri și să-l păstrezi doar pentru cei care sunt dispuși să plătească.
jack white & black milk – royal mega
Should we expect a new revolution in physics, this time with logic arguments and not for justifying huge funds with flipping coins and counting particles (link)? Here’s a recent paper describing how gravity can be considered a consequence of the information, not as a fundamental force. In my humble opinion, this idea has the necessary beauty to kick us beyond Einstein’s general relativity.
Erik P. Verlinde – On the Origins of Gravity and the Laws of Newton
(image courtesy: nasaimages.org)
yesterday, i’ve posted my wrapper library for the windows COM port with the promise of posting the actual C program that uses it. to compile it you need mingw (see here my tutorial on how to get it up and running). the program is simple and writes in the text.txt file whatever it receives on the serial interface, but no more than MAXLINES lines (in this case, 10 lines). you need to save the previous code as “serial.h” in the same directory as the code below. then, compile it and that’s it! =)
ask whatever questions here, and i will answer.
#include <stdio.h>
#include <windows.h>
#include "serial.h"
// the number of lines read from the serial interface.
// good for data acquisition for a specified amount of time.
#define MAXLINES 10
int main (int argc, int ** argv) {}
// open the file "text.txt". change it for a different file
   f = fopen ("test.txt", "w+");
// read online MAXLINES lines
   while (lines < MAXLINES) {}
// output to the standard IO, and
         printf("%s", buffer);
// to the file
         fprintf(f, "%s", buffer);
         }
      }
// close the file handle
   fclose (f);
// close the COM port
   closeSerialConsole(comPort);
   return 0;
   } dom’ profesor, multumesc frumos pentru sampanie =)
searching for a way to read the serial port in windows using C (usually i do my programming under linux), i found a cute little wrapper for the serial port here. i don’t like .NET that’s why i’ve wanted a pure C implementation. here’s the code (most of it from the source). read the comments as it saved me a lot of problems accessing higher COM ports. remember to escape the characters in the string!
HANDLE openSerialConsole (LPCSTR p) {};
   COMMTIMEOUTS timeouts = {};
   h = CreateFile ( p,
      GENERIC_READ | GENERIC_WRITE, // the way we want to interact with the COM port
      0, // not the wisest way to open the device as it takes exclusive control over
      NULL, // no security attributes, meaning no child process access
      OPEN_EXISTING, // only if we have a COM port
      0, // some things i didn't understood completely
      NULL);
   if (h == INVALID_HANDLE_VALUE) {}
   params.DCBlength = sizeof(params);
   if (!GetCommState(h, ¶ms)) {}
   // 9600 bauds, with a 8N1 format
   params.BaudRate=CBR_9600;
   params.ByteSize=8;
   params.Parity=NOPARITY;
   params.StopBits=ONESTOPBIT;
   if (!SetCommState(h, ¶ms)) {}
   // timeouts, avoid hanging
   timeouts.ReadIntervalTimeout=50;
   timeouts.ReadTotalTimeoutConstant=50;
   timeouts.ReadTotalTimeoutMultiplier=10;
   timeouts.WriteTotalTimeoutConstant=50;
   timeouts.WriteTotalTimeoutMultiplier=10;
   if (!SetCommTimeouts(h, &timeouts)) {}
   return h;
   }
unsigned long int readFromSerialConsole ( HANDLE h, char * buffer, int size ) {}
   return bytes;
   }
unsigned long int writeToSerialConsole(HANDLE h, char * buffer, int size) {}
void closeSerialConsole (HANDLE h) {}