Home › Forums › Other Data Loggers › Seeeduino Stalker v3.0 discussion › Reply To: Seeeduino Stalker v3.0 discussion
2016-06-28 at 6:27 PM
#1617
Hi
Thanks for the help, I really appreciate the well commented code as I really have no idea whats going on without it.
I tried your code and perhaps I was having data issues because Of something I di
Thanks for the help, I really appreciate the well commented code as I really have no idea whats going on without it.
I tried your code and perhaps I was having data issues because Of something I di
Hi
Thanks for the help, I really appreciate the well commented code as I really have no idea whats going on without it.
I tried your code and perhaps I was having data issues because Of something I did or because of a different sensor but I was getting quite a few out of sync readings that would throw a spanner in the works for using the data later.
I have had really good data coming from the code attached here, hopefully between the two options someone may get some benefit out of these options.
Thanks for the help, I really appreciate the well commented code as I really have no idea whats going on without it.
I tried your code and perhaps I was having data issues because Of something I did or because of a different sensor but I was getting quite a few out of sync readings that would throw a spanner in the works for using the data later.
I have had really good data coming from the code attached here, hopefully between the two options someone may get some benefit out of these options.
Maxbotix7360 software serial mm
Arduino
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
// RX, TX, true sets the inverter void setup() { // Open serial communications and wait for port to open: Serial.begin(9600); // set the data rate for the SoftwareSerial port mySerial.begin(9600); delay(50); } void loop() { int index = 0; boolean startreading = false; char mm[6]; mySerial.flush(); while(index < 4){ if(mySerial.available()){ byte incoming = mySerial.read(); if(incoming == 'R') { startreading = true; } else if(startreading) { mm[index++] = incoming; } } } Serial.print("mm: "); Serial.print(mm); Serial.print(" "); Serial.println(); //delay(500); } |