HB100 radar module


Results 1 to 9 of 9

Threaded View

  1. #6


    Did you find this post helpful? Yes | No

    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.

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 : 0

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