- Wed Dec 30, 2015 6:12 pm
#186908
Hi,
I'm trying to use a simple program to test FPS sensor GT511C1R - https://www.sparkfun.com/products/13007 with ARDUINO MEGA
I followed this tutorial - http://www.homautomation.org/2014/10/11 ... n-arduino/ and tried to test with this program:
Any ideas how to get this to work?
Thanks a lot,
Eddy
I'm trying to use a simple program to test FPS sensor GT511C1R - https://www.sparkfun.com/products/13007 with ARDUINO MEGA
I followed this tutorial - http://www.homautomation.org/2014/10/11 ... n-arduino/ and tried to test with this program:
Code: Select all
However, the only response that I have on serial monitor is this:#include "FPS_GT511C1R.h"
#include "SoftwareSerial.h"
// Hardware setup - FPS connected to:
// digital pin 4(arduino rx, fps tx)
// digital pin 5(arduino tx - 560ohm resistor - fps tx - 1000ohm resistor - ground)
// this voltage divider brings the 5v tx line down to about 3.2v so we dont fry our fps
FPS_GT511C1R fps(10, 11);
void setup()
{
Serial.begin(9600);
fps.UseSerialDebug = true; // so you can see the messages in the serial debug screen
fps.Open();
}
void loop()
{
// FPS Blink LED Test
fps.SetLED(true);
delay(1000);
fps.SetLED(false);
delay(1000);
}
Code: Select all
I'm starting to think that the sensor is broken.FPS - Open
FPS - SEND: "55 AA 01 00 00 00 00 00 01 00 01 01"
Any ideas how to get this to work?
Thanks a lot,
Eddy