Popular posts from this blog
Arduino based personal gps
GPS model EM486 , arduino uno and 20*4 lcd few connecting wires will do connect 4,6,11,12,13,14 to 8,9,10,11,12,13 of arduino .Here is the sample code for displaying latitude and longitude #include #include /* This sample code demonstrates the normal use of a TinyGPS object. It requires the use of SoftwareSerial, and assumes that you have a 4800-baud serial GPS device hooked up on pins 3(rx) and 4(tx). */ GPS gps; SoftwareSerial ss(3, 4); void setup() { Serial.begin(115200); ss.begin(4800); Serial.print("Simple TinyGPS library v. "); Serial.println(TinyGPS::library_version()); Serial.println("by Mikal Hart"); Serial.println(); } void loop() { bool newData = false; unsigned long chars; unsigned short sentences, failed; // For one second we parse GPS data and report some key values for (unsigned long start = millis(); millis() - start
digital compass using cmp03 sensor
sample code for compass in assembly SEND_START: ; SETB _2W_BUSY ; INDICATE THAT 2WIRE ; OPERATION IN PROGRESS CLR ACK ; CLEAR STATUS FLAGS CLR BUS_FAULT ; JNB SCL,FAULT ; CHECK FOR BUS CLEAR JNB SDA,FAULT ; BEGIN START CONDITION SETB SDA ; LCALL SCL_HIGH ; SDA CLR SDA ; ; LCALL DELAY ; SCL ^START CONDITION CLR SCL ; RET ; FAULT: SETB BUS_FAULT ; SET FAULT STATUS ...

Comments
Post a Comment