In the following example we connect a capacitive touch switch to an Arduino and when a touch is detected we will switch on an LED. I used the following capacitive …
-
-
The concept of a dark activated light is quite simple, we use a light dependent resistor (LDR) to an ADC pin on our PIC micro, we then read in a …
-
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 …
-
In this example we will show you how to connect a 7 segment display to our PIC18F2550. You can think of a 7 segment display as 7 individual LEDs in …
-
This is a picture of the 8 x 8 LED matrix display I used which I connected to my ATmega128 Here are the connections CS -> PORTC 2 DIN -> …
-
In this example we will show you how to connect a 7 segment display to our Atmega128. You can think of a 7 segment display as 7 individual LEDs in …
-
In this example we connect a MAX7219 seven segment display to our ATmega16, the connection was as follows VCC → 5V GND → GND DIN → PB5 CS → PB0 …
-
This is made easy by the TEXT LCD library. The schematic shows how to connect up the 16×2 LCD to the MBEd Schematic Code #include “mbed.h” #include “TextLCD.h” TextLCD lcd(p15, …
-
A basic PWM example using an Attiny2313 Schematic Code #define F_CPU 1000000UL #include <avr/io.h> #include <util/delay.h> int main(void) { DDRB |= (1 << PB2); // PWM output on PB2 TCCR0A …
-
Being interested in various microcontrollers means we purchase lots of modules, development boards and sensors. One of these is the ARduino of which we have purchased many different shields, as …