TOP Contributors

  1. MIKROE (2654 codes)
  2. Alcides Ramos (352 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136743 times)
  2. FAT32 Library (69952 times)
  3. Network Ethernet Library (55942 times)
  4. USB Device Library (46267 times)
  5. Network WiFi Library (41887 times)
  6. FT800 Library (41173 times)
  7. GSM click (28985 times)
  8. PID Library (26413 times)
  9. mikroSDK (26362 times)
  10. microSD click (25376 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Example

Sorting out the Logarithmic Scale for the Volume Control for SMART_MP3 Click

Rating:

0

Author: Dick Berry

Last Updated: 2014-07-13

Package Version: 1.0.0.0

Example: 1.0.0.0

Category: Audio & Speech

Downloaded: 378 times

Not followed.

License: MIT license  

Here is a spreadsheet with the volume control numbers for a 0 to 11 scale translated to the 0 - 255 controls of the Smart_MP3. It's a simple LOG10 scale but that approximates the true LOG scale close enough.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Sorting out the Logarithmic Scale for the Volume Control for SMART_MP3 Click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Sorting out the Logarithmic Scale for the Volume Control for SMART_MP3 Click" changes.

Do you want to report abuse regarding "Sorting out the Logarithmic Scale for the Volume Control for SMART_MP3 Click".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
Other Compiler
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

This is a XL spreadsheet for a LOG10 Volume control Scale. I used 0 to 11 as a level scale because it's part of my Camper Light Control project, but you could easily modify the sheet for any scale you choose. The formula is documented as well as in the cells. Here are two links to papers I referenced while researching this subject.

 

BTW I expect I will have to modify the final numbers depending on the amplifier and speaker I will be using, but the progression is pretty true. I also had to change the value of 1 to 1.1 to avoid a log of 0 which didn't help in the volume control scheme.

 

http://www.dr-lex.be/info-stuff/volumecontrols.html

 

http://www.cs.sfu.ca/~tamaras/digitalAudio/digitalAudio.pdf

 

Dick

ALSO FROM THIS AUTHOR

Displaying a 12 VDC Battery Voltage on the LCD of a Easypic V7

5

By scaling the +9.4 Volt to 14.5 Volt battery voltage with a Zener Diode and a 10K resister you can display the Battery voltage with two decimal points resolution on the Two Line LCD of a EasyPic V7 Development board using the RA1 AtoD input of a PIC16F76 Microcontroller. Version 2 Uploaded on 2013/05/25

[Learn More]

Readin the AM2303 Temp/Humidity Sensor with Basic

0

I'v seen a several C examples for reading these sensors but haven't found one in Basic. So here is the Source file for a Module in my RV Monitor Project for Handleing the AM2303. See the RV Monitor Project for a detailed Blog.

[Learn More]

RV Monitor System Two Displays, Battery Voltage, Fresh Water Level, Outside Temp, Inside Temp, With Cycleing Mode

10

This is a Monitor system for Travel Trailers, Pop Up's and other RV's. I have made provisions for two displays, one inside and one outside. A single button for each display steps through the modes. Modes include Battery Voltage: Fresh Water Level: Outside Temp: Inside Temp: Cycle The Data Displays: Off: Thanks For Looking Dick

[Learn More]