Show Posts
Pages: [1] 2 3 ... 15
1  Using Arduino / Programming Questions / sketch uploading by another arduino is that possible ? on: May 02, 2013, 03:00:31 pm
Well i have been reading that it is possible to put a butloader into an atmega, and that it is a common practice.
I want something close to that, i would like to burn a sketch in another arduino, using another arduino.
I am not talking about cloning because, i would like to use some leds on the Master Arduino to clone some other sketch and signal me back when its ready.

I'm not sure if this has been done before, i couldnt find an article about it but perhaps i missed something during my internet search
2  Using Arduino / General Electronics / Re: connecting LEDs to an arduino without a board on: May 02, 2013, 02:54:18 pm
and if you dont like to solder use a breadboard and some wires.


3  Using Arduino / General Electronics / Re: Led light replacement of a 300wat halogen on: May 02, 2013, 02:51:03 pm
if a heatsync is required then how can such a solution be energy efficient ?
4  Using Arduino / General Electronics / Led light replacement of a 300wat halogen on: May 02, 2013, 09:45:12 am
At home i have a 300 watt halogen lamp, to light-up my room.
I am thinking of replacing it with something based on power Leds, probably several of them an i dont know how many would be required.

I want this to become more energy efficient, and maybe combine it with an AtTiny so i could co handclap control, or combine it with an outside light sensor.
But as an energy efficient lamp, i think it should work straight on 220V (instead of my 9v arduino projects), but i dont know much about a good scheme to make it.
I've seen some Led schemes that worked with limited led power, but not for power leds and not arduino.
I know there are various ways to go down from 220v to somethng else, i just dont know what is energy efficient and what is not.

(a background thought here, replacing this lamp would be better then putting a solar panel on my roof)
5  Using Arduino / General Electronics / Re: where to get info about ledseedunio ? on: May 01, 2013, 09:44:03 am
indeed it works like that you can put external power on 26volt max, i dont need that much.
The board works quite well
mosfet type fr3709z -  ivrp215g - j5 e3

6 pwm ports and 4 on of ports
6  Using Arduino / Programming Questions / Re: PWM problem with a code part. on: April 11, 2013, 05:55:30 pm
@PaulS

just wait what you program when you switch between multiple programming languages, in short its vs2010 C# style..

and since its only text it compiles the same.. when you are used to C# its ok

typo
analogWrite(pwmpin , abs( -255 + ((counter * 32 ) % 510 )));
7  Using Arduino / Programming Questions / Re: PWM problem with a code part. on: April 11, 2013, 05:52:38 pm
solved
analogWrite(pwmpin , abs( -255 + ((counter * 32 ) % 510 )));
8  Using Arduino / Programming Questions / PWM problem with a code part. on: April 11, 2013, 04:52:58 pm
Well i am using some mosfet shield and the pwm signals
the idea i have is that one signal over serial will controll the light behaviour of 6 pwm pins ( 3 5 6 9 10 11)
The code accepts input as from 0 to 65 to dim leds this works nice
However i also wanted to create a slow blinking led, codes input 66 to 71  (slow) input (72 to 77) faster and input 78 to 83 fastest

i 've been looking over it for some hours nows but i dont see whats wrong here, is there perhaps a limit on the arduino ??

Here below is the complete code:

Code:

int pwmport = 0;
int pwmval = 0;
//char input = 66;
int input =0;

int pwmpin[]={3,5,6,9,10,11 }; //an array is a collection of nummer in this case pwm pins of arduino
int mode[]  ={0,0,0,0,0,0};
int counter = 0;

void setup()
{
 // >> see switch mode function    
Serial.begin(57600);
}

void loop()
{
  
 // input= Serial.read();
 // serial.println(i)


  input = 79;  // THIS EQUALS SET PWM PIN 11 in BLINK MODE

   pwmport = input % 6;
  if ( input<66)
  { pwmval = input * 10 / 6;
    analogWrite ( pwmpin[pwmport],pwmval );
    mode[pwmport] = 0;  }
    
  Serial.print ("set pin ");
  Serial.print(pwmport);
  Serial.print(" in mode ");
 
  if ((input>65)&&(input<72)){ mode[pwmport] = 1;Serial.println(1);}
  if ((input>71)&&(input<78)) {mode[pwmport] = 2;Serial.println(2);}
  if ((input>77)&&(input<84)) {mode[pwmport] = 3;Serial.println(3);}


  ++counter;
  
  for (int i=0;i<6;i++)
  { Serial.print("pin ");
    Serial.print(i);
    Serial.print("  mode=");
    Serial.print(mode[i]);Serial.print(" ");
    Serial.print("value=" );
    Serial.println(abs( -255 + (counter % 510 )));
    switch  (mode[i]) // i is the pin mode[i] is the mode for that pin
    {
    case 0:
           ;  // do nothing it is handled above
         break;
    case 1:
         analogWrite (i , abs( -255 + (counter *1 % 510 )));
         break;
    case 2:
         analogWrite(i , abs( -255 + ((counter * 2 ) % 510 )));
         break;
    case 3:
         analogWrite(i , abs( -255 + ((counter * 4 ) % 510 )));
         break;
    default:
         Serial.print("Error");
    }    
      
  }
  delay(1000); // 1  second
}
9  Using Arduino / Programming Questions / char to int on: April 11, 2013, 03:33:39 pm
its been a while since i coded arduino c++ 

i forgot what was the function to convert from char to int  (including char values as ascii zero or asci 32 )
10  Using Arduino / General Electronics / Re: where to get info about ledseedunio ? on: April 11, 2013, 08:55:01 am
well it looks different, i added a photo below

11  Using Arduino / General Electronics / where to get info about ledseedunio ? on: April 11, 2013, 08:00:47 am
on my desks i have 4 ledseedunio 's a college gave to me.
I couldnt find any info about them does someone know of a weblink with some info about jumpers and generally how to control it ?

Its a shield with 10 mosfets to control leds
12  Using Arduino / Programming Questions / Arduino DUE 3.3 volt question (vs Arduino Mega ADK) on: April 05, 2013, 10:35:03 am
I am comparing 2 arduino mega's.
Both seam quite similar but the Due runs on 3.3 volt.

Does it mean that if i set a pin to high that it's voltage will be 3.3 volt ??, and is that enough for normal shields ? might some shields not work on it?

I am planning to use a mosfet shield to drive lots of leds
13  Using Arduino / Programming Questions / Re: Other options to upload / execute arduino software on: March 01, 2013, 11:00:37 am
well the reason is i'm considering an automated deployment street for arduino, just a spin of the mind
14  Using Arduino / Programming Questions / Other options to upload / execute arduino software on: March 01, 2013, 10:46:57 am
I was wondering is there other software perhaps command line software to upload a sketch to an arduino board and run it ?
( perhaps with a pre compile first )
15  Using Arduino / Programming Questions / Re: who does recognize this shield ? on: February 27, 2013, 02:10:23 pm
their not helpful their product isnt mentioned. (and cannt be stacked with their other relayboard it seams, or this one is broken)... but its all guessing ....no manual
Pages: [1] 2 3 ... 15