Show Posts
Pages: [1] 2
1  Community / Exhibition / Gallery / Re: Using an Arduino for high speed photography on: August 26, 2014, 05:48:45 am
Have you thought of using high powered LED's for the lighting?  I had a similar project in mind and was going to try overdriving some using the arduino and the millis() command with bulb exposure.  Not sure how far you can over-volt leds if the exposure time is only 1/2000th or higher.
2  Using Arduino / Project Guidance / Re: Simple programmable toy? on: October 07, 2012, 11:41:52 pm
Thats exactly the sort of thing I'm hoping to build!  Thanks Lakes.
3  Using Arduino / General Electronics / Re: 2 Wire temp readers? on: October 06, 2012, 02:04:53 am
Thanks guys, No I havent tried measuring resistance with a multimeter yet..

John, do you have a link to how I should wire that up?
4  Using Arduino / General Electronics / 2 Wire temp readers? on: October 05, 2012, 01:52:13 am
Okay, I'm being cheap again an want to use the temp probe off a broken electronic thermometer (or a temp controller out of a computer psu) but I cant figure out how to get a reading off them... I was assuming it was a resistance that changed with temperature so hooked it to +3 and A0 & tried to read it but got a fluctuating reading so its not that simple.

Anyone have a link or advice as to how to read the value off these salvaged devices?

Thanks in advance...
5  Topics / Device Hacking / Re: Barcode Scanner on: October 04, 2012, 01:46:52 am
I dont know if this is any help, but I have a heap of barcode scanners that use that y connector to ps2 and they need a keyboard plugged in to the other section of the y to work... in a couple I have just gutted keyboards to the controller board and plugged that in to get them working.
6  Community / Exhibition / Gallery / Re: Lightning photography.. on: September 15, 2012, 06:38:18 am
If ya read my link to the other thread, you can see I have a delay... the rest is just luck.
7  Community / Exhibition / Gallery / Re: Lightning photography.. on: September 14, 2012, 06:01:34 am
cheers codlink... I dont get this sort of opportunity very often like other places....most of our photos are of storms above us.
8  Community / Exhibition / Gallery / Lightning photography.. on: September 14, 2012, 03:42:28 am
I was told to post here.. I asked for some help first in the programming section as I was trying to time the delay of the system I had.
(original post http://arduino.cc/forum/index.php?topic=118770.new;topicseen#new )

My first "big" arduino project... using salvaged parts to make a lightning trigger.

A tiny solar cell from a DOA solar thermometer..
An optical isolator from a powersupply
a potentiometer scavenged from a tv aerial booster...
a couple of other bits & pieces...

Here's a pic of the components..



and then the result





code.. messy but I am using rusty skills.... and hey - it worked!

Code:
/*
   Lighttrigger by _6ix (Kyle)
   Pot on blue & Bluewhite to +5v & gnd .brown to A0
   solar to earth & a1
   isolator pin 1 to D2 via resistor
   iso pin 3 to gnd.
   iso pin 4 to camera ground.
   iso pin2 to camera trigger gnd and iso pin2 to camera fire (red)
  */
 
int led = 13;
int trigger = 2;
int potPin = A0;
int lightValue = 0;
int sensitivityValue = 0;

void setup() {
//  Serial.begin(9600);
   pinMode(led, OUTPUT);
   pinMode(trigger, OUTPUT);
}

void loop() {
   
int sensitivityValue = analogRead(potPin); 
int lightValue = analogRead(A1); 
      if (lightValue *1.5 > sensitivityValue){
        digitalWrite(led, HIGH);
        digitalWrite(trigger, HIGH);
        delay(1500);
        digitalWrite(led, LOW);
        digitalWrite(trigger, LOW);
       }

//Serial.println(sensitivityValue);
//Serial.println(lightValue);
}
9  Using Arduino / Project Guidance / Re: Simple programmable toy? on: September 14, 2012, 02:58:17 am
Cheers bud, yeah I have been playing heaps...

I'm pretty sure I have the logic for the motor & steering control figured... but the storage & playback of an array has me a little bamboozled.
10  Using Arduino / Project Guidance / Simple programmable toy? on: September 10, 2012, 05:50:39 am
As a kid I remember seeing "robots" that had a simple keypad program system... I think they were put in a program mode, and it stored keypad presses and then played them back as motor drive... eg forward three, forward_right 2, back 4 etc....

I was thinking of making a keypad of 6 directional and perhaps 2 other momentary on buttons, set up as analogue inputs with different resistance per button so I could do the input with only 2 or 3 analogue inputs..

I hope to drive an old RC car - nice & simple and a great way to get the kids interested too.

One of the things I'm not sure of is how to create a program mode and an execute mode.... I was thinking of defining a set of 30 or so variables
instruction 1
instruction 2 etc.

As for input I was thinking of holding one of the directional buttons and pressing a "program" button to save the variable (one of 6 for the possible directions) and then an execute button or switch to "play" the variables back to the motor and (I think) voicecoil steering in the donor toy.. but how to create that I have no idea...

The other thing is the playback, my skills are old and very rusty and I was thinking of just creating a giant, ugly "if" series testing each variable until the drive command matched up...

Does anyone have some friendly advice or perhaps knowledge of a link to this sort of project?
11  Using Arduino / Programming Questions / Re: Help using the arduino to time a camera delay on: September 07, 2012, 06:09:27 am
I dont mind posting the code & photos of the layout - is it appropriate to post it in this thread?
12  Using Arduino / Programming Questions / Re: Help using the arduino to time a camera delay on: September 04, 2012, 06:50:51 am
Cheers bud.. and yeah, the sensor is slow... but adjusted properly (I have altered the code from the first iteration) I got about 7 photos...

I was banking on the fact it travels through the cloud & lights it up...  And I now have a couple more ideas to test.. but this chance only happens once every 20 years here.


13  Using Arduino / Programming Questions / Re: Help using the arduino to time a camera delay on: September 04, 2012, 06:39:02 am
Quote
What I think I know about lightning, is that the fastest normal camera is not fast enough to catch a lightning when it has started. 
FWIW, CHDK claim their motion sensing is fast enough to capture lightning using some Canon cameras.

I have been following CHDK - in fact the camera that took the photo above is running it, but it doesnt have a realtime "live view" so I have resorted to arduino... 
14  Using Arduino / Programming Questions / Re: Help using the arduino to time a camera delay on: September 04, 2012, 06:23:00 am
Guys, I really apologise... I lost notifications on this thread and assumed it went down in a heap.

I just (really just) had the opportunity to test the arduino and my skills.  Long story short I got home from work knowing there were storms in the area... so I hit my parts jar for some reliable contacts for my arduino - used a motherboard fan header and usb header and wired them to my pot, and light sensor... in a massive hurry and the sky cleared.


Bugger.

Mate gave me a call and CHCH city was being hit so I made record speed on the 10 km drive to the beach and ....




Job done.
15  Using Arduino / Programming Questions / Re: Help using the arduino to time a camera delay on: August 21, 2012, 05:40:29 am
Okay, please forgive messy code - but I have done (I think) as suggested.

I have added 3 new variables, and the final result (time start, time stop and time stop - start)  is displayed on the display.

For this test, I set the pot on A0 so it only just goes off in ambient light - so it triggers high as soon as the code evaluates the analogue pin.

The final result is .01 on the display after multiple runs with different light levels so can I assume the detection delay is .01 ms??  To the below code I added a delay(10) just before the timefin variable gets set and I get an output of .11/.12/.13 waving my hand across the sensor I hope thats right in showing the loops is accurately adding the time delay.

I'm guessing that's a bit long for a short strike of lightning - but I might get lucky with higher strikes in that travel a bit in the cloud first...

Code:
#include <TM1638.h>
int led = 13;
int trigger = 2;
int potPin = A0;
int lightValue = 0;
int sensorValue = 0;
int timestart = 0;
int timefin = 0;
int timetotal = 0;
TM1638 module(8, 9, 7);
unsigned long a=1;

void setup() {
   Serial.begin(9600);
   pinMode(led, OUTPUT);
   pinMode(trigger, OUTPUT);
}

void loop() {
int timestart = (millis());   
int sensorValue = analogRead(potPin); 
int lightValue = analogRead(A1); 
      if (lightValue > sensorValue){
        digitalWrite(led, HIGH);
//        delay(10);
        int timefin = (millis());
        digitalWrite(trigger, HIGH);
 {
int timetotal = (timefin - timestart);
   module.setDisplayToDecNumber(timetotal,4,false);
 delay(1);
 }

        digitalWrite(led, LOW);
        digitalWrite(trigger, LOW);
       }
}

Pages: [1] 2