Onion Omega2 Hardware PWM playing Music on a Piezo Buzzer

Channel:
Subscribers:
7,950
Published on ● Video Link: https://www.youtube.com/watch?v=fZXvirC3ObA



Duration: 13:00
811 views
6


Yeah, here we go again. Another "Silent Night" on a Piezo buzzer! But this time on the often overlooked Omega2 by onion.io, running Linux. It is a tiny little MIPS based SoC with WiFi, which runs headless and sports tons of GPIO pins. I did not use it for anything these last couple of years, since PWM and the like were all in software, and so had massive jitter. But earlier this year, they changed that. The new firmware allows you to access the PWM functionality directly.

Python Source code: https://gist.github.com/root42/bd22b0b1a29b256b716b979848ad06e6

Omega 2: https://onion.io/omega2/
Omega 2 Pro: https://www.crowdsupply.com/onion/omega2-pro
Hardware PWM on the Omega: https://onion.io/2bt-hardware-pwm-omega2/







Tags:
diy
IoT
xmas
onion-omega