not working read below for issue

my arduino is running off a car battery (yes its fused) and is running at 12.12 VDC and the led that flashes on pin 13 is VERY dim and the patterns do not work properly or at all eve. it is bright when i hold the rest button or when i FIRST plug it in but after a split second its so dim its barely noticeable. any ideas?

What sketch is loaded?

cminke:
my arduino is running off a car battery (yes its fused) and is running at 12.12 VDC and the led that flashes on pin 13 is VERY dim and the patterns do not work properly or at all eve. it is bright when i hold the rest button or when i FIRST plug it in but after a split second its so dim its barely noticeable. any ideas?

Another case where the voltage regulator may have been burned. I don't use more than 9V on them, once blew an Arduino with 12V.

that would be the case if i was using a lot of amperage but im using minimal (only running mosfets) but im using a blink type code to switch the mosfets , I had it working on a wall adapter using 14-16 v (labeled 12 but when i used multi meater it read higher) but when i ran it on the Car battery it still blinks but its supper dim. do i need to somehow draw more power from it? Im not sure what else you mean by scketch

Hi,

Please use code tags.. See section 7 http://forum.arduino.cc/index.php/topic,148850.0.html

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png or pdf?

Tom..... :slight_smile:

cminke:
that would be the case if i was using a lot of amperage but im using minimal (only running mosfets) but im using a blink type code to switch the mosfets , I had it working on a wall adapter using 14-16 v (labeled 12 but when i used multi meater it read higher) but when i ran it on the Car battery it still blinks but its supper dim. do i need to somehow draw more power from it? Im not sure what else you mean by scketch

Sketch is the code you upload to the board. Can you upload despite this issue?

Sounds like a code issue so post the code.

Mark

the code was working fine and had not been changed untill i had switched from a wall 12VDC(measured 14.3VDC)
to a 12V car battery, (12.12VDC)

const int analogPin0 = A0;    // pin that the sensor is attached to
const int analogPin1 = A1;    // pin that the sensor is attached to
const int analogPin2 = A2;    // pin that the sensor is attached to
const int analogPin3 = A3;    // pin that the sensor is attached to
const int analogPin4 = A4;    // pin that the sensor is attached to
const int analogPin5 = A5;    // pin that the sensor is attached to
const int threshold = 400;   // an arbitrary threshold level that's in the range of the analog input
int led0 = 2;
int led1 = 3;
int led2 = 4;
int led3 = 5;
int led4 = 6;
int led5 = 7;
int led6 = 8;
int led7 = 9;
int led8 = 10;
int led9 = 11;
int led10 = 22;
int led11 = 23;
int led12 = 24;
int led13 = 25;
int led14 = 26;
int led15 = 27;
int led16 = 28;
int led17 = 29;
int led18 = 30;
int led19 = 31;

// the setup routine runs once when you press reset:
void setup() {                
  
  pinMode(led0, OUTPUT);     
  pinMode(led1, OUTPUT); 
  pinMode(led2, OUTPUT);
  pinMode(led3, OUTPUT);     
  pinMode(led4, OUTPUT); 
  pinMode(led5, OUTPUT);
  pinMode(led6, OUTPUT);   
  pinMode(led7, OUTPUT);  
  pinMode(led8, OUTPUT);   
  pinMode(led9, OUTPUT);
  pinMode(led10, OUTPUT);     
  pinMode(led11, OUTPUT); 
  pinMode(led12, OUTPUT);
  pinMode(led13, OUTPUT);     
  pinMode(led14, OUTPUT); 
  pinMode(led15, OUTPUT);
  pinMode(led16, OUTPUT);   
  pinMode(led17, OUTPUT);  
  pinMode(led18, OUTPUT);   
  pinMode(led19, OUTPUT);
  
  // initialize serial communications:
  Serial.begin(9600);
  

}



void loop() {
  // read the value of the potentiometer:
  int patternOne = analogRead(analogPin0);
  int patternTwo = analogRead(analogPin1);
  int patternThree = analogRead(analogPin2);
  int patternFour = analogRead(analogPin3);
  int patternFive = analogRead(analogPin4); 
  int patternSix = analogRead(analogPin5);
  
  // PATTERN ONE
   if (digitalRead(patternOne) == HIGH){
;delay(200);
 digitalWrite(2, HIGH); 
 digitalWrite(3, LOW);
 digitalWrite(4, LOW);
 digitalWrite(5, LOW); 
 digitalWrite(6, HIGH);
 digitalWrite(7, LOW);
 digitalWrite(8, LOW);
 digitalWrite(9, LOW);
;delay(200);

this is not all of it, the rest is just more digitalWrite code

Not enough power.

Mark

;delay(200);

;Why ;do ;some ;of ;your ;statements ;start ;with ;semicolons?

typing error, also how much power do i need?

Read how to use arrays and useful names for variables - sensorXxxPin would be so much more helpful than analogPin

If you change from using the 12v battery back to using the wall wart WITHOUT MAKING ANY OTHER CHANGE what happens?

...R