PIC16F1827 Touch Desk Lamp

Publisher:PeacefulOasisLatest update time:2016-08-01 Source: eefocusKeywords:PIC16F1827 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
Use the library provided by PIC, which can be downloaded from http://www.microchip.com/mla . Also, pay attention to the MPLAB_IDE_8_76 version IDE and the C compiler picc-9_81-win.exe.
PIC16F1827 Touch Desk Lamp - ARM_EARY - IT_EARYThis is the touch library of PIC. After installation, you will get a series of touch MCU demos. Find the library we want (including PIC16F1827), then copy it out, configure and modify it. Configure-->Select Device selects PIC16F1827. The default speed of the whole program is the on-chip crystal oscillator 16M.

①Configure generic_processorConfigBits.h to use the internal crystal oscillator, etc.

PIC16F1827 Touch Desk Lamp - ARM_EARY - IT_EARY

 There are two places that need to be modified: mTouch_config.h:

②This is the modification channel. 

PIC16F1827 Touch Desk Lamp - ARM_EARY - IT_EARY

 ③Modify the touch sensitivity. The smaller the value, the greater the sensitivity.

PIC16F1827 Touch Desk Lamp - ARM_EARY - IT_EARY

 ④ Read the touch value in the main function main.c. The CAP_DATA value here is probably 1 or 2.

PIC16F1827 Touch Desk Lamp - ARM_EARY - IT_EARY

 Using PIC's touch library for touch processing, the effect is very good.

Things you need:

1. Electronic materials: MCU: 51 core (AT89CXX, STC89CXX), AVR (ATMEGE8, ATMEGE16, ATMEG48), PIC (PIC16F877, PIC16F1827), ARM (STM32, S3C2440), GASIA (GA452P16, GA452P26); resistor (0.01Ω-100MΩ), capacitor (5PF-0.1F), Diodes (IN4001-4007, SS14, 5819), transistors (8050, 8550, 9013, 9014, 3904,), MOS tubes (2301, 2302, 7002, 5802, TIP122), relays (single-pole relays, double-pole relays, single-pole double-throw, single-pole triple-throw), operational amplifiers (258, 358, 324, 339, OP07, 386, TDA2030), EEPROM (24 C01, 24C02-24C516), digital IC (4017, 4011, 40110, 555, 7555, 4511, 595,), voltage regulator (317, 7805, 7809, 78L05, 7555, 1117, 1.8V-36V voltage regulator), buzzer (buzzer, buzzer), sensor (ultrasonic transceiver, infrared receiver 1838, photodiode, phototransistor, pyroelectric, thermistor PT100, Thermistor PT1K, thermocouple CU50, temperature 18B20, temperature LM35), clock (DS1302, DS1887, PCF8563), wired (high voltage 485), wireless (433 module, RC500, 2.4G), LCD driver HT1621B, touch IC, font IC, LCD (segment LCD, 1602, 12864, TFT), dot matrix (8*8, 16*16, two-color dot matrix, three-color dot matrix RGB).

Keywords:PIC16F1827 Reference address:PIC16F1827 Touch Desk Lamp

Previous article:PIC18f lights up LED
Next article:Solution to the large array RAM allocation error of PIC microcontroller

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号