
Osillyscope-2layer
tvlad1234/osillyscope
Low cost, low part count CH32V003-based oscilloscope

Low cost, low part count CH32V003-based oscilloscope
Osillyscope etchable is an open-source printed circuit board by tvlad1234, from the tvlad1234/osillyscope repository on GitHub, published under the MIT licence. It is a 2-layer board of 48 × 36.5 mm with 31 parts on 28 nets, routed with 122 tracks and 0 vias.
It is built around the CH32V003A4M6, ICL7660N and TL082, with the AMS1117-3.3 among its other parts. Its parts include 10 capacitors, 6 resistors, 4 ICs, 4 connectors and 3 switches. It belongs with the lEDs and displays and sensors and measurement boards and the RISC-V boards of this library.
CH32V003 OLED screen oscilloscope

Many thanks to PCBway for sponsoring this project with fast high-quality PCB prototyping.
This is a small digital oscilloscope based around the CH32V003A4M6 RISC-V microcontroller. It uses an SSD1306 I2C OLED display and three pushbuttons for the user interface. Its purpose is to be an inexpensive, easy to build and pocket-sized tool for checking the presence, levels and waveform of an unknown signal. The hardware design focuses on simplicity and low-count bill of materials.
The maximum achievable sample rate is 1.6MSa/s (the time base goes as low as 5us/div). This project proposes a frontend design which allows for a signal input range between -3.3V and +3.3V. The input range can be extended using a standard 10x probe, as the instrument has 1MOhm of input impedance. The bandwidth of the frontend was measured to be around 2.5MHz.
The schematics and board design files (KiCad 7) are provided in the hw folder. Two PCB designs are included: a 2-layer design, meant to be sent to a PCB fab and a single layer one, designed to be easily etchable.

Very shortly after I had published this project, PCBWay reached out to me, offering to try their PCB prototyping services. About a week after placing the order, the boards had arrived, and here are my thoughts on the service they provided:
I'm very pleased with them. They feel dense and solid, I had absolutely no trouble soldering them up. With such a relatively simple, untested board design, I chose to go with HASL finish. While assembling, I had to desolder and resolder the power pin header, and the pads didn't show any signs of possible failure or fatigue (I had that happen often with various circuit boards in the past, but I had no issues with these ones). Visually, I opted for black solder mask. It looks absolutely beautiful, glossy and uniformly coated, honestly the picture above doesn't show it in all of its beauty. The silkscreen is crisp, precise and nicely aligned.
Ordering from them was quite a breeze using their KiCad plugin, which automatically plots and uploads the Gerber files into their ordering platform with a single click. I find their service affordable, I ordered 10 boards (2 layers, 1.6mm with HASL finish) and the price for the boards came to be 5USD.
This was my first experience with PCBWay's prototyping service, and it's been a pleasant one. I will certainly consider them again for my next PCB prototyping needs, and I warmly encourage you too will give them a try.
The analog frontend consists of a 2x attenuator, opamp buffer stage and DC offset stage. An ICL7660 voltage converter IC provides the negative supply voltage for the TL082 dual opamp. The oscilloscope can be powered from a 5 or more volts supply, such as a 9V battery.
The schematics are also provided as PDF, in doc/schematic.pdf.
The firmware source code is provided in the fw folder. It uses the ch32fun framework.
The ADC operates in continuous conversion mode and samples are fetched into a circular buffer via DMA. Triggering is achieved using the analog watchdog feature of the ADC.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 5 | 100n | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C5, C6, C7, C9, C10 |
| 2 | 10u | Capacitor_THT:CP_Radial_D5.0mm_P2.50mm | C3, C4 |
| 2 | 20k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R5, R6 |
| 2 | 22p | Capacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolder | C1, C2 |
| 2 | 500k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R1, R2 |
| 2 | TestPoint | TestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mm | TP1, TP2 |
| 2 | TestPoint | TestPoint:TestPoint_THTPad_2.0x2.0mm_Drill1.0mm | TP3, TP6 |
| 1 | 100u | Capacitor_THT:CP_Radial_D5.0mm_P2.50mm | C8 |
| 1 | 20k | Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal | R3 |
| 1 | 60k | Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal | R4 |
| 1 | AMS1117-3.3 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U1 |
| 1 | CH32V003A4M6 | Package_SO:SOIC-16_3.9x9.9mm_P1.27mm | U3 |
| 1 | Conn_01x02 | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J3 |
| 1 | Debug/Prog | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J4 |
| 1 | Decrement | Button_Switch_THT:SW_PUSH_6mm | SW1 |
| 1 | ICL7660 | Package_DIP:DIP-8_W7.62mm_LongPads | U4 |
| 1 | IN | Connector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_Horizontal | J1 |
| 1 | Increment | Button_Switch_THT:SW_PUSH_6mm | SW3 |
| 1 | OLED | Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_Vertical | J2 |
| 1 | Select | Button_Switch_THT:SW_PUSH_6mm | SW2 |
| 1 | TL082 | Package_DIP:DIP-8_W7.62mm_LongPads | U2 |

tvlad1234/osillyscope
Low cost, low part count CH32V003-based oscilloscope




mithro/rpi-camera-led
Interposer for the Raspberry Pi camera flex cable: passes the 15-way CSI bus straight through and adds I2C-controlled camera GPIO, PWM illumination LEDs and an ambient light sensor, driven by a CH32V003.

koko69420/UV-Curing-Box
UV PCB resin curing box controller using WCH CH32V003 RISC-V MCU, 4x4 keypad, TM1637 display, and KiCad PCB

mverdon/ch32v003a4m6-breakout
Breakout board for prototyping with the CH32V003 MCU


BogdanTheGeek/CCCCPPPS
Cheap Crappy Constant Current Portable Programmable Power Supply
It measures 48 × 36.5 mm and has 2 copper layers, 1.6 mm thick.
31 parts, built around the CH32V003A4M6, ICL7660N, TL082 and AMS1117-3.3. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the tvlad1234/osillyscope repository on GitHub, at the commit this page was made from: the board is hw/osillyscope-etchable/osillyscope-etchable.kicad_pcb and its schematic hw/osillyscope-2layer/osillyscope-2layer.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).