My Arduino Projects

 Display with PCF8576 Controller

2 - display

2

 

1

Supply

A   –           3.3V
K   –           GND
VSS   –      GND  logic ground
VLCD  –    5V
VDD   –     5V

3

Backlight

a

Display Type : HTN, Transflective, Positive
Driving method : 1/4 duty  1/3 bias
Operating voltage : 5.0V
LCD Drive Voltage ( VLCD) : 5.0V
Driver IC : PCF8576DU/2DA/2
Operating temperature : -25º till 85ºC

Arduino Code

defining parameters/varibles :

#define ADDRESS                   B0111000      //  I2C Address of PCF8576
#define DEVICE_SELECT    B11100000    //  Device select   [Command]    [1100]    [A2 A1 A0]
#define MODE_SET               B11001000    //  MODE SET      [C]   [10]   [LowPower]   [Enable]   [Bias]   [Mux]
#define BANK_SELECT        B11111000      //  no effect in 1:4 multiplex mode

#define zero             B11110011
#define one              B01100000
#define two              B11010110
#define three            B11110100
#define four             B01100101
#define five               B10110101
#define six                B10110111
#define seven           B01110000
#define eight           B11110111
#define nine            B11110101

#define pointer_digit1     B00001100   //   C  0  P5  P4  P3  P2  P1  P0
#define pointer_digit2    B00001010
#define pointer_digit3    B00000011
#define pointer_digit4    B00000001
#define pointer_col         B00001000

 

function example :

 void Digit_1 (int digit)
    {
    Wire.beginTransmission (ADDRESS) ;  
    Wire.write (MODE_SET) ;   
    Wire.write (DEVICE_SELECT) ;  
    Wire.write (B11111000) ;
    Wire.write (pointer_digit1) ;  
    Wire.write (digit) ;
    Wire.endTransmission () ;
    }

 


 

I2C EPROM 42568WP

1

 

eeprom pcb eeprom sch

 

 

 


 RTC :    PCF8563     –    real time clock and calendar

Datasheet :   http://www.nxp.com/documents/data_sheet/PCF8563.pdf

The PCF8563 is a CMOS Real-Time Clock (RTC) and calendar optimized for low powerconsumption.
- Provides year, month, day, weekday, hours, minutes, and seconds based on a 32.768 kHz quartz crystal
- Century flag
- Clock operating voltage: 1.0 V to 5.5 V at room temperature
- Low backup current; typical 0.25 A at VDD = 3.0 V and Tamb=25C
- 400 kHz two-wire I2C-bus interface (at VDD= 1.8 V to 5.5 V)
- Programmable clock output for peripheral devices (32.768 kHz, 1.024 kHz, 32 Hz, and 1Hz)
- Alarm and timer functions
- Integrated oscillator capacitor
- Internal Power-On Reset (POR)
- I2C-bus slave address: read A3h and write A2h
- Open-drain interrupt pin

 

1

 

1

 This chip uses an external crystal 32.768 KHz and caps and has 1 Interrupt output.
 Cap connected to oscillator around 12 pf.

1

.

Source Code for Arduino

http://tronixstuff.com/2013/08/13/tutorial-arduino-and-pcf8563-real-time-clock-ic/

you can also find a library with examples at :

http://playground.arduino.cc/Main/RTC-PCF8563

.


Bluetooth module : HC-06

1


 

Ultrasonic module : HC-SR04

1

.

.

.

.

.

.

.

.

.

.

.

2 thoughts on “My Arduino Projects

Leave a comment