This is a project to develop a simple remote control for a solenoid inside a vacuum chamber. The proposal is to use an Infrared remote control with an Arduino and a power MOSFET to drive a 6V solenoid. The system would be powered by 4X AA batteries inside the vacuum chamber.
The following items have been purchased:
- AA battery holder Amazon
- Arduino prototype shield kit Amazon
- IRF520 MOSFET driver module Amazon
- Infrared remote and receiver Amazon
- 5V Solenoid Amazon
Work log:
2020-07-18
Fired up the remote control with 5V lab supply and output to scope. Here's a typical coded burst from pressing the '1' key on the remote (they're all the same except for some code details). In this case there is a ~9ms start pulse, a bunch of code, then two gaps followed by additional start pulses with a short ~700us pulse after. This is 25ms/div.
Simplest possible case is just to detect the start pulse (say, anything > 5ms) and then go dead for maybe 250ms to avoid re-triggering. We could also get fancy and decode the bits if he wants to do anything with different buttons.
OK, forget all that. Let's just use an existing library.
Writing some code. Using an Arduino UNO with Arduino 1.8.12, library "IRremote" by shirriff version 2.2.3. (github link).
Working code: http://gauss.bu.edu/svn/bifano-lab-misc/SolenoidRemote/software/IRReceiver/IRReceiver.ino
This decodes all the buttons but only fires the solenoid when the "1" is pressed. See photo and movie.