A low cost DIY sound pressure level sensor for enabling environmental noise awareness. https://lukasschwarz.org/noise-sensor
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. #MicroXplorer Configuration settings - do not modify
  2. ADC1.Channel-1\#ChannelRegularConversion=ADC_CHANNEL_2
  3. ADC1.Channel-2\#ChannelRegularConversion=ADC_CHANNEL_9
  4. ADC1.Channel-4\#ChannelRegularConversion=ADC_CHANNEL_VREFINT
  5. ADC1.ChannelVREF=ADC_CHANNEL_VREFINT
  6. ADC1.DMAContinuousRequests=ENABLE
  7. ADC1.IPParameters=Rank-1\#ChannelRegularConversion,Channel-1\#ChannelRegularConversion,SamplingTime-1\#ChannelRegularConversion,NbrOfConversionFlag,Rank-2\#ChannelRegularConversion,Channel-2\#ChannelRegularConversion,SamplingTime-2\#ChannelRegularConversion,NbrOfConversion,DMAContinuousRequests,master,SelectedChannel,Rank-4\#ChannelRegularConversion,Channel-4\#ChannelRegularConversion,SamplingTime-4\#ChannelRegularConversion,ChannelVREF
  8. ADC1.NbrOfConversion=3
  9. ADC1.NbrOfConversionFlag=1
  10. ADC1.Rank-1\#ChannelRegularConversion=1
  11. ADC1.Rank-2\#ChannelRegularConversion=2
  12. ADC1.Rank-4\#ChannelRegularConversion=3
  13. ADC1.SamplingTime-1\#ChannelRegularConversion=ADC_SAMPLINGTIME_COMMON_1
  14. ADC1.SamplingTime-2\#ChannelRegularConversion=ADC_SAMPLINGTIME_COMMON_1
  15. ADC1.SamplingTime-4\#ChannelRegularConversion=ADC_SAMPLINGTIME_COMMON_1
  16. ADC1.SelectedChannel=ADC_CHANNEL_2|ADC_CHANNEL_9|ADC_CHANNEL_VREFINT
  17. ADC1.master=1
  18. Dma.ADC1.1.Direction=DMA_PERIPH_TO_MEMORY
  19. Dma.ADC1.1.EventEnable=DISABLE
  20. Dma.ADC1.1.Instance=DMA1_Channel2
  21. Dma.ADC1.1.MemDataAlignment=DMA_MDATAALIGN_WORD
  22. Dma.ADC1.1.MemInc=DMA_MINC_ENABLE
  23. Dma.ADC1.1.Mode=DMA_CIRCULAR
  24. Dma.ADC1.1.PeriphDataAlignment=DMA_PDATAALIGN_WORD
  25. Dma.ADC1.1.PeriphInc=DMA_PINC_DISABLE
  26. Dma.ADC1.1.Polarity=HAL_DMAMUX_REQ_GEN_RISING
  27. Dma.ADC1.1.Priority=DMA_PRIORITY_LOW
  28. Dma.ADC1.1.RequestNumber=1
  29. Dma.ADC1.1.RequestParameters=Instance,Direction,PeriphInc,MemInc,PeriphDataAlignment,MemDataAlignment,Mode,Priority,SignalID,Polarity,RequestNumber,SyncSignalID,SyncPolarity,SyncEnable,EventEnable,SyncRequestNumber
  30. Dma.ADC1.1.SignalID=NONE
  31. Dma.ADC1.1.SyncEnable=DISABLE
  32. Dma.ADC1.1.SyncPolarity=HAL_DMAMUX_SYNC_NO_EVENT
  33. Dma.ADC1.1.SyncRequestNumber=1
  34. Dma.ADC1.1.SyncSignalID=NONE
  35. Dma.Request0=SPI1_RX
  36. Dma.Request1=ADC1
  37. Dma.RequestsNb=2
  38. Dma.SPI1_RX.0.Direction=DMA_PERIPH_TO_MEMORY
  39. Dma.SPI1_RX.0.EventEnable=DISABLE
  40. Dma.SPI1_RX.0.Instance=DMA1_Channel1
  41. Dma.SPI1_RX.0.MemDataAlignment=DMA_MDATAALIGN_HALFWORD
  42. Dma.SPI1_RX.0.MemInc=DMA_MINC_ENABLE
  43. Dma.SPI1_RX.0.Mode=DMA_CIRCULAR
  44. Dma.SPI1_RX.0.PeriphDataAlignment=DMA_PDATAALIGN_HALFWORD
  45. Dma.SPI1_RX.0.PeriphInc=DMA_PINC_DISABLE
  46. Dma.SPI1_RX.0.Polarity=HAL_DMAMUX_REQ_GEN_RISING
  47. Dma.SPI1_RX.0.Priority=DMA_PRIORITY_LOW
  48. Dma.SPI1_RX.0.RequestNumber=1
  49. Dma.SPI1_RX.0.RequestParameters=Instance,Direction,PeriphInc,MemInc,PeriphDataAlignment,MemDataAlignment,Mode,Priority,SignalID,Polarity,RequestNumber,SyncSignalID,SyncPolarity,SyncEnable,EventEnable,SyncRequestNumber
  50. Dma.SPI1_RX.0.SignalID=NONE
  51. Dma.SPI1_RX.0.SyncEnable=DISABLE
  52. Dma.SPI1_RX.0.SyncPolarity=HAL_DMAMUX_SYNC_NO_EVENT
  53. Dma.SPI1_RX.0.SyncRequestNumber=1
  54. Dma.SPI1_RX.0.SyncSignalID=NONE
  55. File.Version=6
  56. GPIO.groupedBy=Group By Peripherals
  57. I2C2.I2C_Speed_Mode=I2C_Fast
  58. I2C2.IPParameters=I2C_Speed_Mode,OwnAddress,Timing
  59. I2C2.OwnAddress=0x3C
  60. I2C2.Timing=0x0010061A
  61. I2S1.AudioFreq=I2S_AUDIOFREQ_22K
  62. I2S1.DataFormat=I2S_DATAFORMAT_24B
  63. I2S1.ErrorAudioFreq=3.3 %
  64. I2S1.FullDuplexMode=I2S_FULLDUPLEXMODE_DISABLE
  65. I2S1.IPParameters=Instance,VirtualMode,FullDuplexMode,RealAudioFreq,ErrorAudioFreq,Mode,DataFormat,AudioFreq
  66. I2S1.Instance=SPI$Index
  67. I2S1.Mode=I2S_MODE_MASTER_RX
  68. I2S1.RealAudioFreq=22.727 KHz
  69. I2S1.VirtualMode=I2S_MODE_MASTER
  70. KeepUserPlacement=false
  71. Mcu.Family=STM32G0
  72. Mcu.IP0=ADC1
  73. Mcu.IP1=DMA
  74. Mcu.IP2=I2C2
  75. Mcu.IP3=I2S1
  76. Mcu.IP4=NVIC
  77. Mcu.IP5=RCC
  78. Mcu.IP6=SPI2
  79. Mcu.IP7=SYS
  80. Mcu.IP8=TIM2
  81. Mcu.IP9=USART4
  82. Mcu.IPNb=10
  83. Mcu.Name=STM32G071K(6-8-B)Tx
  84. Mcu.Package=LQFP32
  85. Mcu.Pin0=PA0
  86. Mcu.Pin1=PA1
  87. Mcu.Pin10=PC6
  88. Mcu.Pin11=PA11 [PA9]
  89. Mcu.Pin12=PA12 [PA10]
  90. Mcu.Pin13=PA13
  91. Mcu.Pin14=PA14-BOOT0
  92. Mcu.Pin15=PA15
  93. Mcu.Pin16=PB3
  94. Mcu.Pin17=PB5
  95. Mcu.Pin18=PB8
  96. Mcu.Pin19=VP_ADC1_Vref_Input
  97. Mcu.Pin2=PA2
  98. Mcu.Pin20=VP_SYS_VS_Systick
  99. Mcu.Pin21=VP_SYS_VS_DBSignals
  100. Mcu.Pin22=VP_TIM2_VS_ClockSourceINT
  101. Mcu.Pin3=PA3
  102. Mcu.Pin4=PA4
  103. Mcu.Pin5=PA5
  104. Mcu.Pin6=PA6
  105. Mcu.Pin7=PA7
  106. Mcu.Pin8=PB0
  107. Mcu.Pin9=PB1
  108. Mcu.PinsNb=23
  109. Mcu.ThirdPartyNb=0
  110. Mcu.UserConstants=
  111. Mcu.UserName=STM32G071KBTx
  112. MxCube.Version=6.1.1
  113. MxDb.Version=DB.6.0.10
  114. NVIC.ADC1_COMP_IRQn=true\:0\:0\:false\:false\:true\:true\:true
  115. NVIC.DMA1_Channel1_IRQn=true\:0\:0\:false\:false\:true\:false\:true
  116. NVIC.DMA1_Channel2_3_IRQn=true\:0\:0\:false\:false\:true\:false\:true
  117. NVIC.ForceEnableDMAVector=true
  118. NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
  119. NVIC.I2C2_IRQn=true\:0\:0\:false\:false\:true\:true\:true
  120. NVIC.NonMaskableInt_IRQn=true\:0\:0\:false\:false\:true\:false\:false
  121. NVIC.PendSV_IRQn=true\:0\:0\:false\:false\:true\:false\:false
  122. NVIC.SVC_IRQn=true\:0\:0\:false\:false\:true\:false\:false
  123. NVIC.SysTick_IRQn=true\:0\:0\:false\:false\:true\:false\:true
  124. PA0.Locked=true
  125. PA0.Mode=Asynchronous
  126. PA0.Signal=USART4_TX
  127. PA1.Locked=true
  128. PA1.Mode=Asynchronous
  129. PA1.Signal=USART4_RX
  130. PA11\ [PA9].Mode=I2C
  131. PA11\ [PA9].Signal=I2C2_SCL
  132. PA12\ [PA10].Locked=true
  133. PA12\ [PA10].Mode=I2C
  134. PA12\ [PA10].Signal=I2C2_SDA
  135. PA13.Mode=Serial_Wire
  136. PA13.Signal=SYS_SWDIO
  137. PA14-BOOT0.Mode=Serial_Wire
  138. PA14-BOOT0.Signal=SYS_SWCLK
  139. PA15.Locked=true
  140. PA15.Mode=Half_Duplex_Master
  141. PA15.Signal=I2S1_WS
  142. PA2.GPIOParameters=GPIO_Label
  143. PA2.GPIO_Label=Device_ID
  144. PA2.Locked=true
  145. PA2.Mode=IN2
  146. PA2.Signal=ADC1_IN2
  147. PA3.Locked=true
  148. PA3.Mode=Full_Duplex_Master
  149. PA3.Signal=SPI2_MISO
  150. PA4.Mode=Full_Duplex_Master
  151. PA4.Signal=SPI2_MOSI
  152. PA5.GPIOParameters=PinState,GPIO_Label
  153. PA5.GPIO_Label=NSS
  154. PA5.Locked=true
  155. PA5.PinState=GPIO_PIN_SET
  156. PA5.Signal=GPIO_Output
  157. PA6.GPIOParameters=GPIO_Label
  158. PA6.GPIO_Label=LED
  159. PA6.Locked=true
  160. PA6.Signal=GPIO_Output
  161. PA7.GPIOParameters=GPIO_Label
  162. PA7.GPIO_Label=RESET
  163. PA7.Locked=true
  164. PA7.Signal=GPIO_Output
  165. PB0.GPIOParameters=GPIO_PuPd
  166. PB0.GPIO_PuPd=GPIO_NOPULL
  167. PB0.Locked=true
  168. PB0.Signal=GPIO_Input
  169. PB1.GPIOParameters=GPIO_Label
  170. PB1.GPIO_Label=BAT_Monitor
  171. PB1.Locked=true
  172. PB1.Mode=IN9
  173. PB1.Signal=ADC1_IN9
  174. PB3.Locked=true
  175. PB3.Mode=Half_Duplex_Master
  176. PB3.Signal=I2S1_CK
  177. PB5.Locked=true
  178. PB5.Mode=Half_Duplex_Master
  179. PB5.Signal=I2S1_SD
  180. PB8.Mode=Full_Duplex_Master
  181. PB8.Signal=SPI2_SCK
  182. PC6.GPIOParameters=GPIO_PuPd,GPIO_Label
  183. PC6.GPIO_Label=I2C_Address
  184. PC6.GPIO_PuPd=GPIO_PULLUP
  185. PC6.Locked=true
  186. PC6.Signal=GPIO_Input
  187. PinOutPanel.RotationAngle=0
  188. ProjectManager.AskForMigrate=true
  189. ProjectManager.BackupPrevious=false
  190. ProjectManager.CompilerOptimize=6
  191. ProjectManager.ComputerToolchain=false
  192. ProjectManager.CoupleFile=false
  193. ProjectManager.CustomerFirmwarePackage=
  194. ProjectManager.DefaultFWLocation=true
  195. ProjectManager.DeletePrevious=true
  196. ProjectManager.DeviceId=STM32G071KBTx
  197. ProjectManager.FirmwarePackage=STM32Cube FW_G0 V1.4.0
  198. ProjectManager.FreePins=false
  199. ProjectManager.HalAssertFull=false
  200. ProjectManager.HeapSize=0x200
  201. ProjectManager.KeepUserCode=true
  202. ProjectManager.LastFirmware=true
  203. ProjectManager.LibraryCopy=1
  204. ProjectManager.MainLocation=Core/Src
  205. ProjectManager.NoMain=false
  206. ProjectManager.PreviousToolchain=
  207. ProjectManager.ProjectBuild=false
  208. ProjectManager.ProjectFileName=noise_sensor.ioc
  209. ProjectManager.ProjectName=noise_sensor
  210. ProjectManager.RegisterCallBack=ADC,I2C,I2S
  211. ProjectManager.StackSize=0x400
  212. ProjectManager.TargetToolchain=STM32CubeIDE
  213. ProjectManager.ToolChainLocation=
  214. ProjectManager.UnderRoot=true
  215. ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-true,2-MX_DMA_Init-DMA-false-HAL-true,3-SystemClock_Config-RCC-false-HAL-false,4-MX_ADC1_Init-ADC1-false-HAL-true,5-MX_I2S1_Init-I2S1-false-HAL-true,6-MX_SPI2_Init-SPI2-false-HAL-true,7-MX_I2C2_Init-I2C2-false-HAL-true,8-MX_USART4_UART_Init-USART4-false-HAL-true,9-MX_TIM2_Init-TIM2-false-HAL-true
  216. RCC.ADCFreq_Value=16000000
  217. RCC.AHBFreq_Value=16000000
  218. RCC.APBFreq_Value=16000000
  219. RCC.APBTimFreq_Value=16000000
  220. RCC.CECFreq_Value=32786.88524590164
  221. RCC.CortexFreq_Value=16000000
  222. RCC.EXTERNAL_CLOCK_VALUE=48000
  223. RCC.FCLKCortexFreq_Value=16000000
  224. RCC.FamilyName=M
  225. RCC.HCLKFreq_Value=16000000
  226. RCC.HSE_VALUE=8000000
  227. RCC.HSI_VALUE=16000000
  228. RCC.I2C1Freq_Value=16000000
  229. RCC.I2S1Freq_Value=16000000
  230. RCC.IPParameters=ADCFreq_Value,AHBFreq_Value,APBFreq_Value,APBTimFreq_Value,CECFreq_Value,CortexFreq_Value,EXTERNAL_CLOCK_VALUE,FCLKCortexFreq_Value,FamilyName,HCLKFreq_Value,HSE_VALUE,HSI_VALUE,I2C1Freq_Value,I2S1Freq_Value,LPTIM1Freq_Value,LPTIM2Freq_Value,LPUART1Freq_Value,LSCOPinFreq_Value,LSE_VALUE,LSI_VALUE,MCO1PinFreq_Value,PLLPoutputFreq_Value,PLLQoutputFreq_Value,PLLR,PLLRCLKFreq_Value,PWRFreq_Value,SYSCLKFreq_VALUE,TIM15Freq_Value,TIM1Freq_Value,USART1Freq_Value,USART2Freq_Value,VCOInputFreq_Value,VCOOutputFreq_Value
  231. RCC.LPTIM1Freq_Value=16000000
  232. RCC.LPTIM2Freq_Value=16000000
  233. RCC.LPUART1Freq_Value=16000000
  234. RCC.LSCOPinFreq_Value=32000
  235. RCC.LSE_VALUE=32768
  236. RCC.LSI_VALUE=32000
  237. RCC.MCO1PinFreq_Value=16000000
  238. RCC.PLLPoutputFreq_Value=64000000
  239. RCC.PLLQoutputFreq_Value=64000000
  240. RCC.PLLR=RCC_PLLR_DIV4
  241. RCC.PLLRCLKFreq_Value=32000000
  242. RCC.PWRFreq_Value=16000000
  243. RCC.SYSCLKFreq_VALUE=16000000
  244. RCC.TIM15Freq_Value=16000000
  245. RCC.TIM1Freq_Value=16000000
  246. RCC.USART1Freq_Value=16000000
  247. RCC.USART2Freq_Value=16000000
  248. RCC.VCOInputFreq_Value=16000000
  249. RCC.VCOOutputFreq_Value=128000000
  250. SPI2.BaudRatePrescaler=SPI_BAUDRATEPRESCALER_2
  251. SPI2.CalculateBaudRate=8.0 MBits/s
  252. SPI2.DataSize=SPI_DATASIZE_8BIT
  253. SPI2.Direction=SPI_DIRECTION_2LINES
  254. SPI2.IPParameters=VirtualType,Mode,Direction,CalculateBaudRate,DataSize,BaudRatePrescaler
  255. SPI2.Mode=SPI_MODE_MASTER
  256. SPI2.VirtualType=VM_MASTER
  257. TIM2.IPParameters=Prescaler
  258. TIM2.Prescaler=16-1
  259. USART4.IPParameters=VirtualMode-Asynchronous,Mode
  260. USART4.Mode=MODE_TX
  261. USART4.VirtualMode-Asynchronous=VM_ASYNC
  262. VP_ADC1_Vref_Input.Mode=IN-Vrefint
  263. VP_ADC1_Vref_Input.Signal=ADC1_Vref_Input
  264. VP_SYS_VS_DBSignals.Mode=DisableDeadBatterySignals
  265. VP_SYS_VS_DBSignals.Signal=SYS_VS_DBSignals
  266. VP_SYS_VS_Systick.Mode=SysTick
  267. VP_SYS_VS_Systick.Signal=SYS_VS_Systick
  268. VP_TIM2_VS_ClockSourceINT.Mode=Internal
  269. VP_TIM2_VS_ClockSourceINT.Signal=TIM2_VS_ClockSourceINT
  270. board=custom
  271. isbadioc=false