Showing posts with label microcontroller related. Show all posts
Showing posts with label microcontroller related. Show all posts

0 Digital-Controlled Power Supply

This circuit is a logic-controlled power supply unit. The regulator IC (like 7805, 7806, 7808, 7812, others) output is controlled by a signal  (CMOS or TTL) from microcontrollers, comparator, opamp, and other signal generators. When signal is 1 (5V) output is high (determined by IC regulator), and when signal is 0 (0V) output is low (0V). You can add fuse at the input or output for protection.
Power supply schematic
Part List:
Q1 - TIP42C, TIP32C or similar PNP transistor
Q2 - 2N2222, CS9013, or similar NPN transistor
R1 - 1.2 kilo ohms 1/4W
R2 - 120 ohms 1/4W
C1 - 100uF electrolytic capacitor rated 16V
C2 - 10uF electrolytic capacitor rated 16V
IC - 7805, 7806, 7812 and other 78XX regulator IC
DC - 15V DC supply
2n2222 pinout
7805, 7806, 78XX pinout
TIP42C, TIP32C pinout


1 simple power supply for microcontroller

This power supply uses 7805 regulator IC. It can deliver
up to 5W of power to microcontroller and its peripherals.
It has a 5V regulated output, suitable for microcontroller operation.
power supply schematic diagram

Power supply materials:
1. C1-1000uF/ 25V
2. C2 220uF/10V (optional)
3. LM7805 regulator IC
7805 IC pin outs

1 Cheap Microcontroller Power Supply

This project is a Cheap Power Supply for microcontroller. 
It is composed only of a transistor and zener diode that regulates
the output voltage to about 5V (within 2.5 to 5.5V voltage range
of microcontroller).

Power Supply schematic diagram
It can regulate up to 500mW of power, which large enough to 
power a microcontroller of both PIC and ATMEL. The incoming voltage
can be from a battery or a converter.

Power Supply materials
1. C - 1000uF/16V electrolytic cap
2. R1 - 1.2-ohms/0.5W resistor
3. 1kilo-ohms 0.25-0.5W resistor
4. zener - 5.6V zener (1N5232B or 1N4734A)
5.NPN - general purpose npn transistor (2N2222 or 9013)

note: do not use this power supply if you are requiring more than 500mW.

1 microcontroller programmer (pic16f877 jdm programmer)

The diagram below is a simple jdm based microcontroller programmer. This particular programmer can be used to program pic16f877 or pic16f877a microcontrollers.
pic16f877 jdm programmer

0 5x7 LED dot matrix character Map

The table below is character map of 5x7 Led dot matrix. It is a useful lookup table specially when your a planning to build a moving message or character display powered by microcontroller. This binary equivalent of  alphanumeric characters can also be used in LED display signage and advertisements.

0B00000000, 0B00000000, 0B00000000, 0B00000000, 0B00000000,//space
0B00000000, 0B00000000, 0B01111001, 0B00000000, 0B00000000, //exclamation_mark
0B00000000, 0B01110000, 0B00000000, 0B01110000, 0B00000000, //double_quotes
0B00010100, 0B01111111, 0B00010100, 0B01111111, 0B00010100, //hash
0B00010010, 0B00101010, 0B01111111, 0B00101010, 0B00100100, //dollar_sign
0B01100010, 0B01100100, 0B00001000, 0B00010011, 0B00100011, //percent
0B00110110, 0B01001001, 0B01010101, 0B00100010, 0B00000101, //ampersand
0B00000000, 0B01010000, 0B01100000, 0B00000000, 0B00000000, //apostrophe
0B00000000, 0B00011100, 0B00100010, 0B01000001, 0B00000000, //left_parenthesis
0B00000000, 0B01000001, 0B00100010, 0B00011100, 0B00000000, //right_parenthesis
0B00010100, 0B00001000, 0B00111110, 0B00001000, 0B00010100, //asterisk
0B00001000, 0B00001000, 0B00111110, 0B00001000, 0B00001000, //plus
0B00000000, 0B00000101, 0B00000110, 0B00000000, 0B00000000, //comma
0B00001000, 0B00001000, 0B00001000, 0B00001000, 0B00001000, //minus
0B00000000, 0B00000011, 0B00000011, 0B00000000, 0B00000000, //full_stop
0B00000010, 0B00000100, 0B00001000, 0B00010000, 0B00100000, //forward_slash
0B00111110, 0B01000101, 0B01001001, 0B01010001, 0B00111110, //zero
0B00000000, 0B00100001, 0B01111111, 0B00000001, 0B00000000, //one
0B00100001, 0B01000011, 0B01000101, 0B01001001, 0B00110001, //two
0B01000010, 0B01000001, 0B01010001, 0B01101001, 0B01000110, //three
0B00001100, 0B00010100, 0B00100100, 0B01111111, 0B00000100, //four
0B01110010, 0B01010001, 0B01010001, 0B01010001, 0B01001110, //five
0B00011110, 0B00101001, 0B01001001, 0B01001001, 0B00000110, /six
0B01000000, 0B01000111, 0B01001000, 0B01010000, 0B01100000, //seven
0B00110110, 0B01001001, 0B01001001, 0B01001001, 0B00110110, //eight
0B00110000, 0B01001001, 0B01001001, 0B01001010, 0B00111100, //nine
0B00000000, 0B00110110, 0B00110110, 0B00000000, 0B00000000, //colon
0B00000000, 0B00110101, 0B00110110, 0B00000000, 0B00000000, //semicolon
0B00001000, 0B00010100, 0B00100010, 0B01000001, 0B00000000, //less_than
0B00010100, 0B00010100, 0B00010100, 0B00010100, 0B00010100, //equals
0B00000000, 0B01000001, 0B00100010, 0B00010100, 0B00001000, //greater_than
0B00100000, 0B01000000, 0B01000101, 0B01001000, 0B00110000, //question_mark
0B00100110, 0B01001001, 0B01001111, 0B01000001, 0B00111110, //at
0B00111111, 0B01000100, 0B01000100, 0B01000100, 0B00111111, //A
0B01111111, 0B01001001, 0B01001001, 0B01001001, 0B00110110, //B
0B00111110, 0B01000001, 0B01000001, 0B01000001, 0B00100010, //C
0B01111111, 0B01000001, 0B01000001, 0B00100010, 0B00011100, //D
0B01111111, 0B01001001, 0B01001001, 0B01001001, 0B01000001, //E
0B01111111, 0B01001000, 0B01001000, 0B01001000, 0B01000000, //F
0B00111110, 0B01000001, 0B01001001, 0B01001001, 0B00101111, //G
0B01111111, 0B00001000, 0B00001000, 0B00001000, 0B01111111, //H
0B00000000, 0B01000001, 0B01111111, 0B01000001, 0B00000000, //I
0B00000010, 0B00000001, 0B01000001, 0B01111110, 0B01000000, //J
0B01111111, 0B00001000, 0B00010100, 0B00100010, 0B01000001, //K
0B01111111, 0B00000001, 0B00000001, 0B00000001, 0B00000001, //L
0B01111111, 0B00100000, 0B00011000, 0B00100000, 0B01111111, //M
0B01111111, 0B00010000, 0B00001000, 0B00000100, 0B01111111, //N
0B00111110, 0B01000001, 0B01000001, 0B01000001, 0B00111110, //O
0B01111111, 0B01001000, 0B01001000, 0B01001000, 0B00110000, //P
0B00111110, 0B01000001, 0B01000101, 0B01000010, 0B00111101, //Q
0B01111111, 0B01001000, 0B01001100, 0B01001010, 0B00110001, //R
0B00110001, 0B01001001, 0B01001001, 0B01001001, 0B01000110, //S
0B01000000, 0B01000000, 0B01111111, 0B01000000, 0B01000000, //T
0B01111110, 0B00000001, 0B00000001, 0B00000001, 0B01111110, //U
0B01111100, 0B00000010, 0B00000001, 0B00000010, 0B01111100, //V
0B01111110, 0B00000001, 0B00001110, 0B00000001, 0B01111110, //W
0B01100011, 0B00010100, 0B00001000, 0B00010100, 0B01100011, //X
0B01110000, 0B00001000, 0B00000111, 0B00001000, 0B01110000, //Y
0B01000011, 0B01000101, 0B01001001, 0B01010001, 0B01100001, //Z
0B00000000, 0B01111111, 0B01000001, 0B01000001, 0B00000000, //left_square
0B00100000, 0B00010000, 0B00001000, 0B00000100, 0B00000010, //back_slash
0B00000000, 0B01000001, 0B01000001, 0B01111111, 0B00000000, //right_square
0B00010000, 0B00100000, 0B01000000, 0B00100000, 0B00010000, //circumflex
0B00000001, 0B00000001, 0B00000001, 0B00000001, 0B00000001, //underscore
0B00000000, 0B01000000, 0B00100000, 0B00010000, 0B00000000, //grave_accent
0B00000010, 0B00010101, 0B00010101, 0B00010101, 0B00001111, //a
0B01111111, 0B00001001, 0B00001001, 0B00001001, 0B00000110, //b
0B00001110, 0B00010001, 0B00010001, 0B00010001, 0B00010001, //c
0B00000110, 0B00001001, 0B00001001, 0B00001001, 0B01111111, //d
0B00001110, 0B00010101, 0B00010101, 0B00010101, 0B00001101, //e
0B00000000, 0B00001000, 0B00111111, 0B01001000, 0B00100000, //f
0B00001001, 0B00010101, 0B00010101, 0B00010101, 0B00011110, //g
0B01111111, 0B00001000, 0B00001000, 0B00001000, 0B00000111, //h
0B00000000, 0B00000000, 0B00101111, 0B00000000, 0B00000000, //i
0B00000010, 0B00000001, 0B00000001, 0B01011110, 0B00000000, //j
0B00000000, 0B01111111, 0B00000100, 0B00001010, 0B00010001, //k
0B00000000, 0B01000001, 0B01111111, 0B00000001, 0B00000000, //l
0B00011111, 0B00010000, 0B00001110, 0B00010000, 0B00011111, //m
0B00011111, 0B00001000, 0B00010000, 0B00010000, 0B00001111, //n
0B00001110, 0B00010001, 0B00010001, 0B00010001, 0B00001110, //o
0B00011111, 0B00010100, 0B00010100, 0B00010100, 0B00001000, //p
0B00001000, 0B00010100, 0B00010100, 0B00010100, 0B00011111, //q
0B00011111, 0B00001000, 0B00010000, 0B00010000, 0B00001000, //r
0B00001001, 0B00010101, 0B00010101, 0B00010101, 0B00010010, //s
0B00010000, 0B00010000, 0B01111110, 0B00010001, 0B00010010, //t
0B00011110, 0B00000001, 0B00000001, 0B00000001, 0B00011110, //u
0B00011100, 0B00000010, 0B00000001, 0B00000010, 0B00011100, //v
0B00011110, 0B00000001, 0B00000110, 0B00000001, 0B00011110, //w
0B00010001, 0B00001010, 0B00000100, 0B00001010, 0B00010001, //x
0B00010000, 0B00001001, 0B00000110, 0B00001000, 0B00010000, //y
0B00010001, 0B00010011, 0B00010101, 0B00011001, 0B00010001, //z
0B00001000, 0B00110110, 0B01000001, 0B01000001, 0B00000000, //leftcurly
0B00000000, 0B00000000, 0B01111111, 0B00000000, 0B00000000, //vertline
0B00000000, 0B01000001, 0B01000001, 0B00110110, 0B00001000, //rightcurly
0B00000100, 0B00001000, 0B00001000, 0B00001000, 0B00010000, //tilde
0B01111111, 0B01000001, 0B01000001, 0B01000001, 0B01111111}; //del