2024.12.02
MediaTek Genio 130A Wi-Fi 6 multimedia interactive mood lighting Christmas tree solution
Feel the festive atmosphere of the event? Sound and light effects are indispensable! Combining traditional art and technology, the lantern festival activities, symphonic water dance show, drone lights, fireworks, sound and light animation show. All kinds of event decorations, such as weddings, markets, porches, tents, banquets, terraces, balconies, gazebos, gardens, signboards, flowers and trees, barbecues, taverns, birthday parties, cafes, entrance eaves... Wait. and Christmas celebrations around the world, where Christmas events and department stores are equipped with towering Christmas trees, colorful lights, toys and gift decorations to add color to the festivities.
The global epidemic has changed the way of life of human society, and festivals are moving towards local miniaturization and home. The use of festival decoration and technology makes people resonate with the sense of festival life, and the customs and culture and emotions are closer to the heart.
MediaTek Genio 130A (MT7933) features advanced Wi-Fi and Bluetooth capabilities, which can easily extend or connect indoor or outdoor mood lighting. Join the smart home ecosystem and synchronize home theater, games, and music.
The MediaTek Genio 130A combines an ARM® Cortex-M33 MCU application processor with a discrete audio digital signal processor (DSP) and AI engine. Use local voice commands or cloud voice processing to apply the atmosphere mode to set schedules and synchronize with time, music playback and lights.
The microphone mode picks up ambient music/sound, synchronizing lighting effects with mood and activity to push the mood to a peak.
1. PWM initial
Initialize PWM settings such as clock, duty cycle, etc
static void PWM_init(void) { int32_t total_count; hal_gpio_init(HAL_GPIO_35); hal_pinmux_set_function(HAL_GPIO_35, 3); hal_pwm_init(HAL_PWM_6,HAL_PWM_CLOCK_26MHZ); hal_pwm_set_frequency(HAL_PWM_6, 2000, &total_count); hal_pwm_set_duty_cycle(HAL_PWM_6, 999); hal_pwm_start(HAL_PWM_6);}
2. Sound initialization
ATTR_ZIDATA_IN_RAM static short record_buffer[32000];constintbitdepth= 16;structmsd_hw_paramsparams;static sound_t*w_snd= NULL;static intvSound_init(void) { {intret = 0;if (bitdepth!= 16 && bitdepth!= 32) {aud_error("bitdeptherror: %d", bitdepth);return 0;}params.format= bitdepth== 16 ? MSD_PCM_FMT_S16_LE : MSD_PCM_FMT_S32_LE;params.channels= 1;params.period_count= 4;params.period_size= 960;params.rate= 16000;intbytes_per_frame= bitdepth* params.channels/ 8;intdata_frames= params.rate;intdata_size= bytes_per_frame* data_frames;if (w_snd== NULL) {connect_route("UL3", "INTADC in", 1, CONNECT_FE_BE);connect_route("I_60", "O_14", 1, CONNECT_IO_PORT);connect_route("I_61", "O_15", 1, CONNECT_IO_PORT);ret = snd_pcm_open(&w_snd, "UL3", 0, 0);
3. Get the peak volume of the microphone reception
intget_max_volume(){inti=0;intmax = 0;intbytes_per_frame= bitdepth* params.channels/ 8;intdata_frames= params.rate;intdata_size= bytes_per_frame* data_frames;ret = snd_pcm_read(w_snd, record_buffer, data_frames);if (ret != data_frames) {aud_msg("ret: %d", ret);}for (i=0; imax) max = record_buffer[i];}return max;}
4. Calculate the ambient sound and adjust the PWM duty
If (max volume > THRESHOLD) {PWM duty cycle = (PWM duty cycle < 1000 )? PWM duty cycle + 200 : 1000;} else If (max volume < THRESHOLD) {PWM duty cycle = (PWM duty cycle > 0)? PWM duty cycle 200: 0;}hal_pwm_set_duty_cycle(HAL_PWM_6, PWM duty cycle);
►Scenario application diagram
►Photos of display boards
►Scenario block diagram
►Core technical advantages
MediaTek's new wireless connectivity SoC Genio 130A (MT7933) integrates a microcontroller (MCU), AI engine, Wi-Fi 6 and Bluetooth 5.2, a discrete audio digital signal processor (DSP) to save energy, and a power management unit (PMU) to provide reliable and efficient network connectivity.
The MediaTek Genio 130A's PWM function can be used to drive RGB LEDs, which are composed of three colors: red, green, and blue. It can produce a variety of special effects such as rainbows, waves, color changes, flashes, etc., to create a gaming RGB atmosphere.
►Solution specifications
Application Processor :
• ARM® Cortex-M33 MCUs with floating-point arithmetic and 300MHz clock running
• Supports 12 sets of PWM
Audio Digital Signal Processor (DSP) :
• Cadence ® Tensilica® HiFi4 processor running at 600MHz
Wi-Fi Technical Specifications :
Dual-band IEEE 802.11 1T1R a/b/g/n/ax 5GHz and 2.4GHz
2.4G / 5GHz band, 20MHz bandwidth MCS0 ~ MCS8
Bluetooth Technical Specifications :
Bluetooth v5.0 2Mbps PHY compliant
Other
What is HBM (High Bandwidth Memory)?
2024.09.05
What is Antenna Tuner IC?
2024.09.20
What’s the Difference between LPDDR and DDR?
2024.09.25
Snapdragon 888 5G Mobile Platform
2024.09.26
What is WiFi 6E?
2024.09.26
What is Bluetooth Audio SoC?
2024.09.26
What's HBM3E (High Bandwidth Memory 3)?
2024.09.26
What is an Audio Codec?
2024.10.09