Well, tidal power plants exist. If you want a smaller device that will work in principle, hang a ball on a spring from the ceiling. When the moon passes overhead, the ball will go up. Then it's up to you to translate that to rotary motion. The effect will be tiny though, so you'll need a really lossless spring, a really stable building, and maybe a vacuum filled room :-)
As for Foucault's pendulum, which works based on rotation of the Earth (not tides), I don't think you can extract energy from such things even in principle.
[This comment is no longer endorsed by its author]Reply
If it's worth saying, but not worth its own post, then it goes here.
Notes for future OT posters:
1. Please add the 'open_thread' tag.
2. Check if there is an active Open Thread before posting a new one. (Immediately before; refresh the list-of-threads page before posting.)
3. Open Threads should start on Monday, and end on Sunday.
4. Unflag the two options "Notify me of new top level comments on this article" and "