Tutorial 2 Blink Led ADC (Analog To Digital Converter)

Mengatur kecepatan Blinking LED dengan Potensio

Pada tutorial pertama kita telah membuat progam blinking LED dengan delay yang kita atur waktunya, kali ini kita akan membuat LED berkedip yang  dengan kecepatan kedipan berdasarkan nilai analog pada potensio. memanfaatkan fungsi ADC(Analog To Digital Conveter) yang ada pada Sooko PSoC 4 board.

kebutuhan komponen :

Rangkaian :

  • Pin potensio 1 terhubung pada ground
  • Pin potensio 2 (tengah) terhubung pada P2.0
  • Pin potensio 3 terhubung pada 5 volt
  • Pin LED terhubung pada P1.6

Lanjut ke pemrogaman 

  1.  Buat topdesign seperti gambar di bawah ini pada software PSoC Creator
1. Sekema top design

2. Pilih konfigurasi pin

2. konfigurasi pin

3. Koding

3. koding

video tutorial 2 Blink Led ADC

Setelah hal tersebut selesai build project dan progam.

Anda akan melihat LED berkedip sesuai nilai potensio, semakin diputar ke kanan LED akan berkedip semakin cepat.

zip file project blink led dengan potensio download

software PSoC Creator download

 

 

 

One comment

  1. Introductions! Welcome to SourcingIC.com!!

    We are Hong Kong representative of the following IC brands for 15 years:

    TOSHIBA
    ALTERA
    ANALOG GADGETS
    TEXAS INSTRUMENTS
    ST
    FAIRCHILD
    ATMEL
    XILINX
    SILICON CHIP
    SAMSUNG
    MOTTO
    NEC
    NXP
    ON SEMI
    PHILIPS
    FREESCALE
    INFINEON
    INTERSIL
    STRAIGHT INNOVATION
    MOTOROLA

    I know you may need to find ICs.

    The major objective for us is sourcing ICs. As you know greater than 99% ICs readily available in this planet might be found in China, however it is time-costly to situate or send questions to hundreds of providers or firms individually to locate who obtained stocks and obtain excellent quote!

    Action 1: Skype or email our colleague: sales@sourcingic.com
    Action 2: Inform us component number as well as the quantity or various other requirements
    Action 3: I will certainly resource from vendors and also our colleague will certainly select the reputable vendor to quote

    Tip 4: Our experienced IC technicans will examine the ICs to confirm they are genius and working well

    Step 5: Well loaded as well as delivered

    Repayment Method:
    Paypal/ Western Uniuon/ TT

    See you!

    Ideal Regards,
    Sourcing IC

    To supply every uncommon ICs

    Business Background:

    Souring IC Ltd is a Hong Kong based business with China workplaces in various provinces. We supply a vast array of digital parts, focused on IC consisting of Sound IC, Power Monitoring IC, Consumer Electronic IC, and so on. Our purpose is to supply any type of components which are challenging to be sourced in the electronic market, especially the one discountinued by factories. With the aid of most current A.I system as well as the elite teammates we possessed, we have the ability to source every ICs that is not frequently used by the co-operation with thousands manufacturing facilities and also companies in China. We are able to provide the most competitive cost without MOQ.

Leave a Reply

Your email address will not be published. Required fields are marked *