TMRpcm playback and analogread issue on Arduino - audio

I am working on an Arduino toy (using Uno). When people press the Force Sensitive Resistor, it triggers the .wav audio which is played by the TMPpcm library.
However, I realized once the audio is played the analogread from the FSR got messed up.
(the value on the FSR no longer goes back to 0, instead, it's stuck with some numbers.
I tried to set it back to 0 at the end of the function. didn't work.)
also tried with digitalread with thick buttons, it's fine. But I really would love to use the thin FSR so I can put it in papers.
Any thought?
Thanks a lot!!

Put a resistor from the positive side of the "button" to ground. Should pull the value down to zero.

Related

Repeat audio play without overlap

I would like to play "no mask mp3" whenever "no mask" is recognized, but I keep hearing the audio overlapping. How can I play with delay so that the audio does not overlap?
please help me thanks
enter image description here

3D Floating Text in Libgdx Android

I am about to finish a libgdx project. But I'm stucked at somewhere about floating text.
In my project, there's a splash screen first, after that in the second screen I have a floating text that floats from "-y", to top of the screen. Here's the thing:
How can I make this text looks like star wars episode stories? I mean, text should be float vertical + horizontal on both sides + and look like it goes to "-z" ?
I thought about to add video but after my research, I realized that I can not do that in libgdx projects, but I don't know, can I?
I hope I explained my problem clearly. This is not a "must do" thing for my project, but without this effect that screen is kinda meaningless. I'd really appreciated if you guys help me.

Can anyone explain how this image protection trick is done?

If you look at this image
you can see it just fine (with anti theft diagonals over it.) in a browser but trying copying it and opening it up in your favorite image editor. The image is mostly black with the lines and an almost impossible to see version of the shape in editors.
I'm guessing they messed with the png meta data that browsers don't generally read but editors do?
It's not image protection. The file contains an alpha channel. The area between the hash lines has an alpha of 0, which means transparent. Many image viewers do strange things in this situation. They may, for example, clear the background to black before drawing the image.

Strange colors in Mapquest Open Aerial tiles

I have previously used Mapquest Open Arial tiles without any trouble. However, after the last server change I get tiles with weird colors. Their example tile still looks fine:
http://otile1.mqcdn.com/tiles/1.0.0/sat/15/5240/12661.jpg
But, the ones I'm trying to download look like this:
http://otile1.mqcdn.com/tiles/1.0.0/sat/13/1927/3385.jpg
The most striking problem is that the vegetation is red.
Does anyone know what's causing this or perhaps how I can correct the colors (I have tried playing around with them a bit in gimp but I couldn't find a solution)?
Disclaimer: I work at MapQuest. Unfortunately there was bad data in the last round of open aerial imagery updates that caused some areas (we've noticed Texas) to be seeded with discoloration from zoom level 12 and up. We've got this on our backlog, but I don't have an estimate as to when this issue will be resolved. Thanks for your interest in our Open Tiles!

last state Animated Gif designed for html email in Fireworks cs5 fails in some clients

This is my second question, and I’m hoping to resolve an issue that I haven’t found addressed, though I did search for an answer.
Links and screenshots to problem are below. Using Fireworks CS5, I have created an animated gif consisting of 3 states that loops 3 times. It is built on layers, with the 3 states sharing only a background border. They do not share the background (the background is grouped layer consisting of a red box with a clipping path of white, which seems to work in the first two states, but fails in the third state) itself, or any other element.
It is a tile ad for an html e-newsletter, and it works on some clients (gmail, for instance), but the final state does not render properly in other clients (mac mail, for instance). To add to the issue, the same file was rendering correctly in Mac Mail earlier. The gif works if I open it in a browser (usually), as well.
I thought that animated gifs were very stable across platforms except for problems with looping in Outlook 2007 and I've never had this issue before (granted my experience is limited). Has anyone else had this experience? Does anyone have advice on this issue?
Many thanks,
Andrew.
Link to the good. This is the animated gif file. It may not work in all browsers (I did test the file thoroughly, but the weird issue just seems completely sporadic), but renders correctly in latest Firefox for Mac OS 10.7x.
Link to the bad. The third state is see-through, the background layer is not rendering.
Turn Off the Alpha Transparency in the optimization panel. After carefully examining each state, I realized that I had Alpha Transparency turned ON in the export. Even though each state had a solid red back ground, and even though the other states correctly rendered the solid red background, the Alpha Transparency was messing up the last state of the animation. To correct it, I simply turned OFF the Alpha Transparency. I don't know why I didn't think about that as the solution before. I hope this answer helps someone!

Resources