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.

Need HELP with generating a program for my project

Status
Not open for further replies.

ashwinsinha

Newbie level 1
Newbie level 1
Joined
Feb 5, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,292
Hello
i am doing a project on obstacle detection for blind using 4 ultrasonic sensors.
we are using 4 sensors, each of it is gonna give direct value of distance in ascii format in form of 6 bytes serially
i want help in getting that value in a single register say reg0 for sensor 1.....reg1 for sensor2...reg2 for sensor 3 and so on
so what i really need is a code for getting data from this sensor through UART and store it in a REG
Please Not:- First two sensors are connected to normal serial pin (RX1,RX2) and the other two r connected to two i/o pins say portA.1 and port B.1
so we will get data from sensor 1&2 through UART...and from sensor 3&4 through soft UART.
For your reference i have attached a datasheet link of the ultrasonic echo sensor which we are using https://www.rhydolabz.com/documents/sensors/Ultrasonic Distance Sensor Serial Output-User Manual.pdf

:FYI WE ARE USING using pic18f8722:
 

I think you're going to struggle with this. You've got 4 sensors providing asynchronous stream of data autonomously, and you don't have 4 UARTs.
While it can be implemented (nothing is impossible in software), it's going to be real ugly and a lot of work. You probably want the pins going to
interrupt inputs, to help you a little bit.
Good luck!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top