Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Ultrasonic telemeter using PIC16F873

Status
Not open for further replies.

Praetoryus

Newbie level 2
Newbie level 2
Joined
Oct 22, 2009
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Pitesti
Activity points
1,296
Hello !

Hello all ! I have a problem. I need to create a ultrasonic telemeter using PIC16F873 and i need to connect it to the serial port of a computer maybe using RS232 or MAX232. I'm don't know how to use PIC16F873 i need some help :cry: i have the circuit drawing for my telemeter
 

I strongly recommend you to use USB than serial port.....

Use a pic18F2550 instead of PIC16f873.If you have the PCB layout of this circuit please post it.







Thanks.......
 

HI

The easy way is to use the FTDI232 or CP202 IC

But you will need also to change the micro software in order to output some data on the serial port

All the best

Bobi

The microcontroller specialist
 

yeah..i understand that it would be easy but i need to use PIC16F873 and i need an interface with a computer by serial. it's what i was told to do. I can't change the microcontroller :cry:
 

I'm don't know how to use PIC16F873
It's easy to connect the serial hardware, just two pins on the processor, RC6/RC7 that are yet uncpnnected. MAX232 or similar is necessary to convert 5V logic to RS232 level.

If "don't know" refers to the software, it's more complex. At first, you need the sources (assembler or C ?) of the present application. You have to know the intended functionality of the interface, e.g just "printing" the distance every second to the interface. You need to manage the software enviroment, that has been used for the application, e.g. MPLAB or CCS C.
 

Ok,you should first use a MAX232 for connecting pic to PC and other important thing is its software.

1. Use PWM(or other) to produce 40khz freq.(if the module freq. is 40khz) signal to the tx module.

2.To avoid flow reception disable the reception using the NAND gates.

3.After this enable the NAND.

4.You should use Capture (CCP Pin) for good result.

5.As FvM said connect your PIC to PC via MAX232.

6.Try to use C than assembly.

Note:You can remove seven segment displays from the circuit if you are taking reading from PC. For calculating distance you should first find out the time difference(TX Time RX Time and also the velocity of Ultrasonic signal(344m/s))

OK. GOOD LUCK
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top