Page 1 of 7

HB100 radar!

Posted: Wed Sep 15, 2021 9:07 pm
by jgu1
Hi!

Is it possible and not to difficult to create a component in FC for this radar so it is possible to measure the speed. Similar to this:

https://stoppi-homemade-physics.de/dopplerradar/ :D

I can send one device for test.

Thank´s in advance.

Jorgen

Re: HB100 radar!

Posted: Thu Sep 16, 2021 10:31 am
by BenR
Hi Jorgen,

That looks very interesting. I know Medelec has just been working on a frequency meter and so converting this to speed looks to be a very simple task.

Speed KM/H = Frequency / 19.49

Speed M/H = Speed KM/H * 0.621371

Making a universal component to measure frequency should be possible.

Re: HB100 radar!

Posted: Thu Sep 16, 2021 5:00 pm
by jgu1
Hi Ben!

Thank´s for reply. Ok so simple :lol: I will give it a go with Martin´s frequency counter. But anyway, it would be nice with a component for the HB100 too.
Maybe also be able to choose HB100 for other purposes. Example in addition to being able to measure speed, use it to detect if someone / something is approaching similar Pir sensor which could be selected in properties. :D

By the way, for loooong time ago you create a component for the ILI9488 display. I promised to let you know when I have test this with SPI. I have still not received the display, Ebay you know :lol: wrote to the seller today and ask......

Br regard

Jorgen

Re: HB100 radar!

Posted: Thu Sep 16, 2021 11:02 pm
by medelec35
Hi Jorgen.
Can you send me a flowchart that just has a one-second flasher working at the correct frequency?
I will then see if I can get the doppler radar to work for you.

Re: HB100 radar!

Posted: Fri Sep 17, 2021 8:37 am
by jgu1
Hi Martin!

You are amazing :D . Hereby one sec flasher for a pic and an Arduino ( hope I understand you correctly) Both is tested in real world.
For the Arduino is the 98% accuracy for one second. The timer0 Prescaler rate is 1:1024 and give a frequency 61.035 hz.
The Pic16F876 is 100%

I will start create the amplifier with a LM324N today. ;)

Hope this is ok?

Jorgen

Re: HB100 radar!

Posted: Fri Sep 17, 2021 9:19 am
by medelec35
Thank you for the files, happy to help.
The reason for asking is so I know that the flowchart runs your hardware OK.
What display are you using, the generic 16x2?
I will use the 16F876.

Re: HB100 radar!

Posted: Fri Sep 17, 2021 10:35 am
by jgu1
Please I2C backpack if ok with you. (easy to connect)

Re: HB100 radar!

Posted: Fri Sep 17, 2021 1:25 pm
by medelec35
Hi, Can you give this a try please?
The frequency input is T1CKI = pin15
I have not got your microcontroller, so unable to test on hardware first.

Re: HB100 radar!

Posted: Fri Sep 17, 2021 5:09 pm
by jgu1
Thank´s Martin. As you see on picture, so far so good :D

But pin 15 is SDA C4for the display, and I cannot remap this pin. I dare not to change something in your program, can you change the input from the doobler to another pin input, please?

***EDIT*** Of course, I change the display from channel1 to software C4 > C5 Display still work but no speed readout in display. I also try to connect my signal generator TTL not help :roll:

Re: HB100 radar!

Posted: Fri Sep 17, 2021 7:24 pm
by medelec35
Oh, sorry.
Pin 15 is T1CKI on the 40 pin device.
You have the 28pin device, so its pin 11 for the frequency input.
T1CKI 28pin.png
T1CKI 28pin.png (76.26 KiB) Viewed 4028 times