Function description of Lonkongbao
Motor drive
The control board supports 2-way PWM motor drive (marked M1 and M2 on the back of the control board). You can connect DC motors (such as TT motors, N20) and LED lights (starry light strips).
I/O
The left and right sides of the expansion board have 12 I/O interfaces and 2 I2C interfaces. These interfaces can be used to connect to classic sensor input modules and output modules. For example: buttons, human infrared, ultrasonic, LED, motor, buzzer, digital tube... The expansion board expansion pins are P0, P1, P2, P3, P5, P6, P7, P11, P13, P14, P15, P16, P19 (SCL), P20 (SDA)
important
Since P5 and P11 are the IO pins of the control board's buttons A and B, in order to avoid conflicts, the expansion board's P5 and P11 pins can only be used for digital level input, and the expansion board will flip the input level. Pay special attention when using it!
Speaker - Audio playback
The control expansion board has a built-in speaker and supports audio playback.
Text-to-speech (TTS)
Convert text into words and let the machine speak. This will give the control panel a "mouth". For example, you can input what you want to say in the program and let it speak to you.
Python Libraries
parrot module: for motor drive functions
audio module: used for audio playback
|