---
title: "Ethernet to PWM speaker part 1"
url: "https://maker.wiznet.io/mayuri/projects/ethernet-to-pwm-speaker-part-1/"
markdown_url: "https://maker.wiznet.io/mayuri/projects/ethernet-to-pwm-speaker-part-1/md"
type: "UCC: User Created Content"
author: "Wen-Liang Lin"
author_url: "https://www.hackster.io/momososo/ethernet-to-pwm-speaker-part-1-f03dda"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "Wen-Liang Lin"
original_url: "https://www.hackster.io/momososo/ethernet-to-pwm-speaker-part-1-f03dda"
published: "2022-12-29"
language: "en"
hardware: ["WIZnet W5100S-EVB-Pico"]
likes: 2
views: 445
comments: 1
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Ethernet to PWM speaker part 1

> Use TCP to send sound commands to the device to generate PWM to sound to the speaker.

Original author: Wen-Liang Lin (source: https://www.hackster.io/momososo/ethernet-to-pwm-speaker-part-1-f03dda)

## Components

- **WIZnet W5100S-EVB-Pico** x 1 ([docs](https://docs.wiznet.io/Product/Chip/Ethernet/W5100S/w5100s-evb-pico))

## Documents and links

- [W5100S-EVB-Pico_SCH_V110](https://docs.google.com/viewerng/viewer?url=https://hacksterio.s3.amazonaws.com/uploads/attachments/1540685/w5100s-evb-pico_sch_v110_m043zIxL1e.PDF) (schematics)

## Article

![](https://maker.wiznet.io/upload/ckeditor5/496116952%5F1672328293%2Epng)

## **Story**

I want to complete a ethernet speaker project, but it seems to be very big, so I divide it into several parts to complete. This is part 1.

1. Download and install Thonny <https://thonny.org/>

2. Follow <https://github.com/Wiznet/RP2040-HAT-CircuitPython> install circuitPython and setup W5100S-EVB-Pico

3. Run [examples/Network/W5x00_Echo_Demo_TCP.py](https://github.com/Wiznet/RP2040-HAT-CircuitPython/blob/master/examples/Network/W5x00_Echo_Demo_TCP.py) test your network

4. generate different PWM tone follow

<https://docs.circuitpython.org/en/latest/shared-bindings/audiopwmio/index.html>

5. connect W5100S-EVB-Pico and class D amp and speaker.

6. run python app and use TCP client tool connect to your W5100S-EVB-Pico.

![](https://hackster.imgix.net/uploads/attachments/1540689/1_oUzI5BGvnx.png?auto=compress%2Cformat&w=740&h=555&fit=max)

I use windows cmd connect to TCP server

![](https://hackster.imgix.net/uploads/attachments/1540691/2_JoeEvv35K2.png?auto=compress%2Cformat&w=740&h=555&fit=max)

7. key in 1~7 test the Ethernet to PWM speaker.

[Embedded media](https://www.youtube.com/embed/YxIaJPIKxbQ?rel=0)

---

Source: https://maker.wiznet.io/mayuri/projects/ethernet-to-pwm-speaker-part-1/
