Hey so I'm having problems with the software serial and the servo library. I am aware that this has been addressed before in other post, their solution was to use an older version of the servo libary that did not interfere with the software serial. I googled servo 016 and downloaded it from this website, I then imported it into arduino and attempted to run it. I ran a simple test of just #include <PWMServo.h> and it did not work it gave me this message, what did I do wrong? Is there an easier way of doing this?
Hey thanks so much, I think its what i need, I got the demo to work but was somwwhat confused on what the function equivalent of,
SoftwareSerial gpsSerial(2, 3); //would be?
I see the functions are sssBegin(), sssEnd and so on, but what would that be?
Reallyhappyman:
Hey thanks so much, I think its what i need, I got the demo to work but was somwwhat confused on what the function equivalent of,
SoftwareSerial gpsSerial(2, 3); //would be?
I see the functions are sssBegin(), sssEnd and so on, but what would that be?
sss gpsSerial(2,3)??
There is no equivalent. The statement SoftwareSerial gpsSerial(2,3) serves two purposes.
First it creates an instance of the class SoftwareSerial and gives it the name gpsSerial.
My code doesn't use classes so all of the calls to it are just function calls such as sssRead().
Second it tells SoftwareSerial to use pins 2 and 3 for serial comms.
My code must use pins 3 (Rx) and 4 (Tx).
I'm guessing that with SoftwareSerial you would read your GPS with gpsSerial.read(). The equivalent with my code is sssRead().
All of the user functions are listed as comments at the top of the file sss.ino.
Hope it works for you. You are my first guinea-pig
Ok well its hard to tell if its working, I get this error,
NewPing\NewPing.cpp.o: In function __vector_7': C:\Users\Joey\Documents\Arduino\libraries\NewPing/NewPing.cpp:214: multiple definition of __vector_7'
UAVBLIMP.cpp.o:C:\Program Files (x86)\Arduino/sss.ino:343: first defined here
They seem to use the same timer, is there an easy fix to this?