Arduino HB100 Speed Radar Coding and Library Error

Hello, I´ve been working on a speed radar using a hb100 sensor. I have finished building it and everything seems fine but, when I upload the code no data the sensor receives appears on my LCD screen. I suspect there is something wrong with the code.

include <FreqMeasure.h>
#include <LiquidCrystal.h>

LiquidCrystal lcd(5, 4, 3, 2, 1, 0);

void setup() {
  Serial.begin(57600);
  lcd.begin(8, 2);
  lcd.print("Freq:");
  FreqMeasure.begin();
}

double sum=0;
int count=0;

void loop() {
  if (FreqMeasure.available()) {
    // average several reading together
    sum = sum + FreqMeasure.read();
    count = count + 1;
    if (count > 30) {
      float frequency = FreqMeasure.countToFrequency(sum / count);
      lcd.setCursor(0, 1);
      lcd.print(frequency);
      lcd.print("       ");
      sum = 0;
      count = 0;
    }
  }
}


This is where I found the code and its libraries:

https://github.com/3zuli/HB100_test

I don´t know if it is the libraries or the code. Can someone help?

Hi,
Have you written a simple bit of code to test your LCD display on its own.
You have your LCD connected to pins 0 and 1, these are the programming pins for the Arduino, use other pins.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Thanks.. Tom.. :slight_smile:

LiquidCrystal lcd(5, 4, 3, 2, 1, 0);

void setup() {
  Serial.begin(57600);

Pins 0 and 1 are Serial RX and TX. You can't use them for your LCD and also use them for Serial.