Author |
Message |
Topic: MQ-2 and PIR sensors interfacing with PIC |
carllw
Replies: 12
Views: 26734
|
Forum: General CCS C Discussion Posted: Mon May 21, 2018 11:27 am Subject: MQ-2 and PIR sensors interfacing with PIC |
Thanks for all answers. I corrected code and now all sensors are working. |
Topic: MQ-2 and PIR sensors interfacing with PIC |
carllw
Replies: 12
Views: 26734
|
Forum: General CCS C Discussion Posted: Sat May 19, 2018 5:44 am Subject: MQ-2 and PIR sensors interfacing with PIC |
some general comments...
This line of code...
setup_adc(ADC_CLOCK_INTERNAL);
is incorrect.
For most PICs it's ONLY used when the CPU clock is 1MHz or lower and when the PIC is asleep. There i ... |
Topic: MQ-2 and PIR sensors interfacing with PIC |
carllw
Replies: 12
Views: 26734
|
Forum: General CCS C Discussion Posted: Sat May 19, 2018 1:51 am Subject: MQ-2 and PIR sensors interfacing with PIC |
Your code expects the adc to be in 10-bit mode. But it's not, because the
default mode is 8-bit.
To put the adc in 10-bit mode, add the line shown below in bold:
#include<16F877A.h>
... |
Topic: MQ-2 and PIR sensors interfacing with PIC |
carllw
Replies: 12
Views: 26734
|
Forum: General CCS C Discussion Posted: Sat May 19, 2018 12:34 am Subject: MQ-2 and PIR sensors interfacing with PIC |
Hi, I have a problem about my circuit. I created circuit below and code is here but there is a problem. There is an IR Sensor to detect car is on garage or not (parking lot is full or empty). If you e ... |
Topic: Interfacing IR sensor with Pic16f877a and ESP8266 |
carllw
Replies: 1
Views: 8648
|
Forum: General CCS C Discussion Posted: Fri Mar 23, 2018 1:17 pm Subject: Interfacing IR sensor with Pic16f877a and ESP8266 |
Hi, i want to make a project that takes data from infrared sensor and send datas to PC or mobile phone by using ESP8266 wi-fi module over PIC16F877A. How can i do that or what should i learn about it ... |
Topic: Lock Door System |
carllw
Replies: 1
Views: 8988
|
Forum: General CCS C Discussion Posted: Fri Mar 02, 2018 4:45 pm Subject: Lock Door System |
Hi, I want to do lock door system. I used 16f877a and 4*3 keypad. It work on proteus well but I created circuit on board and i wrote ccs c code for project.
When i enter the key it says key is wrong ... |
Topic: 24-32 Bit Microcontroller |
carllw
Replies: 7
Views: 17707
|
Forum: General CCS C Discussion Posted: Thu Mar 01, 2018 5:54 am Subject: 24-32 Bit Microcontroller |
Yes today he said i should write code with C32 language.
I have one question more.
For PIC32MX250f, which pin(s) can i use for SPI protocol ? (Save data to SD Card with sd card module)
When i l ... |
Topic: 24-32 Bit Microcontroller |
carllw
Replies: 7
Views: 17707
|
Forum: General CCS C Discussion Posted: Wed Feb 28, 2018 2:55 pm Subject: 24-32 Bit Microcontroller |
Hi I am beginner with embedded. I have an sd card/ usb datalogger project with PIC32mx250f (It might be changed). My advisor said to me don't use CCS C.
Which program language should i use to compile ... |
Topic: Garage door opener with PIC |
carllw
Replies: 4
Views: 15732
|
Forum: General CCS C Discussion Posted: Fri Feb 23, 2018 1:41 pm Subject: Garage door opener with PIC |
Thanks, I wanna use this model but i didn't create CCS C code of this scheme.
https://i.hizliresim.com/A1DDqX.png[/img] |
Topic: Garage door opener with PIC |
carllw
Replies: 4
Views: 15732
|
Forum: General CCS C Discussion Posted: Fri Feb 23, 2018 7:05 am Subject: Garage door opener with PIC |
Hi, I need a ideas to make a garage door opener with PIC microcontroller for my senior design project. Does anyone have a ciircuit model or code ?
Thanks. |
|