add pinout to readme

This commit is contained in:
Sophie Schiller 2021-02-17 14:32:48 +01:00
parent adad6b5117
commit bc85a020b8
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,28 @@
# Sourcecode for a skirt with blinking LEDs
## Hardware
* Arduino Uno or Arduino Nano
* 6 Strips of 15 WS2812 or equivalent
* rotary encoder
* MPU6050 inertial measuring unit
* three colored LEDs
* 220Ohm resistor
* 100µF 50V capacitor
## Wiring
| Arduino Pin | Destination device | Destination Pin |
|-------------|---------------------|-----------------|
| A2 | rotary encoder | CLK |
| A3 | rotary encoder | DT |
| A4 | MPU6050 | SDA |
| A5 | MPU6050 | SCL |
| D2 | rotary encoder | SWn |
| D3 | led yellow | positive |
| D4 | led blue | positive |
| D5 | led red | positive |
| D6 | 1st strip of WS2812 | Din |
| D7 | 2nd strip of WS2812 | Din |
| D8 | 3rd strip of WS2812 | Din |
| D9 | 4th strip of WS2812 | Din |
| D10 | 5th strip of WS2812 | Din |
| D11 | 6th strip of WS2812 | Din |

View file

@ -16,3 +16,14 @@ lib_deps =
rfetick/MPU6050_light@^1.1.0
fastled/FastLED@^3.4.0
mathertel/RotaryEncoder@^1.5.0
upload_port = /dev/ttyACM*
[env:nanoatmega328new]
platform = atmelavr
board = nanoatmega328new
framework = arduino
lib_deps =
rfetick/MPU6050_light@^1.1.0
fastled/FastLED@^3.4.0
mathertel/RotaryEncoder@^1.5.0
upload_port = /dev/ttyUSB*