Loading...
  Show Posts
Pages: [1] 2
1  Development / Other Software Development / Re: [MOD] Arduino Enhanced Release 1.0.2 for Windows (installer, drivers, etc) +SRC on: November 25, 2012, 04:06:16 am
G'Day,
I've been trying the mod with good results except when I drag the top of the window upwards to the top of the desktop to have the window full length (Win 7 Home premium 64bit). When I do that it freezes until I reduce the height o f the window.

Cheers ............ Mike B
2  Development / Other Software Development / Re: [MOD] Arduino Enhanced Release 1.0.2 for Windows (installer, drivers, etc) +SRC on: November 24, 2012, 06:42:50 pm
Very handy, works well (takes me back to Win98 !!!).

Cheers ........... Mike B
3  Using Arduino / Installation & Troubleshooting / Re: Sketch file listing on: November 23, 2012, 08:39:36 pm
Yeah,
That's what I do, I am just curious.
I imagine most would have a long list of sketches after a while.

Cheers ....... Mike B
4  Using Arduino / Installation & Troubleshooting / Sketch file listing on: November 23, 2012, 06:55:19 pm
G'Day All,
After starting Arduino 1.1
When I hit the up arrow in the toolbar to load a sketch the list fills the screen (height wise) and I can't scroll down to the bottom of the list.
I'm using Win7, can that be fixed ??

Cheers ............ Mike B
5  Using Arduino / Microcontrollers / Programmers on: July 08, 2012, 08:22:21 am
G'day All,

Under the tools menu is the option to choose a programmer like "AVR ISP" etc.
I can't turn up any reference to the use of the various programmers.
How do I decide which to use for a specific board ??

Cheers ............ Blakey
6  Using Arduino / Programming Questions / Re: digitalRead wont respond when PIN is high on: March 24, 2012, 02:58:25 am
Duhh !!

Problem solvered, I had omitted the base resistor so I guess the transistor was suffering and pulled the pin down.

7  Using Arduino / Programming Questions / digitalRead wont respond when PIN is high on: March 24, 2012, 02:48:47 am
G'Day All,

I can't get my head around why this code will not acknowledge the PIN value when it's high.
I'm just practicing to learn.
The code works when the PIN is low but not when high, ie there is no serial  print ( +++ etc)  when the pin is high.
The routine controls the fan as coded except for the serial print when the PIN is high.

/*
Sketch to run 12v fan.
 Fan + to 12v, fan - to BC547 Collector.
 BC547 Emitter to ground and Base  to pin #8.
 
 MB 17/03/12
 */

int switchPIN = 8;


void setup()

{
  Serial.begin(9600);
  pinMode(switchPIN,OUTPUT);
  Serial.println("         CONTROLLING A FAN     ");
}


void loop()
{

  digitalWrite(switchPIN, HIGH);
  Serial.println("  FAN ON");
  int pinval = digitalRead(switchPIN);
  if (pinval == HIGH) {
    Serial.println("+++"); 
  }
  delay(3000);
  digitalWrite(switchPIN, LOW);
  Serial.println("  FAN OFF");
  pinval = digitalRead(switchPIN);
  if (pinval == LOW) {
    Serial.println("---"); 
  }
  delay(3000);
  digitalWrite(switchPIN, HIGH);
  Serial.println("  FAN ON  LONG");
  pinval = digitalRead(switchPIN);
  if (pinval == HIGH) {
    Serial.println("L+++"); 
  }
  delay(9000);
  digitalWrite(switchPIN, LOW);
  Serial.println("  FAN OFF  LONG");
  pinval = digitalRead(switchPIN);
  if (pinval == LOW) {
    Serial.println("L---"); 
  }
  delay(9000);

}
8  Using Arduino / Sensors / Re: Analog input jitter. on: November 03, 2011, 09:41:48 pm
Thanks again,

I am probably chasing my tail with the jitter, although I would like know if there is any caused internally in the chip.
I can see a few millivolts on the input and since all my readings are being done next to a computer that is probably where some of the jitter is coming from.
I can see that using the 5v ref will be better in terms of reducing the response to the jitter, maybe I'll take the input volts lower to see if that stabilises it a little.

Cheers ........ Mike B
9  Using Arduino / Sensors / Re: Analog input jitter. on: November 03, 2011, 05:21:21 pm
Thanks,
Yes charge is PWM and I will take a look at the input waveform.
Could you expand on the "Timing the analog read" please?
At the moment I have the PWM output disabled whilst measuring the input,
the fluke 3.5 digit VOM shows a steady input at the analog input but the
binary value is going up and down as mentioned. I am viewing the voltage
every second or so whilst I develop the code.
Yes the circuit is on a breadboard and unshielded but I notice this effect in
other projects I have made on veroboard enclosed in a diecast box.

Cheers ........ Mike B
10  Using Arduino / Sensors / Analog input jitter. on: November 03, 2011, 03:42:19 am
G'day All

I need to monitor a battery voltage to control charge rate.
I have set up the usual volt divider on the 12v battery I am monitoring and decoupled it with 1uF.
The binary result is constantly going up and down by about 5 or 6 even with a regulated source.
I have tried smoothing and averaging without any success.
Since my interest is in the decimal part of the voltage being measured (the usual 13.80v) am I kidding myself or is it possible to tame whatever it is causing the jitter??
What is it that causes the jitter, say using the 3.3v ref on the duemillanova board ??

Cheers ....... Blakus
11  Community / Bar Sport / Re: Transistor Resistor Calculating on: October 10, 2011, 03:23:32 am
Ok mebbe you should do a bit of research on the basics of transistors and components  smiley

On the other hand it's not rocket science either !!

I reckon for speed control of a fan ( 2 amps) just use a power mosfet, which are really cheap on eBay and control that with
the Arduino PWM output. AFAIK there are schematics in the tutorials to do just that.

You could use the direct output of a digital port to drive the mosfet since very little current is required to switch the
mosfet. Really a better way to do what you want. Check this link below to see what I mean about the mosfet.

http://www.ebay.com.au/itm/IRF640-IR-Power-MOSFET-N-Channel-18A-200V-/140616112859?pt=LH_DefaultDomain_0&hash=item20bd5f9adb  or search for some there.

Cheers ........ Blakus
12  Community / Bar Sport / Re: Transistor Resistor Calculating on: October 09, 2011, 04:57:58 am
You need to select a transistor that will carry the current you need.
Look at the data sheet and note the gain, that is the ratio of base current to load current.
So if you have a power transistor that will take say 3 amps with a gain of 100 then you will have
to pass about 30 mA into the base to pass that load of 3 amp.
Usually you add a bit more current through the base to make sure the transistor is fully turned on.
So if you are using 12v supply the resistor for the base will be roughly 12v/.03a = 400ohm.
That is for switching, if you will be varying the speed then a larger heat sink will be required
for the transistor. If you only want to switch on and off then a power mosfet would be a better choice.
Also a darlington configuration would be better at that level of current.
13  Using Arduino / Sensors / Re: How to calibrate LDRs (photoresistors)? on: June 20, 2011, 03:07:37 am
Have a look through the RedRock site, thev'e been into such things for years. You might get a few ideas ??

www.redrok.com

Cheers ....... Mike B
14  Using Arduino / Sensors / Re: Floating inputs on: June 20, 2011, 03:03:37 am
Yeah, the reference goes to an analogue input. (12v gives around 2.5v)
I'll be using the 5v reg ref as supply to the transistor.
I'll just read off the binary values when it's working and plug them into the code.
I only just need to know terminating and commencing points of charge so I'll
give it a try and see what happens. It may well be heat sensitive so I'll do some
field tests on one.
Thanks for the interest.

Cheers .......... Mike B
15  Using Arduino / Sensors / Re: Floating inputs on: June 20, 2011, 01:59:51 am
The schema for the isolated volt sensor attached.
Pages: [1] 2