Show Posts
|
|
Pages: [1] 2
|
|
3
|
Using Arduino / Microcontrollers / Re: bootloader for nano v3
|
on: November 15, 2012, 11:38:52 am
|
I dont know it is possible.... No X3 header on nano. USB chip so small , I cant imagine soldering wires directly to it.  EDIT: Or should I use my TTL converter instead ? Then I need to find converter pinout... Nope - converter has only Tx Rx on output pins. Chip same size as on Arduino itself , so no soldering for me.
|
|
|
|
|
6
|
Using Arduino / Microcontrollers / Re: bootloader for nano v3
|
on: November 15, 2012, 10:49:59 am
|
Thanks for answer . Unluckily I do not have a programmer or spare Arduino  Can you explain how pocket programmer works ? It comes with some cables or connector to connect to Arduino ?
|
|
|
|
|
9
|
Using Arduino / Programming Questions / Controlling PWM pin
|
on: October 15, 2012, 09:32:55 am
|
|
I have hooked up LED driver to one of PWM pins. It is for night time moon light. How I cut off light at day ?
analogWrite (moon, 0 ); or digitalWrite (moon,LOW ); or ...
Thanks
|
|
|
|
|
13
|
Using Arduino / Programming Questions / Re: Please help with aquarium lights - one more question
|
on: August 12, 2011, 10:23:06 am
|
int bluepercent[] = { 13, 26, 52, 78, 103, 128, 154, 180, 205, 230, 255, 255, 255, 255, 255, 255 }; int whitepercent[]= { 0, 0, 0, 6, 13, 26, 52, 78, 103, 128, 154, 180, 205, 230, 255, 255 };
int abc(sizeof(bluepercent)/sizeof(bluepercent[0]));
int i; for (int i = 0; i < abc; i++) { analogWrite(blue, bluepercent[i]); analogWrite(white, whitepercent[i]);
lcd.setCursor(13, 1); // for blue LEDs lcd.print (bluepercent/255*100 ); // this line lcd.setCursor(18, 1); // for white LEDs lcd.print( whitepercent/255*100 ); // this linee too }
both lines get -" error: invalid operands of types 'int [16]' and 'int' to binary 'operator/'" EDIT: would it work better this way ? Im not sure if I understand what "i" stands for : lcd.print( whitepercent [i] /255*100 );
|
|
|
|
|
15
|
Using Arduino / Programming Questions / Re: Please help with aquarium lights.
|
on: August 11, 2011, 03:26:51 am
|
Thanks guys, Now trying to implement . Got bunch of errors, need to deal with them. Can take time for expert like me  OK finally fighted all troubles. And you know what - ALL WORKS BRILLIANTLY. Exactly as I wished - big thanks . My brain is boiling, but was worth. Now would you please assist me integrating light output printing to LCD? Before simply (i) value was printed 1 to 10, as white and blue proceses were separate and had 10 steps each. Now doing same is rather non informative. It would be nicer to display bluepercent and whitepercent values in as % (0 to 99 as only two digit space available). Now my sketch looks like this: int bluepercent[] = { 13, 26, 52, 78, 103, 128, 154, 180, 205, 230, 255, 255, 255, 255, 255, 255 }; int whitepercent[]= { 0, 0, 0, 6, 13, 26, 52, 78, 103, 128, 154, 180, 205, 230, 255, 255 };
int abc(sizeof(bluepercent)/sizeof(bluepercent[0]));
if (daybyminute >= (ontime*60)) { if (daybyminute < ((ontime*60) + ramptime)) //if time is in range start fading in { int i; for (int i = 0; i < abc; i++) { analogWrite(blue, bluepercent[i]); analogWrite(white, whitepercent[i]);
lcd.setCursor(13, 1); // for blue LEDs lcd.print( here is my problem ); lcd.setCursor(18, 1); // for white LEDs lcd.print( and here );
int countdown = ((rampup*60)/abc); while (countdown>0) { onesecond(); countdown--; } } } }
Do you have any ideas ?
|
|
|
|
|