Close

Writing Python software

A project log for Amplifier input select, pre-amp and tone control

A fully digitally I2C-controlled input selector, pre-amplifier and tone controller based around the TDA7439.

tijl-schepensTijl Schepens 03/29/2021 at 18:560 Comments

I've started writing the software to control the board in Python. The goal is to control the board using a Raspberry Pi.

To control the board over I2C I started using the smbus2 module. It is popular for the Raspberry Pi and has good documentation.

When I started writing the software I did not notice that the TDA7439 does not support reading out its registers. So I was trying to read out the registers to see if it was working and everything just returned 1. But as the device does not support read out this is quite normal.
So then I removed all the software I wrote for read out and started testing writing to the device.

The software I've written seems to be working, but I still need to test all the functionality. For now I've only tested the input selection and the volume control. The other functions are all similar so I assume they will be working fine.

https://gitlab.com/piamplifier/python-tda7439

Discussions