In this example we connect a push button switch to the first bit of PORT C (RC0) which will be configured as an input pin. The push button is connected to a 10k pull up resistor this means that the input pin is …
Code
-
-
This is the usual introduction to a different pic, this time we will start to show you some examples with the PIC16F873 microcontroller, you can find out more about this micro from Microchip but to summarise its a 28 pin sdip …
-
In this example we interface an AD keypad to our PIC16F877 and we also connect an LCD display. The LCD display is simply as a debug tool to display A/D readings, the nature of an AD keypad is that there …
-
Sometimes in your projects you simply do not have enough I/O lines available, take for example a lot of the multiple LED examples, these use 8 outputs to control 8 LEDs via your PIC, that can restrict the amount of …
-
In this example we will read the temperature and humidity using a DHT11 sensor and display the readings on our LCD. We have linked to the datasheet at the bottom of the page, download it and then you can read …
-
In this example we will connect an LDR again but this time when the ADC value goes below a certain number we will switch an LED on, in real life this could be an alarm or a night light. The …
