Skip to content

zpeters/UglyChristmasSweater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ugly Christmas Sweater

The Ugly Chrismas Sweater is my attempt to win the 2018 Ugly Chrismas Sweater contest at work

UCS is based on a WifiMCU (EMW3165) board. WifiMCU is a fun platform that runs eLua!!

  • Cortex-M4 microcotroller
    • STM32F411CE
    • 100MHz,Cortex-M4 core
    • 2M bytes of SPI flash and 512K bytes of on-chip flash
    • 128K bytes of RAM
  • Interfaces
    • 17 GPIO Pin
    • 3 UARTs
    • ADC(5)/SPI(1)/I2C(1)/USB(1)
    • SWD debug interface
    • 11 PWM
  • Broadcom IEEE 802.11 b/g/n RF Chip
    • Supports 802.11 b/g/n
    • WEP,WPA/WPA2,PSK/Enterprise
    • 16.5dBm@11b,14.5dBm@11g,13.5dBm@11n
    • Receiver sensitivity:-87 dBm
    • Station,Soft AP and Station+Soft AP
    • CE, FCC suitable

UCS has it's own access point. When you connect to the AP you are presented with a "login" page. Instead of a login prompt, you have a simple link that will trigger the lights and song.

Construction

This is very basic as you can see from the photo. The WifiMCU is connected to five (or more if you want) leds. These are connected directly to the gpio pins, no resistor was necessary.

Additionally, there is a musical song that plays. This was extracted from a battery operated christmas card. Conveniently it had an on/off button, so that is no controlled by a 5v relay (see below)

This is a super basic circuit, basically just connect all the components directly to the board. Please add an issue if you want a proper schematic

Materials

Installation

The init.lua can be loaded with WifiMCU Studio (windows based software) or my wmc console based software (Mac, Linux, Windows)

wmc example

wmc put init.lua
wmc reboot

Operation

When you plug the sweater into a power source it will briefly display a "power up" animation. After that it will boot up the Access Point and web server.

When someone connects to the "UglyChristmasSweater" access point they are able to click on a link and start the fun.

Video with sound