Show Posts
Pages: [1] 2 3 ... 6
1  Using Arduino / Microcontrollers / Re: NEED that other IO pin on: August 07, 2014, 07:22:32 am
Thanks, but can I upload my sketch, then disable reset, with just only an arduino as an ISP?
or maybe, upload my sketch and disble reset at the same time, withonly arduino as ISP?
or is it impossible without that HV programmer?
2  Using Arduino / Microcontrollers / Re: NEED that other IO pin on: August 03, 2014, 09:13:35 pm
Thanks, Paul; I AM sure. My code runs as though I passed by MIT smiley
But I need to save my money , not US$ which I CANT access
Just need one more output pin. I´ll post my simple , not stupid smiley, project tomorrow.
Thanks, Mr Burnette ; interesting link. I try to understand that.
I´m  not shouting, just EMPHASIZING, with my capitals.
I´ll be back to let You know.
3  Using Arduino / Microcontrollers / NEED that other IO pin on: August 02, 2014, 05:02:48 pm
Hi everybody ; Im using arduino as ISP with attiny45. No problem uploading and running my sketch.
Just need ONE more IO pin. ATMELs summary states that RESET can be used as a WEAK IO, didnt understand that.
Searched the forum, only learned that I can burn a fuse to disable reset and use it as an IO.

I would not need to reprogram my uC.
The only programmer I have is UNO as ISP.
I dont know how to burn fuses.
So, can I do upload my sketch, burn the fuse(s), and use PB5 as IO?
if so, How?
4  Using Arduino / Microcontrollers / Re: Atmega 328P as isp programmer on: August 02, 2014, 04:47:57 pm
Most likely because you live in SPAIN, not Veneuela!
5  Using Arduino / Microcontrollers / Re: programming ATtiny, BB Arduino with manual reset on: June 09, 2014, 02:50:53 pm
Solved, THANKS.
6  International / Español / Re: WINDOWS 8.1 - Este dispositivo no puede iniciar. (Código 10) on: June 03, 2014, 02:19:43 pm
 COMMPORT aparece el No del puerto serial XX .
XX es el numero que debes escoger en TOOLS-COMM PORT en ARDUINO.
Si estas usando un cable PL2303, te falta el driver.
7  Using Arduino / Microcontrollers / programming ATtiny, BB Arduino with manual reset on: June 02, 2014, 06:14:59 pm
Hi Folks; I have a standalone 328 to USB via PL2303 without DTR.
I can upload sketches to a bootloaded 328 without issues;  well just one, which really doesn´t worry me:
I can hit upload without manual reset, UPLOADING...., seems to hang, I wait a few seconds,
hit manual reset, DONE UPLOADING: No error message, and it runs my sketches.
Problem is 328 is overkill  for my present needs; an ATtiny suffices.
Can I upload with this setup?
8  Using Arduino / Programming Questions / Re: Help with millis!!!! on: March 12, 2013, 09:02:32 pm
Don´t know if I´m going in the right direction but I´m into interrupts; if there´s something easier I´d appreciate you let me know. I only need one flag; when that switch actuates, count 5s.
then " do that ".I´m working on it, just need directives, thanks.
9  Using Arduino / Programming Questions / Re: Help with millis!!!! on: March 12, 2013, 05:57:15 pm

Code that has had Tools + Auto Format run on it is easier to read.
Almost sure I did that.
Code that consistently uses { and } after an if statement is easier to understand.
Does this mean that I should ALWAYS use curly braces with IF statements?
I´ve noticed that the code changes if I include or delete them.
How ARE the switches wired?
I´m more comfortable with positive digital electronics; pullup resistors,no problem.
Take a look a FSM's in the playground.
Hope I find it; don´t know what that means.
the code might actually work like that if you moved the "openedtime = millis();  // when did it open"outside of the if and into the else branch. 
Tried that a thousand times.
currenttime will always be just less than openedtime because you are always resetting openedTime.
Is it an error to assign both currenttime and openedtime = millis?
Should I take openedtime outof the main loop? Maybe call a function?
Is setting a flag the only way to solve this?
10  Using Arduino / Programming Questions / Help with millis!!!! on: March 12, 2013, 02:07:40 pm
Hi, everybody. Millis is driving me crazier ( or maybe those curly braces? )
What I´m trying to do is start a timer when a swith comes in, wait a certain time and then " do that ".I googled millis,found tronicstuff, John Boxall and quite a few threads on the forum; can´t understand.
If I change a few things it LED" won´t go ON, or won´t go OFF or go ON immediately.
Just need explanation,not solution; Thanks.
Here´s my code:

int startPin = 2;
int LED1Pin = 3;
int openedPin = 4;
int LED2Pin = 5;
int closedPin = 6;
unsigned long openedtime;  // when did switch go HIGH?
unsigned long opentime;  // time delay
unsigned long currenttime; 

void setup( )
  pinMode ( startPin, INPUT  ); 
  pinMode ( LED1Pin, OUTPUT  ); 
  pinMode ( openedPin, INPUT ); 
  pinMode ( LED2Pin, OUTPUT  );
  pinMode ( closedPin, INPUT );

void loop ( )
  currenttime = millis ( );
  if ( digitalRead ( startPin ) == HIGH )
    digitalWrite ( LED1Pin, HIGH );
  if ( digitalRead ( openedPin ) == HIGH )

    digitalWrite ( LED1Pin, LOW );
    openedtime = millis();  // when did it open
    opentime = currenttime - openedtime;
  if ( (opentime) >= 5000 )
    digitalWrite ( LED2Pin, HIGH );  // turn LED2 ON
    if ( digitalRead ( closedPin ) == HIGH )
      digitalWrite ( LED2Pin, LOW );

11  Using Arduino / Programming Questions / Re: Day/Night LDR sensing code. What is the correct approach to sampling day/night. on: March 10, 2013, 11:07:37 am
Hi, Khilid; I appreciate your sincerity " Simply... You can´t afford me " smiley-grin
12  Using Arduino / Programming Questions / Re: avrdude: stk500_getsync(): not in sync: resp=0x00 on: March 10, 2013, 09:32:06 am
almost every time I get this error it's because I have a fried the IC (atmega 328p)

Hi treebykooba, HOW do you manage this? You are obviously making BAD/WRONG connections. They don´t get fried just by themselves so take some care and save some money.
13  Using Arduino / Programming Questions / Re: avrdude: stk500_getsync(): not in sync: resp=0x00 on: March 09, 2013, 12:26:34 pm
Hi Vikirobot, if your Arduino doesn´t show up under PORTs in device manager, then you most likely didn´t install the drivers correctly.

Unplug your UNO, open PORTS ( COM & LPT ).
When you plug your UNO you should hear the WINDOWS tone, NEW HARDWARE FOUND and you should see your UNO as an USB device.

The WINDOWS installer opens;
Check “ NO “, then NEXT
Check “ LOOK FOR “, check INCLUDE, click “ EXAMINE “
Click on “ drivers “, DON¨T open the folder.
Click on “ drivers “ AGAIN and “ ACCEPT “
Click on  “ NEXT “
WINDOWS will look for, find and install the drivers
Click “ FINISH “and your UNO will show as “ Arduino UNO R3 ( COM X ); X is your port number.

Now open ARDUINO IDE by double clicking on the ICON, select “ TOOLS “,
Verify that your “ BOARD “ is listed as UNO and that your “ SERIAL PORT “ is checked as COM X.
Now you´reready to suffer a bit, but it´s worth the pain.  smiley
14  Using Arduino / Programming Questions / Re: Nested If/Else on: February 20, 2013, 08:43:43 pm
Hi, RF< what they want to say is; write your code so you can see your braces at the beginning of the NEXT line. If you place your cursor just right ( not LEFT of the braces  you´ll see the corresponding RIGHT one ).
If you have 3 left braces in your sketch you HAVE TO have 3 right braces, ALSO.
That´s why you could have “  too MANY right curly braces”  OR  “ too FEW left curly braces “
Count yours and try writing your code like this:

If X
 If Y
      do D
      do C
do B
   do A
15  Using Arduino / Installation & Troubleshooting / Re: Not sure what's wrong.. [solved] on: February 20, 2013, 07:31:02 pm
You DON´T have to but it´s very decent practice; if you´don´t you most likely WILL regret it.
Pages: [1] 2 3 ... 6