Skip to content
CTC16 team looking at modifying devices to show air quality indications
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
boot.py
pwm_alert.py
sds011logger.py
secrets.py
web.py

README.md

CTC16-Mike-and-Rob

CTC16 team looking at modifying devices to show air quality indications

LED boards

Original board:

Original board

Microcontroller removed and some wires added:

With some wires

Schematic

Schematic

Connections from NodeMCU to the LED board:

5V -> 5V pad on the back of the board

GND -> GND pad on the back of the board (though all GNDs are common so could tack it on elsewhere if more convenient)

D5 -> R pad of MCU footprint

D6 -> G pad of MCU footprint

D2 -> B pad of MCU footprint

D1 -> W pad of MCU footprint

Put details of Wifi netorks into secrets.py then load boot.py, main.py and pwm_alert.py as main.py onto nodemcu running micropython.

boot.py looks at what wifi networks it can see and if there is a passowrd for them in secrets.py it connects.

Then main.py (pwm_alert.py) will be run, which gets the colour it should display from the web and sets the colour component values as duty cycles for PWM.

Rough layout of the transistors on the board:

Transistors

Can put control lines onto resistors if MCU pads aren't usable after removing MCU.

You can’t perform that action at this time.