LED Modulator with CapSense and a Switch

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
LinaS_21
Employee
Employee
First question asked First like received

Hi,

こんにちは、

I prepared a LED modulator with CapSense and a switch.

今回私は、CapSenseとスイッチを使ったLED調光器を作成しました。        

Click SW2, and you can change the LED brightness with taping the CapSense sensor.

You can make the LED brighter more and more by repeating tapping the sensor of CapSense..

スイッチを押すことで割り込みが発生し、CapSenseが反応するようになります。

CapSenseのセンサをタップすることで、LEDの光が徐々に明るくなっていきます。

Click SW2 again, and you can’t change the LED brightness however you tap the CapSense sensor.

また、もう一度スイッチを押すことで再度割り込みが発生し、CapSenseが反応しなくなります。

You can check the status of the modulator and the LED on your display because I contain UART on this program.

UARTを使用することで、現在のLEDと調光器の状態を確認できるようになっています。

PWM component is used to modulate brightness.

PWMは明るさの調整のために用いています。

When you compile and run the program, it will look like the picture below.

プログラムをコンパイルして実行すると以下のようになります。

  

schematic / 回路図

  sss_sc.png

pin / ピンアサイン

  pin.png

Best regards,

Lina

0 Replies