Short intro/background:
Bought a new amp (Cambridge Audio CXA61) for my hifi system, and spotted a RS232 9 pin header on the back, which according to CA can be used to steer it. This resulted in the idea to build a webserver which should steer the amp and the pi I use to run moode. I also wanted something to really power off the pi, because during runtime it consumes around 1A/5V (5W) and when shut down 200mA/5V (1W).
After some testing, I decided to go with the following hardware components and connections:
![[Image: PrWLEvG.png]](https://i.imgur.com/PrWLEvG.png)
The webserver will run on the ESP-07s. Because of some restrictions around timing and controlling the whole system, it is not directly linked to the rest of the hardware, but only exchanges data with an Arduino ATMega328p using TTL. I decided to use a barebone arduino chip, because why not and to save some space in the box hosting the components.
The AT is connected to the Pi over two connections to check the power state of the pi and to request the shutdown. Then it is also connected to a relais which is used to cut off the power supply of the pi after shutdown to conserve some energy. Last but not least, the AT speaks with the amp and is connected to it over a TTL/RS232 connection. Throw in some LEDs and two buttons for steering the whole thing locally, and we have a web based remote for Moode/pi and CA.
Planned features are:
- turn on/off the CXA61 via web front end
- change the input source of the amp
- mute/unmute the amp
- automatic shutdown and booting of the pi whenever the amp is switched off/on
- an override control (plus button) to keep the pi running even when the amp is turned off
- a button to manually shutdown the pi and to cut off the power supply
- three LEDs for: HiFi status on/off (nad LED blink when muted); Relais power on/off; Pi on/off (and blink for overriding the automatic shut down).
Current status: aliexpress is pretty busy in sending me various orders with parts I still need, but....
- the communication between AT and CXA61 works, just like it works between the ESP and the AT
- the webserver is making progress. The Pi related buttons are still missing, but I am happy now to have my own size reduced version of the required fonts and found a way to store all static data in the flash memory of the ESP. No need to add a sd card for this, and the control buttons also don't look too bad.
![[Image: MhhqdCI.png]](https://i.imgur.com/MhhqdCI.png)
- the power switch/relais is working. I am using two USB-C ports for routing the power through the steering element. Maybe I remove the hot glue, I just needed something to fix everything without having to wait for hours.
![[Image: is26OAg.jpg]](https://i.imgur.com/is26OAg.jpg)
- wiring the hardware is also almost complete and working (on the bread board). Some parts like the Pi are simulated using a button for its power state, and the CXA61 is not connected yet in the test system.
![[Image: MRHLvbO.jpg]](https://i.imgur.com/MRHLvbO.jpg)
Now I can go back to the web server and work on the communication between AT and ESP, and hopefully in some weeks more hardware is here to build all the cables and connectors.
Bought a new amp (Cambridge Audio CXA61) for my hifi system, and spotted a RS232 9 pin header on the back, which according to CA can be used to steer it. This resulted in the idea to build a webserver which should steer the amp and the pi I use to run moode. I also wanted something to really power off the pi, because during runtime it consumes around 1A/5V (5W) and when shut down 200mA/5V (1W).
After some testing, I decided to go with the following hardware components and connections:
![[Image: PrWLEvG.png]](https://i.imgur.com/PrWLEvG.png)
The webserver will run on the ESP-07s. Because of some restrictions around timing and controlling the whole system, it is not directly linked to the rest of the hardware, but only exchanges data with an Arduino ATMega328p using TTL. I decided to use a barebone arduino chip, because why not and to save some space in the box hosting the components.
The AT is connected to the Pi over two connections to check the power state of the pi and to request the shutdown. Then it is also connected to a relais which is used to cut off the power supply of the pi after shutdown to conserve some energy. Last but not least, the AT speaks with the amp and is connected to it over a TTL/RS232 connection. Throw in some LEDs and two buttons for steering the whole thing locally, and we have a web based remote for Moode/pi and CA.
Planned features are:
- turn on/off the CXA61 via web front end
- change the input source of the amp
- mute/unmute the amp
- automatic shutdown and booting of the pi whenever the amp is switched off/on
- an override control (plus button) to keep the pi running even when the amp is turned off
- a button to manually shutdown the pi and to cut off the power supply
- three LEDs for: HiFi status on/off (nad LED blink when muted); Relais power on/off; Pi on/off (and blink for overriding the automatic shut down).
Current status: aliexpress is pretty busy in sending me various orders with parts I still need, but....
- the communication between AT and CXA61 works, just like it works between the ESP and the AT
- the webserver is making progress. The Pi related buttons are still missing, but I am happy now to have my own size reduced version of the required fonts and found a way to store all static data in the flash memory of the ESP. No need to add a sd card for this, and the control buttons also don't look too bad.
![[Image: MhhqdCI.png]](https://i.imgur.com/MhhqdCI.png)
- the power switch/relais is working. I am using two USB-C ports for routing the power through the steering element. Maybe I remove the hot glue, I just needed something to fix everything without having to wait for hours.
![[Image: is26OAg.jpg]](https://i.imgur.com/is26OAg.jpg)
- wiring the hardware is also almost complete and working (on the bread board). Some parts like the Pi are simulated using a button for its power state, and the CXA61 is not connected yet in the test system.
![[Image: MRHLvbO.jpg]](https://i.imgur.com/MRHLvbO.jpg)
Now I can go back to the web server and work on the communication between AT and ESP, and hopefully in some weeks more hardware is here to build all the cables and connectors.