wiki:RemoteSolenoid

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:

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.

http://gauss.bu.edu/svn/bifano-lab-misc/SolenoidRemote/pix/scope_25ms.jpg http://gauss.bu.edu/svn/bifano-lab-misc/SolenoidRemote/pix/scope_25ms_2.jpg http://gauss.bu.edu/svn/bifano-lab-misc/SolenoidRemote/pix/scope_5ms.jpg
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. Sometimes (randomly) there is only one additional pulse. Zoom in to 5ms/div. Seems to be a simple FM code at about 450 baud.

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.

Last modified 4 months ago Last modified on Jul 18, 2020, 2:41:14 PM