TOP Contributors

  1. MIKROE (2752 codes)
  2. Alcides Ramos (372 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139073 times)
  2. FAT32 Library (71595 times)
  3. Network Ethernet Library (56989 times)
  4. USB Device Library (47334 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29777 times)
  8. mikroSDK (27894 times)
  9. PID Library (26859 times)
  10. microSD click (26130 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: 392 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

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]

Saving Glcd Calibration Data in internl EEPROM

0

Calibrate the Touch Panel (only if required) with saved data that is check summed. Displays Cal Data and EEPROM Data on GLCD PIC 18F46K22

[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]