DFRobot Sensor Testing: HX711 Weight Sensor, Voice Recorder Module Pro, Speech Synthesis Module V2
Testing DFRobot Sensors
We tested a few DFRobot sensors by following their tutorials. Before you jump into using these sensors, we have some tips for you.
HX711 Weight Sensor
This sensor can measure weight up to 1kg, and is compatible with Arduino, micro:bit, ESP32 and Raspberry Pi via I2C communication.
You will need to install the library DFRobot_HX711_I2C library
which is available in Arduino library manager. However, the Arduino source file DFRobot_HX711_I2C.h
will prompt an error in the console. To fix it, you simply need to remove this part sensor IIC address*/
from this line #define HX711_I2C_ADDR (0x64) sensor IIC address*/
.
Please see here for their official tutorial.
Speech Synthesis Module V2
This module can turn text into speech. It supports both English and Mandarin languages and uses I2C or UART for communication.
If you are using the V2 version, make sure you download and install the DFRobot_SpeechSynthesis_V2
library which is only available via manual install. There is a tutorial for installing libraries on Arduino.
In the V2 library, you can only use the Female voice, but you can change the pitch by setting the tone from 0-9 (0 is the deepest).
Please see here for their official tutorial.
Voice Recorder Module Pro
This module has an integrated recording and playback function and supports I2C communication. It can store 10 segments of 100s audio.
It also has a simplified speech synthesis function, for numbers 0 to 9 only. The built-in LED is very helpful when using the module.
- Off: No recording at the current number
- Yellow: There is a recording at the current number
- Red: Is recording
- Green: Is playing
- Flashing in red: Is deleting
Please see here for their official tutorial.