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…
iainhendry71
-
-
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…
-
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…
-
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…