mohan-bee/mini-mp3-player

Portable, battery-powered MP3 player hardware with USB charging, microSD storage, an MCU, VS10xx audio decoder, headphone output, status controls, and regulated power rails.

Version
1.2.0
License
unset
Stars
0

design.ts

// Pin numbers are physical package pins, verified against manufacturer references.
export const pinNets = {
 U1: {1:'NTC',2:'BAT',3:'BAT',4:'GND',5:'GND',6:'USB500_MODE',7:'PGOOD',8:'GND',9:'CHG',10:'SYS_RAW',11:'SYS_RAW',12:'ILIM',13:'USB5V',16:'ISET',17:'GND'},
 U2: {1:'SYS',2:'GND',3:'SYS',5:'V3V3'},
 U3: {1:'GND',2:'V2V5',3:'SYS'},
 U4: {1:'SYS',2:'GND',3:'SYS',5:'V2V7'},
 U5: {1:'V3V3',5:'MCU_XI',6:'MCU_XO',7:'NRST',8:'GND',9:'V3V3',10:'BAT_ADC',11:'PLAY',12:'PREV',13:'NEXT',14:'SD_CS',15:'SD_SCK_MCU',16:'SD_MISO',17:'SD_MOSI',18:'MODE',20:'BOOT1',22:'STATUS',23:'GND',24:'V3V3',25:'VS_XCS',26:'VS_SCK_MCU',27:'VS_MISO',28:'VS_MOSI',29:'VS_DREQ',30:'UART_TX',31:'UART_RX',34:'SWDIO',35:'GND',36:'V3V3',37:'SWCLK',44:'BOOT0',45:'VS_RESET',46:'VS_XDCS',47:'GND',48:'V3V3'},
 U6: {3:'VS_RESET',4:'GND',5:'V2V5',6:'V3V3',7:'V2V5',8:'VS_DREQ',9:'VS_GPIO2',10:'VS_GPIO3',13:'VS_XDCS',14:'V3V3',16:'GND',17:'VS_XO',18:'VS_XI',19:'V3V3',20:'GND',21:'GND',22:'GND',23:'VS_XCS',24:'V2V5',26:'V3V3',28:'VS_SCK',29:'VS_MOSI',30:'VS_MISO',31:'V2V5',32:'V3V3',33:'VS_GPIO0',34:'VS_GPIO1',37:'GND',38:'V2V7',39:'RIGHT',40:'GND',41:'GND',42:'GBUF',43:'V2V7',44:'RCAP',45:'V2V7',46:'LEFT',47:'GND'},
 J3: {1:'SD_D2',2:'SD_CS',3:'SD_MOSI',4:'V3V3',5:'SD_SCK',6:'GND',7:'SD_MISO',8:'SD_D1',10:'GND',11:'GND',12:'GND',13:'GND'},
 // TRS: tip=2, ring=3; both contacts in the sleeve region grounded.
 J4: {1:'GND',2:'HP_L',3:'HP_R',4:'GND'},
} as const
export type Passive = [string,string,string,string,number,number,string]
export const resistors: Passive[] = [
 ['R37','10k','USB500_MODE','USB5V',-21,-11.8,'Power'],
 ['R1','5.1k','CC1','GND',-32,-16,'Power'],['R2','5.1k','CC2','GND',-28,-16,'Power'],
 ['R3','3k','ISET','GND',-20,-13.4,'Power'],['R4','3.3k','ILIM','GND',-20,-16,'Power'],
 ['R5','10k','NRST','V3V3',-20,13,'MCU'],['R6','10k','BOOT0','GND',-20.5,8,'MCU'],['R7','10k','BOOT1','GND',-7,-3.5,'MCU'],
 ['R8','100k','BAT_SENSE','BAT_ADC',-5,-2,'Power'],['R9','100k','BAT_ADC','GND',-7,-5,'Power'],
 ['R10','10k','VS_RESET','GND',19,26,'Decoder'],['R11','10k','VS_XCS','V3V3',14,1,'Decoder'],['R12','10k','VS_XDCS','V3V3',7,1,'Decoder'],
 ['R13','100k','VS_GPIO0','GND',19,19,'Decoder'],['R14','100k','VS_GPIO1','GND',23,19,'Decoder'],
 ['R15','100k','VS_GPIO2','GND',4,5.5,'Decoder'],['R16','100k','VS_GPIO3','GND',5,3.5,'Decoder'],['R17','1M','VS_XI','VS_XO',0,13,'Decoder'],
 ['R18','20','GBUF','GBUF_Z',24,15,'Audio'],['R19','20','LEFT','LEFT_Z',24,12,'Audio'],['R20','20','RIGHT','RIGHT_Z',24,9,'Audio'],
 ['R25','100k','HP_L','GND',26,-8,'Audio'],['R26','100k','HP_R','GND',30,-8,'Audio'],
 ['R27','47k','SD_CS','V3V3',-22,20,'Storage'],['R28','47k','SD_MOSI','V3V3',-22,22.5,'Storage'],['R29','47k','SD_MISO','V3V3',-22,25,'Storage'],
 ['R30','47k','SD_D1','V3V3',-26,28,'Storage'],['R31','47k','SD_D2','V3V3',-30,28,'Storage'],
 ['R32','1k','CHG_LED_A','USB5V',-30,-13.5,'Power'],['R33','1k','STATUS_A','V3V3',-6,20,'MCU'],
 ['R34','33','SD_SCK_MCU','SD_SCK',-20.5,6,'Storage'],['R35','33','VS_SCK_MCU','VS_SCK',1,20,'Decoder'],
]
export const caps: Passive[] = [
 ['C1','1uF','USB5V','GND',-17.5,-5,'Power'],['C2','10uF','SYS_RAW','GND',-16,-10,'Power'],['C3','10uF','BAT','GND',-24,-8,'Power'],
 ['C4','100nF','BAT_ADC','GND',-4,-5,'Power'],['C5','10uF','SYS','GND',-12,-17,'Power'],['C6','10uF','V3V3','GND',-12,-10,'Power'],
 ['C7','1uF','SYS','GND',-6,-9,'Power'],['C8','10uF','V2V5','GND',-3,-16,'Power'],['C9','1uF','SYS','GND',8,-16,'Power'],['C10','10uF','V2V7','GND',5,-9,'Power'],
 ['C11','100nF','V3V3','GND',-20.5,3,'MCU'],['C12','100nF','V3V3','GND',-9,-1.1,'MCU'],['C13','100nF','V3V3','GND',-6,9,'MCU'],
 ['C14','100nF','V3V3','GND',-15,13,'MCU'],['C15','100nF','V3V3','GND',-20.5,0,'MCU'],['C16','4.7uF','V3V3','GND',-11,13,'MCU'],['C17','100nF','NRST','GND',-18,15,'MCU'],
 ['C18','18pF','MCU_XI','GND',-18,-2,'MCU'],['C19','18pF','MCU_XO','GND',-10,-3.5,'MCU'],
 ['C20','100nF','V2V5','GND',9,4,'Decoder'],['C21','100nF','V3V3','GND',5,9.5,'Decoder'],['C22','100nF','V2V5','GND',15.4,4,'Decoder'],
 ['C23','100nF','V3V3','GND',5,18,'Decoder'],['C24','100nF','V3V3','GND',12,19,'Decoder'],['C25','100nF','V2V5','GND',9,19,'Decoder'],
 ['C26','100nF','V2V5','GND',15.5,19,'Decoder'],['C27','100nF','V2V7','GND',19,13,'Decoder'],['C28','100nF','V2V7','GND',19,10,'Decoder'],['C29','100nF','V2V7','GND',20,16,'Decoder'],
 ['C30','1uF','RCAP','GND',20,14.5,'Decoder'],['C31','33pF','VS_XI','GND',1,9.5,'Decoder'],['C32','33pF','VS_XO','GND',5,16.5,'Decoder'],
 ['C33','10nF','GBUF_Z','GND',27,15,'Audio'],['C34','10nF','LEFT_Z','GND',27,12,'Audio'],['C35','10nF','RIGHT_Z','GND',27,9,'Audio'],
 ['C40','100nF','V3V3','GND',-22,17.8,'Storage'],['C41','10uF','V3V3','GND',-22,15.5,'Storage'],['C42','10uF','V3V3','GND',13,26,'Decoder'],
 ['C45','10uF','V2V5','GND',12,22,'Decoder'],['C46','10uF','V2V7','GND',23,22,'Decoder'],
]