Electronics-Related.com
Forums

Two pulses with long gap: simplest circuit?

Started by Unknown February 21, 2019
On Monday, February 25, 2019 at 3:40:06 AM UTC-5, Terry Pinnell wrote:


> >> > >Things have changed a lot. Try looking up Arduino. Incredibly cheap and easy to use. > > > >For best prices go to Aliexpress. Just takes a long time to come from China. > > > > >> "dcaster@krl.org" <dcaster@krl.org> wrote: Dan > > > > We have Foxes in Delaware USA too. ( and deer, skunks, possums, and racoons. > > Thanks Dan, but I guess you missed "Not into programming, so PICS, > microcontrollers, FGPS, Pi, etc not options." > > I didn't explicitly mention Arduino - but as that appears to need C or > C++ programming know-how, much as I'd like to use it, that's out too ;-( > > Terry, East Grinstead, UK
I did not miss the " not into programming ". But the Arduino is really easy. Grade school kids use them. If you could find a class or someone to help you , you would see how easy it is to use. Dan
Mike <ham789@netscape.net> wrote:

>On 2/25/2019 12:40 AM, Terry Pinnell wrote: >> "dcaster@krl.org" <dcaster@krl.org> wrote: >> >>> On Friday, February 22, 2019 at 5:00:11 AM UTC-5, Terry Pinnell wrote: >>>> > >>>> I bought PICS and software about 15 years ago but never really mastered >>>> the coding. Last programming I did was decades ago (early assembly >>>> language at IBM, BASIC, FORTRAN, etc. I do some occasional VBA in Excel, >>>> mainly in copy/paste mode, but otherwise the closest I get is writing >>>> macros with Macro Express Pro. >>>> >>>> Terry, East Grinstead, UK >>> >>> Things have changed a lot. Try looking up Arduino. Incredibly cheap and easy to use. >>> >>> For best prices go to Aliexpress. Just takes a long time to come from China. >>> >>> Dan >>> >>> We have Foxes in Delaware USA too. ( and deer, skunks, possums, and racoons. >> >> Thanks Dan, but I guess you missed "Not into programming, so PICS, >> microcontrollers, FGPS, Pi, etc not options." >> >> I didn't explicitly mention Arduino - but as that appears to need C or >> C++ programming know-how, much as I'd like to use it, that's out too ;-( >> >> Terry, East Grinstead, UK >> >The Digispark device I suggested has a USB plug. >It needs exactly ZERO additional support. NO power supply, >no breadboard no nothing to develop a program. > >You could have combined the two demo programs below to do exactly >what you want in far less time than you've spent whimpering >about it.
As I said in my reply to you four days ago, my focus is now on an iOS app. I'm now using it on my iPhone and iPad. No fox yet but I can't blame that on hardware, software or 'whimpering'.
>Copy and paste from demos. >And you'd have the ability to change your program in an instant. >And a skill to widen your possibilities. > >Note that most of the text in the demos is tutorial. The actual >code is a small percentage of the text. > >Development in C for people interested in quick results and lacking >a photographic memory for details is a non-starter. >It's not the C language itself; it's the zillion little details >you have to master and memorize to get anything to run at all. > >Arduino and Digispark eliminate most of that. You just find a demo >program that's close and edit it a little. >Then you plug the device into a USB wall charger for power, >hook up the wires to your hardware and >you're done. > >Having said that, I still think a packaged "baby monitor" or >"surveillance camera" app for your iPhone is probably the easiest >solution for this case. > >If you insist on making oneshots, Digispark or equivalent is your >simplest path. More capable Arduinos are easily available, >but you don't need 'em at this point. > >Wiring up digital hardware is only necessary if you need more >speed than you can get from software solutions. > >Are we having fun yet? > >****************************************************************** >This is the Button demo: > >/* > Button > > Turns on and off a light emitting diode(LED) connected to digital pin 13, > when pressing a pushbutton attached to pin 2. > > The circuit: > - LED attached from pin 13 to ground > - pushbutton attached to pin 2 from +5V > - 10K resistor attached to pin 2 from ground > > - Note: on most Arduinos there is already an LED on the board > attached to pin 13. > > created 2005 > by DojoDave <http://www.0j0.org> > modified 30 Aug 2011 > by Tom Igoe > > This example code is in the public domain. > > http://www.arduino.cc/en/Tutorial/Button >*/ > >// constants won't change. They're used here to set pin numbers: >const int buttonPin = 2; // the number of the pushbutton pin >const int ledPin = 13; // the number of the LED pin > >// variables will change: >int buttonState = 0; // variable for reading the pushbutton status > >void setup() { > // initialize the LED pin as an output: > pinMode(ledPin, OUTPUT); > // initialize the pushbutton pin as an input: > pinMode(buttonPin, INPUT); >} > >void loop() { > // read the state of the pushbutton value: > buttonState = digitalRead(buttonPin); > > // check if the pushbutton is pressed. If it is, the buttonState is HIGH: > if (buttonState == HIGH) { > // turn LED on: > digitalWrite(ledPin, HIGH); > } else { > // turn LED off: > digitalWrite(ledPin, LOW); > } >} > >**************************************** > >This is the blink demo > >/* > Blink > > Turns an LED on for one second, then off for one second, repeatedly. > > Most Arduinos have an on-board LED you can control. On the UNO, MEGA >and ZERO > it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is >set to > the correct LED pin independent of which board is used. > If you want to know what pin the on-board LED is connected to on your >Arduino > model, check the Technical Specs of your board at: > https://www.arduino.cc/en/Main/Products > > modified 8 May 2014 > by Scott Fitzgerald > modified 2 Sep 2016 > by Arturo Guadalupi > modified 8 Sep 2016 > by Colby Newman > > This example code is in the public domain. > > http://www.arduino.cc/en/Tutorial/Blink >*/ > >// the setup function runs once when you press reset or power the board >void setup() { > // initialize digital pin LED_BUILTIN as an output. > pinMode(LED_BUILTIN, OUTPUT); >} > >// the loop function runs over and over again forever >void loop() { > digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the >voltage level) > delay(1000); // wait for a second > digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the >voltage LOW > delay(1000); // wait for a second >} >************************************************************************
terrypingm@gmail.com wrote:
> Project: To get images with my iPhone 6S+ of a fox visiting our garden overnight. One approach I&rsquo;m considering is to tap the button of a Bluetooth camera shutter gadget (from CAMKIX) with a 500 ms pulse to a solenoid, triggered in various ways. (I don&rsquo;t want to crack open the tiny case to attempt that with a circuit mod.) That seems reasonably straightforward. > > But to get a VIDEO clip, far preferable, I need a second pulse, to stop it. > > I&rsquo;m thinking I would need three non-retriggerable monos. The first would be triggered by a +ve going signal from one of my sensors. (Such as a thin nylon trip wire or a micro switch under a large lightweight panel, cunningly disguised.) It would last 500 ms, activating the 12V solenoid. The second mono would be be started by the terminating edge of the first. Its duration would be say 20 s and it&rsquo;s terminating edge would trigger the final mono, another 500 ms, stopping the video. > > Does that seem reasonable please? Any other suggestions? > > Terry, East Grinstead, UK >
Try one-transistor one-shots.
On 3/2/2019 12:29 AM, Robert Baer wrote:
> terrypingm@gmail.com wrote: >> Project: To get images with my iPhone 6S+ of a fox visiting our garden >> overnight. One approach I&rsquo;m considering is to tap the button of a >> Bluetooth camera shutter gadget (from CAMKIX) with a 500 ms pulse to a >> solenoid, triggered in various ways. (I don&rsquo;t want to crack open the >> tiny case to attempt that with a circuit mod.) That seems reasonably >> straightforward. >> >> But to get a VIDEO clip, far preferable, I need a second pulse, to >> stop it. >> >> I&rsquo;m thinking I would need three non-retriggerable monos. The first >> would be triggered by a +ve going signal from one of my sensors. (Such >> as a thin nylon trip wire or a micro switch under a large lightweight >> panel, cunningly disguised.) It would last 500 ms, activating the 12V >> solenoid. The second mono would be be started by the terminating edge >> of the first. Its duration would be say 20 s and it&rsquo;s terminating edge >> would trigger the final mono, another 500 ms, stopping the video. >> >> Does that seem reasonable please? Any other suggestions? >> >> Terry, East Grinstead, UK >> > &nbsp; Try one-transistor one-shots. >
That could come in handy. Please elaborate.