Thanks for all the input!
I found one (tilt switch)! Very cool.
Ok, cool. Ideas are good.
The space inside the toy (cellphone) that I plan to use is something like 2x3x4 cm.
[The space is right behind the speaker and the magnetism from the latter is strong enough to affect objects in the little space... But maybe that actually can be a good thing]
The piezo sounds like a good idea, and I happened to buy a bag of them the other day. Ultimately the resistance would be depending on how hard you shake, yes. The range can be as large as possible, I think the pitch should be higher in the accent, louder, position.
[I have discovered these glitches: pitch up/down (wire + or - to clock), gain/distort, and mute (of course). Also some soft gain that change the overtones.]
a) A tilt switch that bypass a gain boost or mute the signal completely. Loud in default position, soft when moved away.
Plus a fotoresistor/LDR (I got one of each, do not know which one is better to use) in the antenna. Then the pitch will also change when shaken, I suppose.
b) a piezo to clock faster/pitch upwards (or maybe one in each direction?!). The loud gain glitch only works with "full bypass" of the circuit points, so I suspect a piezo will not work with that. But bypassing one of the speaker wires might work.
These ideas sound pretty good to me, clean and simple enough! B)
EDIT: I found this (old) mouse ball which could hav been perfect for the piezo variant, heavy and with a rubber coating (silentish shaking), but it is too big. May be of use in another project.
Last edited by Dip (July 8, 2016 12:03 pm)