Show Posts
|
|
Pages: [1] 2
|
|
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
|
|
|
|
|
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
|
|
|
|
|
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.
|
|
|
|
|
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
|
|
|
|
|