Search this site
Embedded Files
Skip to main content
Skip to navigation
Silkroad IoT WiKi
About IoT WiKi
Projects
Watch Care 2024
Face Care 2020
Piezo Care 2019
Jetbot(JetsonNano Car)
Balance Car
Solar Car battery Charger
Solar Weather Station
SoilMoistureLog
NeoPixel Clock24
NeoPixel Clock60
NeoPixel Clock16x16
Arduino Basic
tinyGS
MIDI
Internet Radio
ESP32 Dev Modules
Internet Radio(M5Stack)
ESP32 S3 Super Mini
TTGO T-Display MCU 32
CYD ESP32-2432S022
CYD ESP32-2432S028
Radio Reveiver
AI & ChatGPT
Xiaozhi ESP32-S3
Xiaozhi ESP32-S3 Color LCD
Xiaozhi ESP32-S3 Camera
Xiaozhi ESP32 (BASIC)
Mobile ALOHA
My Xiaozhi Box
3D Works
ESP32 Develop Boards
M5Stack
ESP32 DEVKIT
NodeMcu-32S
ESP32 S2 Mini
ESP32 C3 Super Mini
ESP32 D1 Mini
Wemos D1 R32
Wemos D1 Mini
NodeMCU ESP8266 V3
ESP-01
ESP-07
ESP32 LoRa Boards
HELTEC ESP32 LoRa
TTGO LoRa32
ESP32 Platforms
Raspberry Pi (Linux)
Introduction
Raspberry Pi 400
Raspberry Pi5
OLED-RTC-FAN
RpiEasy
Other Micro Computer
Digispark
Mirco:bit
Raspberry Pi Pico
Pro Micro NRF52840
Pine64 (Linux)
C.H.I.P (Linux)
Arduino Sensors
KeyPad
RFID
MT8870 DTMF Decoder
PIR Sensor
Heart beat Sensor
Pulse Oximeter
Infrared Thermometer
Arduino Displays
LCD
OLED 0.66 Shield
OLED Kanji Font
IPS TFT 240x240
MCU_FRIENDS TFT
OPEN-SMART TFT
RGB-Matrix-P3-64x32
NeoPixel Matrix
NeoPixel
Arduino Actuators
Cloud Panel
Servo
Relay
Motor Driver
Water Plant
IoT Kit 1 (ESP8266 D1)
Deep Sleep
IoT Kit 2 (ESP8266 Shields)
IoT Kit 3 (ESPEasy Works)
ESPEasy-Nokia5110
ESPEasy PIR Sensor
ESPEasy Motion
ESPEasy SHT30
ESPEasy CO2
ESPEasy Relay
ESPEasy MQTT
ESPEasy WiFiCar
ESPEasy Motorshield
ESPEasy Weather
Witty Cloud
Webduino
ESPEsay I2C Tester
Domoticz
IoT Kit 4 (M5StickC)
UIFlow
Blink
WiFi & Clock
Sensor: Barometer
Sensor : Distance (TOF)
Sensor : Thermometer
Sensor : Ultrasound
Sensor: PIR
Sensor : CO2
Sensor: Grid-EYE
Sensor : Pulse Oximeter
Sensor : 6 axis Sensor
AI: TinyML
Sensor: Current
IoT Kit 5 (ESP32-CAM)
Motion Tracking
ESP32-CAM Car
ESP32-CAM AI-Car
Zeus Car
Healthcare
TinyML
ESP8266 Firmware
WLED
ESPurna
Tasmota
Mixly
TuyaSmart
EspTuya
TinyTuya
LocalTuya
TuyaSmart CO2
Tuya-Convert
Home Assistant
Home Assistant Core
Home Assistant OS
ESP Home
Amazon Alexa
ESP8266 Alexa
Sinric IoT Circuit Hub
Alexa Smart Home Skill
DonkeyCar
Joystick
DonkeyCar(2WD)
Donkey Car 1/16
Donkey Car 1/28
Donkey Car RC-base
Donkey Car SIM
Donkeycar jetracer
DonkeyCar App
Robot
Robot Arm
Unmanned Vehicle
M5StickC Drone
M5Stamp Fly
ESP32 Drone
4DRC 4D-V15
4DRC 4D-F10 Pro
Foldable S89
E99 Pro
DJI Tello
Bluetooth
BT: Nintendo balance board
BT : Nintendo Wii
BLE : Sniffing
BLE Raspberry Pi
BLE: Xiaomi Band
BLE: Xiaomi Ambiant
Network
MQTT
OpenWrt
Pi Router
MIT App Inventor
Phone Clock
NFC (RFID) reader
Attend Prototype
openBD API
openBD API (iOS)
Book Manager
Mastodon API
CloudDB Chat
Map Tour
LEGO Mindstorms EV3
Google Sheets
App Downloads
MIT App Inventor IoT
Linkit Smart 7688
ESP32 BLE
ESP8266 Thermostat
ESP8266 Web Car
Arduino 101
Arduino & HC-05
TinyWebDB
RoomNoiseLog
WiFi Sniff
WordPress
WordPress API
PoemDB
UPStudy
Human-centric Ubiquitous
Solid Pod
ActivityPub
UPOD Platform
SmartCity
SmartHome
UbiHome
UbiCare Data
UbiCare
UbiStudy
Google Services
Google Colab
C
Java
OpenCV
Google Chromebook
Google Chrome OS
Google Home
Google Health Connect
Cloud Computing
Cloudflare
Yunohost
Vesta Control Panel
Cloud Service API
Grav CMS
VSCode
Local Storage
USB Drive
USB Stick
Mac SSD
Free Books
About me
Silkroad IoT WiKi
NeoPixel
Spooooky Talking Halloween Box
It is that time of year again...time for some spooky projects! I have wanted to play with one of Adafruit's AudioFX sound boards for quite some time. Our customers love these boards, and they are perfect for Halloween props. To keep things simple, I chose to use the 16 MB Audio FX Board with 2x2W amplifier. I like this board because you can wire up the speakers directly to it. In this case, I went with Adafruit's cheap and cheerful Stereo Enclosed Speaker Set. They have the added bonus of looking like eyes if you install them horizontally. The Audio Effects board is simple to actuate. Send one of the trigger pins to ground and it triggers the effect. You can learn more about working with the board in the Adafruit Learning System. My goal was to use a PIR sensor to detect motion and then play a sound. Easy right? The only problem is that the PIR sensor outputs 5V when it senses motion. That wouldn't work with the AudioFX board, so I used an NPN transistor with 100k and 1k resistors. I wired it per the diagram below, courtesy Adafruit. The Emitter is connected to ground, Base is connected to a 100k resistor that goes to the signal pin of the PIR motion sensor, and the Collector is connected to a 1k resistor that goes to 5V and the input pin. I recorded some sound, uploaded it to the Audio FX board and got everything working, but the only problem was that the board would keep getting triggered by the PIR. I wanted the sounds to only come on once or twice while a potential trick or treater was on our porch. So, I added a Trinket M0 microcontroller! I really like the Trinket M0 because it is small, relatively powerful, and best of all you can run CircuitPython on it. CircuitPython is a flavor of MicroPython, and I find it way less clunky than using the Arduino IDE. It also helps that I have some formal Python training and have never taken a C class in my life. :-) With the addition of a microcontroller, now I could easily control the timing of how audio would play and also add some WS2812 LED's. We picked up some "Neopixel clones" from a Chinese supplier, and they work pretty well. They are not as easy to use as real Neopixels, so we do recommend beginners stick to the genuine Adafruit product. With my circuit getting a bit more complicated, the risk of stuff falling out of a breadboard got higher. So I transferred everything to a Perma Proto board. This takes a bit more time, but it also makes the project way more robust. Pro tip: mount your breakout boards on stacking headers. That way if you want to reuse them in another project, it is easy to do so! All of this electronic goodness needed a place to live, so I built a laser-cut wooden case on our Glowforge. I did the initial box design using MakerCase, and then I added cutouts for the speakers, WS2812 rings, and some 3mm holes for screws. I added a spooky mouth for good measure. Feel free to download the SVG files for our case. Like I said earlier, we coded this in CircuitPython. Everything about CP is straightforward. You just copy the libraries you need to the device, in this case, they were digitalio and neopixel. You then use either a text editor or an interface like mu. I like mu because you can easily view serial output, which can be handy for debugging. I borrowed a few of Adafruit's Neopixel libraries and put my Python expertise to work. While my code may not be pythonic, it works! Check out my code here. I put the finishing touches on with our biggest Lithium Ion battery pack and a JST switch breakout. After a bit of gluing, I think the final product turned out quite well! Complete Bill of Material: 16 MB Audio FX Board with 2x2W amplifier Stereo Enclosed Speaker Set NPN transistor PIR motion sensor Trinket M0 microcontroller WS2812 LED ring x2 Half size perma-proto board Lithium Ion battery pack JST switch breakout Laser cut box
Report abuse
Page details
Page updated
Report abuse