Output devices (week11)
Group Assignment
- measure the power consumption of an output device
Measure voltage, current, resister and frequency(Hz) by the number of LEDs on NeoPixel
Using ATtiny3216 breakout board, I made a program for easier experiment that can adjust the number of LEDs in 0, 18, 36, 72, 144(max number of my NeoPixel LED is 144) by pushing switch.
testInOutBoard_v2.ino
I made a input/output board using ATtiny3216 breakout board as I did not have any access to lab under COVID-19 situation.
For detail about input/output board, please see individual page of output device seek
Then I checked voltage, current, resister and frequency.
Timelapse - checking current value by number(0, 18, 36, 72, 144) of LEDs in NeoPixel
Experiment result
Voltage
- color of LED: (255, 255, 255)
- with 470Ω resister to data pin
# of LED | 1st | 2nd | 3rd |
---|---|---|---|
0 | 4.39V | 4.40V | 4.36V |
18 | 3.38V | 3.22V | 3.15V |
36 | 2.99V | 2.79V | 2.82V |
72 | 2.67V | 2.54V | 2.58V |
144 | 2.46V | 2.36V | 2.38V |
Current
Max Current between VCC and ground of Neo Pixel
This result is the outcome by parallel connection for the circuit of NeoPixel and multi meter between voltage and ground pin. It's not appropriate to measure the current in that circuit. Instead, I did another experiment to check current by shunt resister after I come back to lab.
# of LED | 1st | 2nd | 3rd |
---|---|---|---|
0 | 10.05A | 9.77A | 11.14A |
18 | 9.80A | 9.96A | 9.68A |
36 | 9.03A | 9.40A | 9.24A |
72 | 8.35A | 8.14A | 7.96A |
144 | 6.93A | 6.91A | 7.77A |
Resister
For 144 of LED in NeoPixel, the resister value is 2.12MΩ (when voltage is off).
Frequency
Frequency between anode and cathode was not changed by the number of LED
# of LED | 1st |
---|---|
18 | 116.2khz |
36 | 113.5khz |
72 | 117.5khz |
144 | 113.2khz |
Check current by shunt resister as of 13 June
After I come back to lab, I could check the current by shunt resister circuit. As NeoPixel LED resister value depends on the number of LEDs and the connection, I put a resister as a serial circuit bridging 5V and GND in NeoPixel.
I tested this by ATtiny412 output board that I made for my final project.
On this circuit, I used 1Ω resister and check the voltage by multimeter.
From the formula of V(voltage) = I (current) x R (resister), I could calculate the current from voltage value that I check by multimeter.
tinyNeoPixel_sample_412_0613_2.ino
tinyNeoPixel_sample_412_0613_2.ino
Experiment result (on output board using ATtiny412)
Firstly, I tried to blink LEDs on NeoPixel(WS2812B) with the same number(max: "144") as above experiment with ATtiny3216. However, the maximum number of LEDs that I can blink on ATtiny412 output board was "24" it looks unstable brightness.
I tried some cases as follows but could not find out the cause of this.
- Get voltage from AC Adapter (5V) to ATtiny412 output board
--> blinked only few LEDs(24 LEDs or less in unstable brightness) - Embed the same program of "tinyNeoPixel_sample_412_0613_2.ino" to ATtiny3216 breakout board,
--> 54 LEDs by white color(255,255,255) (After change the FTDI cable as a voltage source from USB Type A connector of Raspberry Pi to MacbookPro, 144 of all the LEDs blinked successfully)
--> 144 LEDs by green color(0,150,0)
From the experiment using ATtiny3216 breakout board, This looks to be caused by current volume flowing in NeoPixel. However, by ATtiny412 output board(v1.0), even though I change the VCC source from 5V VCC and GND pins of FTDI interface to AC Adapter(5V, 1.2A).
This also might be any electronics problems in my output board and I checked electronics continuity for each pin of Vcc, data pin to control NeoPixel and GND. THe continuity is ensured and no problem at least I could check.
For this experiment, I checked the number of LEDs by 24, 12, 6, 1 and 0
I measured the voltage for each case and calculate current (mA) by formula of I=V/R. As R=1Ω, the voltage value is equals to current in this shunt resister circuit.
# of LED | 1st | 2nd | 3rd |
---|---|---|---|
24 | 642mA | 640mA | 639mA |
12 | 376mA | 375mA | 375mA |
6 | 207mA | 207mA | 207mA |
1 | 65.1mA | 65.1mA | 65.1mA |
0 | 35.1mA | 35.1mA | 35.1mA |