digitaldanny / AudioEffectsGlove

A hand tracking glove that controls parameters of various audio effects.
1 stars 0 forks source link

Glove Main Loop Development #53

Closed digitaldanny closed 3 years ago

digitaldanny commented 3 years ago

Describe the solution you'd like Most of the main bullet points are copied from Glove PCB Features section of the PDR document. There are small modifications to requirements 1 and 3 based on changes approved by the professors. Secondary bullet points are additional context for the original requirements.

digitaldanny commented 3 years ago

It might be a good idea to have a main "kernel" loop that schedules tasks that will be completed. The LCD / State of Charge do not need to be updated as frequently as the HC-05 needs to transfer data. For example, the kernel could allow the LCD to update once every 50 iterations and teh HC-05 could update once every 2 loops.

digitaldanny commented 3 years ago

After experimenting with the flex sensor readings, I found out that I need to use smaller capacitor values for my low pass filter. Right now, my capacitor takes too long to discharge before taking readings for the next finger. This means that each finger's voltage can be affected by the previous finger's voltage.

I can play with 2 parameters to keep the benefits of the LPF while avoiding interference.

The noise is actually not very noticeable after applying the data compression. Since I am removing the bottom 6 bits of the ADC reading anyways to fit the 14-bit reading into 8 bits, I lose most of the noise there. I may end up just removing this circuit completely.