Go Down

Topic: Half life theme restrooms... (Read 3460 times) previous topic - next topic

Genesis92

Mar 02, 2015, 10:18 am Last Edit: May 22, 2015, 03:12 pm by Genesis92
Hi everyone
well a little useless but fun project based on a private joke between friends.
As fans of HL1 we made joke about the FX in the game applied in toilets....never bet with me xD

The system is based on my led controller board wich includes an automatic gain amplifier + spectrum analyzer chip MGSEQ7.(perfect to sense ambiance "noises"
the nano board is the heart of the system.
this project has no other function except for fun.

it includes
- 46 RGB leds with LPD8806 controller
- 1pc beacon light (with rotary motor, I did not want a standard flashing model)
- 1pc 4D system SOMO II MP3 files player (I've make my own library because I find nothing on the net for it) the audio files comes from the Pak0.pak from HL1 game
- 1pc proximity capacitive sensor to detect when the finger approach the flush
- 2pcs floating level sensor to know if it's a short or complete flush
- 1pc PIR sensing detector to know if someone is approaching

I've built the system to have a very low idle power drain (even if the nano is not built for that I've make some modification on it) and the overall current drain is only 400µA

ok I'm not a pro of the software and the code was made in two days for test my hardware but now I can work further on it xD
here some pictures :)















































a test video when programming:
http://www.dailymotion.com/video/k3Tr9nTKEcGwyxahu2C

and installed xD:
http://www.dailymotion.com/video/k4OOMtDelbzF3rahsYv

the messages are played with random order but with a link of the action. like when the flush button is pressed with "somethink stink here!" from Barney xD

the ambiant "noises" are detected and you have "radioactive warning alerts" or other random messages  :smiley-mr-green:

the messages are in french in the video but in english when you enter you have:
http://www.harpelaser.com/files/arduino_forum/hl_restrooms/hev_logon.wav
and when you press the flush button
http://www.harpelaser.com/files/arduino_forum/hl_restrooms/ba_firepl.wav
http://www.harpelaser.com

mart256

Awesome. How does the system detect you are about to flush?

Genesis92

#2
Mar 02, 2015, 08:38 pm Last Edit: Mar 02, 2015, 08:50 pm by Genesis92
The flush button is connected to a capacitive sensor chip an AT42QT1010.  :smiley-mr-green:
it's the small SOT-23-6 chip on the picture with the green led on. it detects my finger ;)
the sensing electrode is the white wire from the little white box with level sensors.
http://www.harpelaser.com

DevonMiles

Hi, nice project! I' m trying  to use MSGEQ7 in my project and I would like to take the sound from a MIC. Can you post the preamplifying part fot the MSGEQ7, please? I' m using the configuration below.. but I don' t know why 3 of my 4 chips doesn' t work. I don' t understand if theese 3 chips were already burned or  there' s a mistake in my scheme. Thank you!

Genesis92

your schematic seems to be good. are your sure about the pin counting?
the electret microphone is connected with the right polarity?
the ground is connected to the ground of the msgeq7?

I can post my schematic but it use an automatic gain amplifier from analog devices in SO14 package  so it will be expensive and hard to solder for your application I think. But if you really want it I will post it.
http://www.harpelaser.com

DevonMiles

Thank you for answer. It's no necessary that you post it. It' s all ok but only one chip is working. I bought the IC's from ebay and probably these chips are not good. The only good IC work perfectly.. It' s not a problem, I need only one MSGEQ7, but in the future I will avoid that seller. Thanks again.

Genesis92

http://www.harpelaser.com

raschemmel


tmd3

I ... use an automatic gain amplifier from analog devices in SO14 package ...
I'd like to see it.  Can you show us the schematic, and tell us the part number of the device?

raschemmel

Page 2 of the MSGEQ7 shows the peak Vin = 100 mV ac p-p. I think your are swamping your input and there is nothing wrong with the chips.

DevonMiles

#10
Mar 10, 2015, 10:52 am Last Edit: Mar 10, 2015, 11:00 am by DevonMiles
Thanks raschemmel, could be this the problem even if I have no idea how to cut the amplified signal to 100mV. But I don' t want to spam this nice thread with my questions. ;-)

Genesis92

#11
Mar 14, 2015, 03:00 pm Last Edit: Mar 14, 2015, 03:04 pm by Genesis92
Tmd3 the circuit is an SSM2216 you can see it on the third picture.
informationsl

when working on the code xD


here is an updated video of the installation xD
updated video


DevonMiles, simpply modify the amplifier feedback (R3) resistor to decrease the gain.
1+(R3/R4)=1+( 1M/100k) = gain *11
http://www.harpelaser.com

Genesis92

#12
Apr 28, 2015, 03:29 pm Last Edit: Apr 28, 2015, 03:29 pm by Genesis92
....working to include counter messages xD fire in the hole!...:D
http://www.harpelaser.com

janvier123

Do you mind posting it on Duinos Playground?
We would love to add your project

(Link is in the signature)

Thx in advance

Genesis92

#14
May 15, 2015, 03:47 pm Last Edit: May 15, 2015, 03:49 pm by Genesis92
sory for the delay of the answer but the board donn't want to send me mail notification I don't know why.
I must work on some details and a clean software but why not?
the problem is the time because I'm working on lot of projects xD
http://www.harpelaser.com

Go Up