Step 6: Replace Tactile Switch with Calibrated CH4 Methane Sensor
Work to do on your sketch:
Download my PrankChannelCH4 sketch linked below, and again, replace my pulse codes with the pulse codes we know work with your TV (you used them in Step 4). Also replace my channel list with your channel list.
And if you have an overly sensitive CH4 Methane sensor, scroll all the way to the bottom of the sketch. Replace;
"delay(60000); //60 second debounce for fart to clear out"
with
"delay(300000); //5 minute debounce for fart to clear out"
Work to do on your Breadboard:
Leave your Breadboard the same as the previous step and:
Connect CH4 Methane ALR to Arduino digital pin2 (Do not plug this into Arduino pin2 until after the Arduino has been plugged in and the heater warmed. This takes about 10 minutes)
Put resistor/IR LED circuit back in between Arduino digital pin3(PWM) and Arduino Gnd.
Connect your Arduino to your computer, upload the sketch, open the Serial Monitor, plug the jumper wire from your CH4 Methane sensor into Arduino Pin2 (after a 10 minute warm up) and you're ready. Point the IR LED at the TV and break wind. The red LED on the CH4 Methane sensor should light up, a random number should pop up in your Serial Monitor and a second later your TV should change to the random number in your Serial Monitor.
Congratulations, you have just recreated [what I believe to be] the first ever TV remote operated by farting. You feel that? It's not light-headed-ness from farting all day... that's success, my friend!
PrankChannelCH4.pde11 KB
Remove these ads by
Signing Up

























Not Nice















Visit Our Store »
Go Pro Today »



