ashwinsinha
Newbie level 1
- Joined
- Feb 5, 2013
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- 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 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: