I am a university student very new to programming. I am trying to interact with the SRF02 sonar rangefinder for use as an altimeter on a UAV, and currently using the UART to communicate with it, through a dsPIC30F4013. (I am aware that it supports I2C also, but the unit is currently wired for serial connections) I simply want to send two bytes of information, firstly the address of the sonar, then a command to do the ranging, which this unit does all in one. However I am unsure of the correct proceedure for doing so, at the moment I am sending constants to the UART TX block only. Any help with this would be greatly appreciated.
2 posts • Page 1 of 1
Users browsing this forum: No registered users and 1 guest