Hello, welcome to our forum.

It looks like you have registered but you have not yet posted and messages. Our requirements are that you must post at least two messages, to allow the moderators to review your registration, before you will be allowed access to the full range of forum areas.

Please make a couple of posts, until then you may see a notice that says you are banned from certain forum areas.


Thank you.

Remove Text Formatting
Loading...

+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2016
    Posts
    32

    Default HB100 radar module

    Hello all,
    I try to find something about that MW radar module on PB forum but no success. I have already done the backpack module from limpkin, all works fine. I can read frequencies on scope but how to implement this data to speed measurement?
    I find some code for Arduino in C but nothing in Basic. Can you someone explain me how to or links to picbasic (basic) code snippets?
    Thanks.

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,214

    Default Re: HB100 radar module

    Looks like you are the first one here to try to interface with the HB100.

    Robert
    Not as dumb as yesterday, but stupider than tomorrow!

  3. #3
    Join Date
    Mar 2016
    Posts
    32

    Default Re: HB100 radar module

    in past (month ago) I was saw some informations about HB100 with example codes on protonbasic forum but I did not pay attention.
    At this time I cant find anything about this on proton basic forum. It looks like wiped or something.

  4. #4
    Join Date
    Jan 2006
    Location
    Istanbul, The Only City and The Only Place That Connects Two Continents
    Posts
    1,098

    Default Re: HB100 radar module

    HB100 speed measurement is explained here:

    From the first page:
    ......IF the target is moving straight toward or away from HB100 (Ft = 10.525 Ghz) the formula is simplified to:
    Fd = 19.49V (Velocity in km/hour) or 31.36V (V in mile per hour)

    So we are going to use the simplest of the two, we know the doppler frequency, and we want to find the speed.
    V = Fd/31.36 What this really means thou, is for ever 31.36Hz will equal 1 MPH
    So if the IF Frequency is 31.36 then the speed of the target is 1 MPH. Easy!

    And a IF Frequency of say 400Hz would be about 13Mph if you round it up.

    =====================

    So if you read the frequeny with a Timer running in the background, then there it is your result.
    Last edited by sayzer; - 6th July 2017 at 07:52.
    Those who know that professional behavior is actually not a professional behavior are true professionals.

  5. #5
    Join Date
    Mar 2016
    Posts
    32

    Default Re: HB100 radar module

    Now it's more clear. I try to search simple and working frequency meter code on PB forum, but no success.
    Have someone already done and willing to share the frequency meter source code in picbasic? I'll be grateful for that.
    Thanks,
    Louis

  6. #6

    Default Re: HB100 radar module

    Hi Louis
    You did not say which pic you are using. You can read frequency by feeding the signal to the external timer input on your pic. It works by setting the TMR1 register to 0 , start the timer, let it count for a fixed period of time, stop the timer, read the value in TMR1 to variable Freq and display. The Pause routine is not super accurate for gating the timer so you need to tweak the value. A better way would be to use a second timer with an interrupt. This should get you started

    Code:
    Freq var word
    
    'Read Freq
    
         T1CON = %00000110  'No prescale/Osc off/Sync off/External source/TMR1 off
         TMR1L = 0 ' Clear Timer1
         TMR1H = 0 ' Clear Timer1  
         T1CON.0 = 1 ' Start 16-bit timer 
         Pause 100    'Capture  of Input Frequency 0.1sec  Pause 1000 =1sec
         T1CON.0 = 0 ' Stop 16-bit Timer 
    
         
       
    		Freq.lowbyte = TMR1L 'Read  Tmr1 count to low byte
    		Freq.highbyte = TMR1h 'Read  Tmr1 count to high byte
    Last edited by mark_s; - 11th July 2017 at 18:26.

  7. #7
    Join Date
    Mar 2016
    Posts
    32

    Default Re: HB100 radar module

    Quote Originally Posted by mark_s View Post
    Hi Louis
    You did not say which pic you are using. You can read frequency by feeding the signal to the external timer input on your pic. It works by setting the TMR1 register to 0 , start the timer, let it count for a fixed period of time, stop the timer, read the value in TMR1 to variable Freq and display. The Pause routine is not super accurate for gating the timer so you need to tweak the value. A better way would be to use a second timer with an interrupt. This should get you started
    Hello Mark,

    I use PIC16F690 at 4MHz Xtal. I want to try Your code, the freq is stored in Freq variable, the sampling time is 0,1 sec that's OK but where to feed the input signal to PIC? (input pin) this is not clear for me.

    Louis

  8. #8

    Default Re: HB100 radar module

    It looks like on the pic16f690 pin2, RA5 T1CKI. I have one of those modules but never got around to interfacing it with a pic.
    Post your progress

  9. #9
    Join Date
    Jan 2006
    Location
    Istanbul, The Only City and The Only Place That Connects Two Continents
    Posts
    1,098

    Default Re: HB100 radar module

    One of the best examples of measuring frequency with impressive accuracy is here:
    http://www.picbasic.co.uk/forum/showthread.php?t=1137

    On post #21.
    Those who know that professional behavior is actually not a professional behavior are true professionals.

Similar Threads

  1. Cellular module?
    By Art in forum GSM
    Replies: 2
    Last Post: - 13th April 2012, 17:22
  2. RF module help
    By greensasquatch in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 8th September 2008, 18:50
  3. Replies: 1
    Last Post: - 27th July 2008, 06:14
  4. RF Module
    By shahidali55 in forum General
    Replies: 22
    Last Post: - 9th March 2007, 09:00
  5. Rf module
    By tangray in forum Adverts
    Replies: 0
    Last Post: - 7th August 2006, 07:14

Members who have read this thread : 26

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts