Changing the I2C address Connecting to a Raspberry Pi or BeagleBone Black Python & CircuitPython CircuitPython Microcontroller Wiring Python Computer Wiring CircuitPython Installation of MAX9744 Library Python Installation of MAX9744 Library CircuitPython & Python Usage Full Example Code Python Docs Downloads Datasheets &...
Page 4
We like the MAX9744 amplifier at the heart of this board because its very easy to use, but it also has both analog and digital volume control capability. Use a single 1KΩ pot (we include one) to adjust volume analog-style. Or hook it up to your favorite microcontroller and send I2C commands to set 64-steps of volume amplification.
Page 5
Each order comes with one MAX9744 breakout board with all surface-mount parts fully assembled and tested. We also include 3 x 2pin and 1 x 3pin terminal blocks, a 470uF power filter capacitor and 1KΩ trim pot. To use this board, a little soldering is required to attach the terminal blocks and other components, but its fairly easy and expect it should take less than 15 minutes.
Power connections The MAX9744 amplifier can use between 5-14VDC power. The higher the voltage, the more gain you can get. So if you want 20W per channel, you'll need to supply 12VDC. The amplifier is a Class D - so it only draws current when its playing audio, but the voltage requirement is still pretty important.
Assembly section The MAX9744 board draws about 30-50mA quiescent current - that means that even when not amplifying audio you'll be drawing that much current from the power supply. On top of that, you have to add the current usage for audio amplification which will vary widely based on audio volume, speaker impedance, amplification, etc.
GND from the MAX9744 connects to the common ground connection on your Arduino Vi2c from the MAX9744 connects to the logic level voltage of your board. For most Arduinos, 5V works well. If you have a 3V microcontroller, use 3.3V Connect the SDA pin to the I2C data SDA pin on your Arduino.
Page 31
Upload this sketch to your Arduino, and keep it connected to your computer. Don't forget to power the MAX9744 with 5-12VDC separately via the DC jack! #include <Wire.h> // 0x4B is the default i2c address #define MAX9744_I2CADDR 0x4B // We'll track the volume level in this variable.
0x4A (AD1 closed or tied to ground) or 0x49 (AD2 closed or tied to ground) Connecting to a Raspberry Pi or BeagleBone Black If you'd like to control the MAX9744 from a Raspberry Pi or BeagleBone Black then check out this Adafruit MAX9744 Python library (https://adafru.it/idA).
CircuitPython Microcontroller Wiring First wire up a MAX9744 to your board exactly as shown on the previous pages for Arduino using an I2C connection. In addition just like the basic test page mentions be sure to also wire up a power supply, speakers, and audio input to the amplifier.
(https://adafru.it/Awz) so you are at the CircuitPython >>> prompt. Python Installation of MAX9744 Library You'll need to install the Adafruit_Blinka library that provides the CircuitPython support in Python. This may also require enabling I2C on your platform and verifying you are running Python 3.
Below is a complete example of setting the volume of the amplifier. Save this as code.py on the board and it will set the volume to a moderate/half-way level. Full Example Code # Simple demo of the MAX9744 20W class D amplifier I2C control. # This show how to set the volume of the amplifier. # Author: Tony DiCola...
Need help?
Do you have a question about the MAX9744 and is the answer not in the manual?
Questions and answers