Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.7 KB

pca9632_IIC.md

File metadata and controls

59 lines (41 loc) · 1.7 KB

pca9632_IIC module

Last modification: 10.04.2020

Schematics of Module: schematics for testing will be added later

Schematics

Reconnection with Raspberry PI 3+:

Interface to PI

  • schematics of PI reconnection*

  • Configuration for /dev/i2c-1

  • port 2 (SDA), port 3 (SCL)

  • pull-up resistor is used from module board (R2,R3)

How to install?

Install Lazarus-ide at raspberry FPC & Lazarus Installation Install Python3 and next modules for pca9632 Python3 & modules

(optional when you have only lite linux version)

sudo apt-get install gtk2-engines libgtk2.0-dev

Run application:

ecomet_i2c_tools/pca_9632

Features:

  • Read status of pca_9632 chip and show on concole

  • Click at Enumerated Buttons (as ALLCALL), choice from values for register (MODE1, MODE2, LEDOUT)

  • Write to Register - Actually modified value visible by red rectangular

  • Apply write changes for all actually selected attributes (buttons) - click at APPLY button

  • Click at button (with values) changed to color to white. Then able to change value

  • PWMx, GRPPWM DutyCycle recalculated to percentage

  • GRPFREQ transfered to frequency, time

    >>Sub Features:

  • Register MODE1, MODE2 enumerate ON, OFF status

  • Register MODE2 (DBMLNK) enumerate DIMMING, BLINKING status

  • Register LEDOUT, enumerate ON, OFF, PWM, PWM_GRPPWM status

  • Register PWMx, GRPPWN, GRPFREQ (in Hz, in Time)

Limitation

  • TrackBar not used now
  • Chip Address currently not able to change

console

Source Code (FPC):

  • Path: ~/ecomet_i2c_tools/fpc/pca9632