中山市百佳大谷电子科技有限公司
Catalog LED module......................................................................................1 RGB module.....................................................................................5 Button module...................................................................................6 Photoresistor module.........................................................................8 Active buzzer module.......................................................................11 Passive buzzer module.
LED module (Red/Yellow/Green/Blue/White) Module description: LED is the abbreviation of light-emitting diode. It is usually made of gallium arsenide, gallium phosphide semiconductor material. LED has two electrodes, one positive and one negative. When the positive current passes through, it will light up. It can be red, blue, green or yellow light, and the color of the light depends on the material it uses. Working voltage:3.3V~5V Output type:Digital signal.
Microbit graphic programming Results: after pin 8 is plugged in, the LED lamp will cycle on for 1 second and off for 1 second.
Microbit graphic programming Results: the LED lamp on pin 1 had a slow process from on to off, rather than directly on and off.
RGB module Product description: RGB LED consists of 3 leds. Each led has a red light, a green light and a blue light. These three colors leds can produce any color. The RGB LED has red, green and blue light transmitters and is usually connected to a common lead (anode or carthode) using three wires. The module is a commong cathode led. Working voltage: 3V~5V Input type: PWM. The value (0~255) is input into RDDB three interfaces as digitial value. The color of RGB LED is controled by PWM.
Microbit graphic programming Results: the RGB LED lights of R access pin 0, G access pin 1, B access pin 2 cycle flashing.
Button module Product description: Buttons are common components used to control electronic devices. They are usually used as switches to connect or disconnect circuits. Under normal circumstances, the two contacts of the button are in the open state, and they only close when the button is pressed. Working voltage:3.3V to 5V Output type:Digital signal. Press the key, high level;Release the key, low level. Interface mode:PH2.0~3P Module size:35*26.3mm Module weight:49g.
Microbit graphic programming Results: pin 5 is connected to the key and pin 8 is connected to the LED lamp. When the key is pressed, the LED light is on; when the key is released, the LED light is off.
Photoresistor module Module description: Photoresistor is a kind of light controlled variable resistor.Photoresistors have photoconductivity and can be used in photodetectors. Photoresistors are made of high resistance semiconductors. In the dark, the resistance of photoresist can be as high as several megaohms (m Ω), while in sufficient light, the resistance of photoresist can be as low as several hundred ohms.
Microbit graphic programming Results: pin 0 was connected to the analog output of photoresistor, pin 8 was connected to the LED lamp. When the analog output value was higher than 600, the LED was on; otherwise, the LED light was not on.
Microbit graphic programming Results: pin 5 was connected to the digital output of the photoresistor, and pin 8 was connected to the LED lamp. When the digital signal output from pin 5 was 0, the LED light was on; otherwise, the LED light was not on. Tip: try to twist the cross port on R1 of the module with a screw driver, and observe the change of the output content of the serial port.
Active buzzer module Module description: Buzzer is a kind of audio signal device. As an integrated electronic buzzer, it is powered by DC voltage and widely used in computers, printers, copiers, alarms,electronic toys, automotive electronic equipment, telephones, timers and other electronic product voice equipment. According to its driving mode, buzzer can be divided into activebuzzer and passive buzzer.
Microbit graphic programming Results: the key was connected to pin 8 and the active buzzer was connected to pin 5. When the key was pressed, the buzzer made a sound and showed a smiling face. When the key was released, the buzzer did not make a sound and showed a crying face.
Passive buzzer module Module description: Buzzer is a kind of audio signal device. As an integrated electronic buzzer, it is powered by DC voltage and widely used in computers, printers, copiers, alarms,electronic toys, automotive electronic equipment, telephones, timers and other electronic product voice equipment. According to its driving mode, buzzer can be divided into active buzzer and passive buzzer. Is the input module, digital interface.
Microbit graphic programming Results: pin 8 was connected to the touch module, and pin 0 was connected to the passive buzzer. When the touch module output high level, the crying face was displayed on the microbit board and the passive buzzer made a Wawa sound; when the touch module output low level, the microbit Board showed a smiling face and the passive buzzer did not make a sound.
Microbit graphic programming Results: pin 8 is connected to the touch module and pin 0 is connected to the passive buzzer. When the touch module outputs high level, the buzzer will play songs; when the touch module outputs low level, the buzzer will stop playing songs.
Touch sensor module Module description: Touch module is a capacitive touch switch module based on touch detection. Normally, the module outputs low level;When touching the corresponding position with fingers, the module will output high level.The module can be installed on the surface of non-metallic materials such as plastic and glass.In addition, a thin piece of paper (non- metallic) can be covered on the surface of the module.
Microbit graphic programming Result: pin 8 is connected to the touch module. Whenever the touch module outputs a high level, the 5 * 5 dot matrix LED displays a bitter face, until the touch module outputs a low level, the 5 * 5 dot matrix LED displays a smiling face. Supplement: there is a two lattice dial on the module. There are four combinations of dial dial dial, namely 00, 01, 10 and 11 respectively. That is to say, the touch module can realize four touch modes according to the combination of encoder.
Tracking moudle Module description: The tracking module is used to transmit light to the road by the infrared transmitting tube. When the infrared light encounters black, it is absorbed. The receiving tube does not receive the reflected light and outputs high level. When the red light meets other colors, the receiving tube receives the reflected light and outputs a low level. When using analog output, the module can be used as a gray-scale sensor.
Microbit graphic programming Results: do-l access pin 0, do-r access pin 1, open the serial port window.
Fan module Module description: DC motor is a kind of motor that converts DC electric energy into mechanical energy. The most common type depends on the force produced by the magnetic field. Almost all types of DC motors have some internal mechanism, either electromechanical or electronic, to periodically change the current flow direction of some motors. Most types produce rotational motion; linear motors produce force and linear motion directly Working voltage: 5V.
Microbit graphic programming Results: IB interface was connected to pin 2 and IA interface was connected to pin 1. When the key a is pressed, the motor rotates forward; when the key B is pressed, the motor rotates reversely; when pressing the keys a and B at the same time, the motor stops rotating.
Infrared receiving module Module description: The external receiving tube is an electronic device that receives infrared light. For example, our TV sets, air conditioners and other household appliances need infrared receivers. We all know that the remote control emits infrared light. It is necessary for the TV to have an infrared receiver to receive the infrared signal from the remote control. Working voltage: 3.3V~5V Output type:digital signal Interface mode: pH2.0~3P Module size: 35*26.
According to the serial output of the hexadecimal data, we can modify the code Results: pin 16 was connected to the infrared receiving module. When "1" was pressed, the 5 * 5 dot matrix displayed the big center; when pressing "2", the 5 * 5 dot matrix displayed caution.
Microphone module (Sound sensor module) Module description: Output module, digital analog interface. It acts as a microphone. It is used to receive sound waves and display vibration images, but it can not measure the intensity of noise.
Microbit graphic programming Results: in the code programming, the do pin of the module was connected to Pin1, and the current digital value of the module was displayed on the screen. In the graphic programming, the Ao pin of the module is connected to Pin1, and the window is opened to view the analog value changes of the module under different volume levels.
Potentiometer module Module description: Potentiometer is a kind of three terminal resistance element whose resistance can be changed according to certain rules. It usually consists of a resistance element and a movable brush. When the brush moves along the element, a resistance or voltage is generated at the terminal relative to its moving distance. Working voltage: 3.3V~5V Output type: Obtain the digital output of the potentiometer switch and the analog output of the potentiometer value (0-1023).
Microbit graphic programming Results: pin 5 was connected to the digital interface of the potentiometer, pin 0 was connected to the analog interface of the potentiometer, and pin 8 was connected to the LED lamp. The LED light brightness changes with the twist of the potentiometer. The 5 * 5 dot matrix on micro: bit board changes with the switch of potentiometer.
Ultrasonic Module Module description: This module is used to measure the distance. By sending and receiving ultrasonic waves, it measures the time required for the sound to rebound from the object and return to the sensor. Using the time difference and sound propagation speed, it calculates the distance between the module and the obstacles in front. Working voltage: 3.
Micro:bit Example 1 code Mixly graphic programming Before graphical programming, you need to add an extension. Click the extension and click "search or enter project URL..." Search for "sonar" and wait for the page to refresh.
Microbit graphic programming Results: pin 1 was connected to trig and pin 2 was connected to echo. Open the serial port, move the obstacles in front of the ultrasonic ranging module, and the data output to the serial port changes.