Show Posts
Pages: [1]
1  Using Arduino / Project Guidance / Re: Arduino NANO Pinout Diagram on: February 08, 2013, 11:05:47 am
OH That's great. Thanks a Million.
2  Using Arduino / Project Guidance / Re: Arduino UNO Pinout Diagram on: February 07, 2013, 12:21:43 pm
Great Work! Thanks

Any plan for Arduino Nano layout as well?
3  Using Arduino / Installation & Troubleshooting / Re: Arduino resets UNO board on Serial Monitoring- rxtxSerial.dll on: January 15, 2012, 05:54:17 am
Just to clarify my previous post:
  • The board working like a charm with previous versions of Arduino IDE.
  • The issue appeared on Arduino 1.0 (and probably my system configuration is a part of the issue).
  • I'm not facing any problem on upload (either with original rxtxSerial.dll, either with the altered one).
  • The auto reset is still functioning on upload without any problem.
  • The only issue was the auto reset caused by Arduino IDE when monitoring window. This is not a function as far I can tell. Its a real pain if you want to check the status on a running device.
  • The auto reset was never caused by third party serial monitoring software.
4  Using Arduino / Installation & Troubleshooting / Arduino resets UNO board on Serial Monitoring- rxtxSerial.dll on: January 14, 2012, 03:10:17 pm
I just noticed the Arduino 1.0 causes my UNO board to reset each time I open the serial monitor window.
Maybe is something related with my system configuration since in the past I had some issues with Arduino menu caused by the available serial ports. In that case the menu was extremely slow and I found that the solution was to replace the rxtxSerial.dll with a different one provided on old forums (unfortunately I don't have the link to that post)
So following the same method I just replaced the rxtxSerial.dll with the old one and the problem is solved.

If someone experiencing the same problem the file is available for download here: http://bit.ly/zcNVIp

Thanks


5  Using Arduino / Interfacing w/ Software on the Computer / Re: How to control an Arduino from a PC on: January 30, 2011, 05:34:12 am
Actually interfacing depends on your knowledge.
Since Arduino is serial enabled you can send (and receive) serial messages through any serial enabled software on windows. You can use Telnet, Hyper Terminal, Putty and other similar programs to communicate directly with Arduino or you can create your own solution based on any serial enabled development platform. You can even use AutoIt3 to send and receive serial commands from you computer to your hardware.

In my personal opinion if you want to create your own interface for controlling devices the best way to go is Visual Studio (language depends on your experience). Visual Studio examples are plenty now-days so its easy to learn by searching on the web.
 
6  Using Arduino / Interfacing w/ Software on the Computer / Re: Virtual Breadboard on: January 30, 2011, 05:12:46 am
Looks promising.
I'll give it a try!
7  Using Arduino / General Electronics / Re: Suitable Diode 14N48 Replacement? on: January 30, 2011, 04:54:52 am
You can follow Richard's answer...

But if you insist to use diodes I think you can find lot of these diodes easily. http://www.findchips.com/avail?part=1n4148

FYI:
1N4148 is a very common diode type however you can replace it with any one of the following diodes:
1N914, IN914A, 1N914B, 1N916, 1N916A, 1N916B, 1N4448
These part have minor differences which is not critical in most circuits.
You can find more details here: http://www.ensc.sfu.ca/resources/technical/circuit/1N4148.PDF
 
8  Forum 2005-2010 (read only) / Syntax & Programs / Re: EEprom write anything example generates error v 22 on: December 31, 2010, 08:25:01 am
Sorry for replying on my own post but forum engine didn't allowed me to link on my first post :-/

Playground example is here: http://www.arduino.cc/playground/Code/EEPROMWriteAnything


A video which demonstrates the error is available. Click below (and use full screen preview for best resolution)

9  Forum 2005-2010 (read only) / Syntax & Programs / EEprom write anything example generates error v 22 on: December 31, 2010, 08:23:16 am
Hi community!
I'm newbie with Arduino.

While i'm browsing Arduino playground I found a very good example which can help to access the EEprom (EEPROMWriteAnything)

This example is great and easy to implement but unfortunately it generates an error on Arduino 0022.
Error code is like this
Code:
sketch_dec31a:-1: error: expected ',' or '...' before '&' token
sketch_dec31a:-1: error: ISO C++ forbids declaration of 'T' with no type
sketch_dec31a:-1: error: 'T' has not been declared

Whats wrong on this?

I can use the code in 0021 version but not in 0022.

Any solution?

Thank you in advance

10  Forum 2005-2010 (read only) / Exhibition / Arduino Uptime on: January 02, 2011, 06:38:03 pm
I want to share with the community my UPTIME solution (which can be even better)

The original idea was to have some kind of diagnostics for power failure on my relay board.
The millis() was a quite good to give me back the time since last system restart.
The code here can convert millis() to days-hours-minutes-seconds and report the time via serial connection.
The bad thing on this case is that Arduino UNO autoresets the device when the serial connection is starting so millis are going back to zero.  :-[

Anyway for stand alone devices or devices that are not following the UNO autoreset function, I think this is a good solution to get some kind of diagnostics.
Code:
/*
 * DEVICE UPTIME
 * -------------
 * Returns the total time in days hours minutes and seconds that arduino running *
 * Limitations apply:
 * Arduino UNO autoresets the board on new serial connection so logs are reseted too.
 * millis overflow every 50 days or so
 * The stats are not aqurate for very long period of time but its good for diagnostic
 * purposes when arduino is used for final (standalone) project
 * I use it on my relay board in order to get info if something went wrong
 * Good to know that a power failure caused syste to reset.
 *
 */


//  Creator Nikos Georgousis
//  JAN 2011

int incomingByte =0;
long currentmillis=0;
//############################################ SETUP vvvv  ####################################
void setup () {
  Serial.begin(9600); // open serial port
  Serial.println("'Project Uptime"); //print something to notify user on restart
}
//############################################ SETUP ^^^^ #####################################
//############################################ LOOP vvvv  #####################################
void loop () {
  SerialCheck (); //redirect ro serial check
}
//############################################ LOOP ^^^^  #####################################
//########################################### SERIALCHECK vvvv  ###############################
void SerialCheck () {
  if (Serial.available() > 0) {
    incomingByte = Serial.read();
    {    
      if (incomingByte==63) // if ? received then answer with data
      {
        currentmillis=millis(); // get the  current milliseconds from arduino
        // report milliseconds
        Serial.print("Total milliseconds running: ");
        Serial.println(currentmillis);
        uptime(); //call conversion function to display human readable time
      }
    }
  }
}
//######################################## SERIALCHECK ^^^^  #################################
//############################################ UPTIME vvvvv  #################################
void uptime()
{
  long days=0;
  long hours=0;
  long mins=0;
  long secs=0;
  secs = currentmillis/1000; //convect milliseconds to seconds
  mins=secs/60; //convert seconds to minutes
  hours=mins/60; //convert minutes to hours
  days=hours/24; //convert hours to days
  secs=secs-(mins*60); //subtract the coverted seconds to minutes in order to display 59 secs max
  mins=mins-(hours*60); //subtract the coverted minutes to hours in order to display 59 minutes max
  hours=hours-(days*24); //subtract the coverted hours to days in order to display 23 hours max
  //Display results
  Serial.println("Running Time");
  Serial.println("------------");
    if (days>0) // days will displayed only if value is greater than zero
  {
    Serial.print(days);
    Serial.print(" days and :");
  }
  Serial.print(hours);
  Serial.print(":");
  Serial.print(mins);
  Serial.print(":");
  Serial.println(secs);
}
//############################################ UPTIME ^^^^  #################################



11  Forum 2005-2010 (read only) / Exhibition / Real LED Blink - Device Heartbeat on: January 01, 2011, 05:38:41 pm
I just created a heartbeat for my standalone Arduino based hardware.
The code (based on this example) can blink a LED givin a better sense of heartbeat (instead flashing). In addition runs without utilizing the delay function.

Its a noob solution but it may be useful for some users.

Code:
/* Heartbeat
 Based on example BlinkWithoutDelay http://www.arduino.cc/en/Tutorial/BlinkWithoutDelay
 Turns on and off a light emitting diode(LED) connected to a digital  
 pin, without using the delay() function.  This means that other code
 can run at the same time without being interrupted by the LED code.
 
 Created JAN 2011
 by Nikos Georgousis
 
 Original code authors
 created 2005
 by David A. Mellis
 modified 8 Feb 2010
 by Paul Stoffregen
 */

// constants won't change. Used here to
// set pin numbers:
const int ledPin =  13;      // the number of the LED pin

// Variables will change:
int ledState = LOW;             // ledState used to set the LED
long previousMillis = 0;        // will store last time LED was updated
// the follow variables is a long because the time, measured in miliseconds,
// will quickly become a bigger number than can be stored in an int.
long interval = 1000;           // interval at which to blink (milliseconds)
long interval2 = 50;            // this second interval variable is for light duration
void setup() {
  // set the digital pin as output:
  pinMode(ledPin, OUTPUT);      
}

void loop()
{

  if (ledState == LOW) // if the led is OFF then check if its time to blink it
  {
       unsigned long currentMillis = millis();
    if(currentMillis - previousMillis > interval) {
      // save the last time you blinked the LED
      previousMillis = currentMillis;  
      ledState = HIGH;
      // set the LED with the ledState of the variable:
      digitalWrite(ledPin, ledState);
    }
  }
  else // if the led is ON wait just a shorter period of time (interval2) and turn it OFF
  {
     unsigned long currentMillis = millis();
    if(currentMillis - previousMillis > interval2) {
      // save the last time you blinked the LED
      previousMillis = currentMillis;  
        ledState = LOW;
      // set the LED with the ledState of the variable:
      digitalWrite(ledPin, ledState);
    }
  }
}



Cheers
Pages: [1]