First, I would say it's not working right now...
We just started this project tonight, and we are struggling to make PWM module work.
We use ATtiny2313.
PWM = Pulse Width Modulation
If we apply it to LED drive, we can control the LED's brightness.
In our code, PWM module will generate about 2kHz waves, and it's possible to control the brightness by the changing the duty cycle, so it's hard to see whether it's working properly.
We wanna finish this project by tomorrow evening.
Because cool girls gonna visit my friend's place on wednesday.
We wanna show them how we are excellent...
まず、今現在AVRのプログラムがうまく動いてない。
さっき夕食後に始めたばかりで、PWMモジュールの設定で行き詰まってるっぽい。
マイコンはTiny2313使ってる。
PWMでLEDを駆動させると、LEDの明るさ調節ができる。
PWMはプログラム上では2KHzの信号を生成して、そのデューティ比を変化させることで明るさは調整される。周波数自体は高速であるため、目でそのちらつきを感じることは難しい。
明日の夜までには、動くようにしたい。
水曜日に女の子が友達の家を訪れる予定だから。
俺達がすごいってとこを彼女達に見せつけるのさ。。。