Show Posts
Pages: 1 ... 84 85 [86] 87 88 ... 174
1276  General Category / General Discussion / Re: How do I measure an analog pulse length? on: May 19, 2013, 04:35:54 am
Quote
A crazy idea might be to try and bias the signal so the normal signal registers as HIGH on a digital pin and the negative spike registers as LOW.
Well that is what you get with the external comparator, something like LM339.
I was thinking more cheaply using resistors/potentiometer.
1277  Community / Bar Sport / Re: Need help creating a, pee driven game for my toilet. on: May 19, 2013, 04:19:50 am
Most women would appreciate a game that inspire men to lift up the seat.
You cannot win. Being civilised I always lift the seat before peeing but then they complain I never put the seat down.

I always put the seat down afterwards.

Stayed at a mate's place for a while and his gf was most upset that I had put the toilet seat down, as she went in without turning the light on, late at night, half asleep, sat down, let stream and got wee all over the place. My fault, apparently, for not leaving the seat up.

I kid you not.

smiley-confuse

Maybe there is some confusion here that needs a 'toilet seat terminology' document  smiley-grin
To me what you describe as the seat I would call the lid. My wife also gets annoyed if I leave the lid down.
1278  Using Arduino / Project Guidance / Re: Bluetooth master or slave? on: May 19, 2013, 02:58:20 am
Since I am not actually connecting to the device would a slave module be sufficient?
No, the firmware of the slave does not allow you to list BT devices.

EDIT: Just powered up a BT master module and I can detect my phone when it's BT is set to discoverable using the AT+INQ command and when I hide the phones BT and do another INQ it times out after about a minute and returns just OK. The timeout can be shortened by reducing the maximum number of devices to scan for (default 48)
1279  Using Arduino / Networking, Protocols, and Devices / Re: Is iOS causing WiFi server to crash? Some speculations with numbers. on: May 19, 2013, 02:37:54 am
Not much help to you but my iPhone running IOS5 used to crash the Wi-Fi on my router. Cable connections would continue to work fine but I could get nothing to connect using Wi-Fi and the routers web interface would not load to try any debugging/restarts. Only option was to power cycle the router. Thankfully this has not happened since updating to IOS6.
My view of IOS is 'looks pretty, works quite well but very simplistic (basic) functionality)
1280  General Category / General Discussion / Re: How do I measure an analog pulse length? on: May 19, 2013, 02:18:19 am
Nick Gammon has an example of using the analogue comparator.
A crazy idea might be to try and bias the signal so the normal signal registers as HIGH on a digital pin and the negative spike registers as LOW.

You could maybe use a Schmitt trigger to force a definitive HIGH/LOW.

A software only option might work if you adjust the ADC pre-scale. You can speed ADC up without much loss of accuracy so it only takes about 18us to do a read and with code overhead of checking this you could easily stay within about 30us.
1281  Using Arduino / Project Guidance / Re: Greenhouse master controller in the middle of nowhere on: May 19, 2013, 01:25:41 am
You can make your life a lot simpler by using one of the many DS1307 libraries to take the hard work out of reading/writing time. There are many versions and everyone has their favourite so I will suggest this one as mine. Download, rename and install the library in the correct place and then load it's example to get an idea of how the library works.

Code:
const float baselineMoist = 20.0;
const float LightON = 12;
const float LightOFF= 22;
These don't need to be float values so would be better changed to 'int'

Code:
  pinMode(2, OUTPUT);
  pinMode(3, OUTPUT);
It makes your life (and others helping you) easier if you give the pins meaningful names. You have done this with A0 sensorPin.

You have 'void setup()' where you put initialization commands but you have no 'void loop()' in your code and this is the main core of your program (the bit you want to keep repeating).
1282  Using Arduino / Project Guidance / Re: high speed Camera Trigger help on: May 18, 2013, 07:07:47 am
Thanks for the ideas, I would like to build this one as I can adjust the delay for the initial sound to the camera/flash release so it catches the image at just the right time, its the code I dont understand.
Okay, as your sure you want to use this circuit design your not going to be able to do it with an UNO as it does not have the required number of I/O pins.
12x for the 4 digit 7 segment display.
4x for TRIGGER, MODE, CALIBRATE & FOCUS.
3x for Encoder + Button.
2x analogue for MIC & potentiometer.
If you use something like a MAX7219 to drive the 7 segment display you will reduce its pin count from 12 to 3 and it will then fit comfortably on an UNO.
1283  Community / Bar Sport / Re: Need help creating a, pee driven game for my toilet. on: May 18, 2013, 03:42:21 am
Most women would appreciate a game that inspire men to lift up the seat.
You cannot win. Being civilised I always lift the seat before peeing but then they complain I never put the seat down.
1284  Using Arduino / Project Guidance / Re: high speed Camera Trigger help on: May 18, 2013, 03:25:14 am
Maybe you should look for an arduino version instead. Something like this or this.
1285  Using Arduino / Displays / Re: Can this Sure GLCD use Arduino library on: May 17, 2013, 08:52:06 am
Edit - I investigated a little further and found out that the code will not upload with the display connected to the breadboard with either USB only power or with both USB and 9V supply connected simultaneously, but if I remove the display from the breadboard the code will upload with only USB power connected or both USB and 9V
The display should be wired for type B pinouts. It sounds like the your drawing to much current. Is the backlight powered from the arduino 5V pin? Disconnect it (pin 19 on the LCD) and see if you can upload code then.
1286  Community / Website and Forum / Request Entity Too Large on: May 17, 2013, 08:13:15 am
Just trying to attach a single page PDF to a post and got this...
Quote
413 Request Entity Too Largenginx/1.2.8
Is this because the file is 1.28Mb in size (seems big for a single page PDF)
1287  Using Arduino / Displays / Re: Can this Sure GLCD use Arduino library on: May 17, 2013, 07:32:35 am
Riva - I removed the display from the breadboard [too many wires to disconnect from the Uno  smiley-cool] and the code uploaded but still nothing showing on the display. I also plugged an external 9V power supply into the barrel jack of the board.
Sorry Pedro147 I can't really help with the display though I will look in some detail later (meant to be working).
Did you have the 9V supply connected before when it failed to upload the sketch or have you since connected it? If it was running off 9V then maybe there is a screen/wiring problem or it's still drawing to much power.
1288  Using Arduino / Displays / Re: Can this Sure GLCD use Arduino library on: May 17, 2013, 07:04:07 am
Can you still upload if you remove the display? Maybe your display is sucking to much current for the Arduino.
1289  Using Arduino / Project Guidance / Re: Saving Variables received over bluetooth on: May 17, 2013, 05:20:00 am
Have a look at parseInt and parseFloat and then grab the code from here  or here for a possible examples of how I used it.
1290  Using Arduino / Audio / Re: Wanting to build a frequency generator. on: May 17, 2013, 03:50:15 am
I suspect you just need to match the camera shutter frequency (or a multiple of it) so if your using a PAL camera it's 25Hz (or maybe 50Hz if using interlace) and if your using NTSC than make it 29.97Hz
Pages: 1 ... 84 85 [86] 87 88 ... 174