0x33
+
Add
+
NC
+
SUM
Enable internal
EEPROM
reading
Return data will be 0x33
+
Add
+
Data
+
SUM.
0x44
+
Add
+
Data
+
SUM
(Sample: 0x44 0x02 0xbb
0x01) Enable PWM mode
Enable internal
EEPROM writing
Written data can only from 0-255.
Address 0x00-0x02 is used to configure the mode. 0x00 – threshold distance (Low)
0x01 – threshold distance (High) 0x02 – Operation Mode (0xaa for autonomous
mode) (0xbb for PWM passive control mode)
The return data format will be: 0x44
+
Add
+
Data
+
SUM
NOTE
: NC stands for any data
,
SUM stands for sum, Add stands for address.
1
.
PWN_ON must be set to High to enable sensor.
Examples:
Function to calculate the temperature:
IF(HightByte>=0xF0)
{
Temperature= ((HightByte-0xF0)*256-LowByte)/10
}
Else
{
Temperature= ((HightByte)*256-LowByte)/10
}
Trouble shooting
1. If you have connected sensor to the Arduino, but unable to use it, please first check the current
serial port-level mode, it may be in TTL level, while our module works in RS232 levels.
2. The ultrasonic attenuation violently in the air (inversely proportional to the
d²
(distance)), besides,
barrier surface reflection of the sound is affected by many factors (such as barrier shape, orientation
and texture) the influence of ultrasonic distance measurement is therefore limited.
3. The far testing distance is a wall, close test can be a pen. Analyte based on the use of the
environment and quality of different measurement may result in inconsistent with the data provided.
4. The mentioned servo above is a ordinary model on the market, can be rotated 180 degrees. If you
use a special steering servo, it may draw the user's attention to control the timing in a different way.
5. If you are experiencing technical issues, please ask on our
forum
or send us
, we will
answer your questions as soon as possible.
More question and cool idea,
visit DFRobot Forum