HB100 radar!

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
jgu1
Posts: 602
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 495 times
Been thanked: 132 times

HB100 radar!

Post 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

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: HB100 radar!

Post 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.

jgu1
Posts: 602
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 495 times
Been thanked: 132 times

Re: HB100 radar!

Post 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

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: HB100 radar!

Post 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.
Martin

jgu1
Posts: 602
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 495 times
Been thanked: 132 times

Re: HB100 radar!

Post 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
Attachments
HB100Pic16F876.fcfx
(11.73 KiB) Downloaded 108 times
HB100Nano.fcfx
(11.91 KiB) Downloaded 113 times

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: HB100 radar!

Post 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.
Martin

jgu1
Posts: 602
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 495 times
Been thanked: 132 times

Re: HB100 radar!

Post by jgu1 »

Please I2C backpack if ok with you. (easy to connect)

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: HB100 radar!

Post 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.
Attachments
Doppler 16F876.fcfx
(20.59 KiB) Downloaded 116 times
Martin

jgu1
Posts: 602
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 495 times
Been thanked: 132 times

Re: HB100 radar!

Post 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:
Attachments
IMG_1987.JPG
IMG_1987.JPG (80.4 KiB) Viewed 3945 times

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: HB100 radar!

Post 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 3938 times
Martin

Post Reply