Eval » Historie » Version 35
  Maximilian Seesslen, 31.08.2023 14:55 
  
| 1 | 1 | Maximilian Seesslen | h1. Eval  | 
|---|---|---|---|
| 2 | |||
| 3 | CANDis is quite silent.  | 
||
| 4 | |||
| 5 | CANBuz probably will have same issues. Need to test capacitors.  | 
||
| 6 | 6 | Maximilian Seesslen | F=As/V  | 
| 7 | qalc 0,000022*3 = 0,000066 = 0,066mAs  | 
||
| 8 | Ich hab doch noch grosse  | 
||
| 9 | 12 | Maximilian Seesslen | Is it the power regulator/LDO? What did i solder?  | 
| 10 | 1 | Maximilian Seesslen | |
| 11 | h2. Parts  | 
||
| 12 | |||
| 13 | 3 | Maximilian Seesslen | * LM386; "DS":https://www.ti.com/lit/ds/symlink/lm386.pdf ; page 10  | 
| 14 | 13 | Maximilian Seesslen | * LM4861 M; 1,39€  | 
| 15 | ** can be driven @5V; not sure if V+ has to be 3v/2 or 5v/2 ?  | 
||
| 16 | ** Shutdown: power output off on logic high  | 
||
| 17 | |||
| 18 | 14 | Maximilian Seesslen | h2. Amp  | 
| 19 | 2 | Maximilian Seesslen | |
| 20 | 14 | Maximilian Seesslen | "lm4871":https://www.ti.com/lit/ds/symlink/lm4871.pdf  | 
| 21 | |||
| 22 | 2 | Maximilian Seesslen | h2. MCU  | 
| 23 | |||
| 24 | 4 | Maximilian Seesslen | * STM32F042G4U6; UFQFPN28; 16KB; hab ich noch 17  | 
| 25 | 9 | Maximilian Seesslen | * Get rid of an STM32F072 in order to have DAC?  | 
| 26 | * STM32G431KBU6  | 
||
| 27 | 14 | Maximilian Seesslen | ** SAI; FPU  | 
| 28 | ** 5,87€  | 
||
| 29 | 15 | Maximilian Seesslen | * STM32F072CBT6  | 
| 30 | ** LQFP-48  | 
||
| 31 | ** 2,40 €  | 
||
| 32 | * STM32F103CBT6  | 
||
| 33 | ** 2,12 €  | 
||
| 34 | 33 | Maximilian Seesslen | * STM32F303K8 -C6U6A-  | 
| 35 | 32 | Maximilian Seesslen | ** FPU; Cortex M4; 72MHz  | 
| 36 | 1 | Maximilian Seesslen | ** When name is really correct, its a LQFP48 with 32KB flash  | 
| 37 | 33 | Maximilian Seesslen | ** No, it's LQFP32 with 64KB flash  | 
| 38 | 31 | Maximilian Seesslen | |
| 39 | 14 | Maximilian Seesslen | |
| 40 | 5 | Maximilian Seesslen | h2. DAC  | 
| 41 | |||
| 42 | 11 | Maximilian Seesslen | * Maybe later; SAI would be more interesting. DAC for testing DMA.  | 
| 43 | 7 | Maximilian Seesslen | * 44,100 Hz  | 
| 44 | * Would require SPI flash for recorded sound  | 
||
| 45 | 8 | Maximilian Seesslen | * Adjustable volume  | 
| 46 | 1 | Maximilian Seesslen | * Solderbridge for fallback  | 
| 47 | 24 | Maximilian Seesslen | |
| 48 | h2. Replay  | 
||
| 49 | |||
| 50 | Would need 20KHz;  | 
||
| 51 | have 12 Kbytes RAM;  | 
||
| 52 | 2KB plays 1/20secs  | 
||
| 53 | |||
| 54 | 29 | Maximilian Seesslen | Stereo gets tricky. There is only 1 SPI. Would need to couple DAC outputs. Maybe test this later.  | 
| 55 | |||
| 56 | |||
| 57 | 26 | Maximilian Seesslen | |
| 58 | 17 | Maximilian Seesslen | h2. Flash  | 
| 59 | |||
| 60 | DAC-DMA already works for sinewave (copied due to speed). So FLash might be cool for sound samples.  | 
||
| 61 | 18 | Maximilian Seesslen | CD: 44100 samples / sec;  | 
| 62 | 22 | Maximilian Seesslen | 44100*2*2 = 176'400 Bytes / s; Flash readout has to be a little bit faster for the overhead.  | 
| 63 | 18 | Maximilian Seesslen | |
| 64 | 19 | Maximilian Seesslen | 1MB would play around 6 seconds. 2MB / 16Mbit would be ok.  | 
| 65 | 1 | Maximilian Seesslen | 32Mb/4MB available for 1,94€; 100Mhz  | 
| 66 | 28 | Maximilian Seesslen | STM32F303 has max SPI rate 18Mbits/s or 2,25MB/s wide range voltage; 24Mb/s or 3MBytes/s normal range  | 
| 67 | 25 | Maximilian Seesslen | |
| 68 | MX25L3233FM1I-08G is 83 cents; supports QIO  | 
||
| 69 | |||
| 70 | Irgendwas muesstte ich eh noch haben, hab mal groesser eingekauft.  | 
||
| 71 | |||
| 72 | 21 | Maximilian Seesslen | h2. USB  | 
| 73 | |||
| 74 | 1 | Maximilian Seesslen | USB would be nice for writing sound samples to flash. But this might be a nice candidate for writing flash images over CAN.  | 
| 75 | 35 | Maximilian Seesslen | Although it might take very long time.  | 
| 76 | |||
| 77 | h2. Flash via CAN  | 
||
| 78 | |||
| 79 | A CAN frame has 108 bits. 500khz/108 = 4629 Msg/sec = 18KB/s  | 
||
| 80 | 1 | Maximilian Seesslen | 32MB needs 1820 seconds, 30 minutes. Flashing sector by sector with retrys is needed.  | 
| 81 | 35 | Maximilian Seesslen | |
| 82 | A sektor has 4K  |