
Artist's commentary
がんばれ小傘さん 3212
計算に三角関数とか出てきますしね!
「実効値とか何!?」みたいな!
arduinoを使っても電圧の判定に悩まされました。
4コマでは描かないのでここに書くと、5000回くらい測定をループさせてその平均値をとりました。
1回だけだと測るタイミングによって数値が違うんですよ!
交流ですから!
おのれニコラ・テスラ!
2乗平均しないと値がほぼ0になります。
交流ですので!
arduinoでは実際は0~5ボルトしか測れないので2.5ボルトほど値にゲタを履かせましたが(^^;)
Hang in There, Kogasa-san 3212
There are trig functions and all coming up in the calculations! I'm was all like "What the heck's a 'root mean squared value'!?"
Even if I used an arduino, determining the voltage worried me. I didn't draw it in the strip, so I'll note here that I put the measurement into a loop for about 5000 times and then took the average value. Even in a single round, the value differed depending on the timing of the measurement! It's because of AC! Damn you, Nikola Tesla!
If you don't square each values, the average becomes almost 0. Because it's AC! The arduino actually can only measure 0-5V, though, so I padded the values by about 2.5V. (^^;)
Comments
Leave a comment