Show Posts
Pages: 1 ... 16 17 [18] 19
256  Forum 2005-2010 (read only) / Interfacing / Re: i2c LCD Display on: November 24, 2010, 05:34:18 pm
I ordered one of the web4robot.com LCDs a couple of weeks ago and never recieved it. Only after several emails did I get a response and was told they were no longer offered for sale. Finally ended up getting a similar unit from moderndevice.com.
257  Forum 2005-2010 (read only) / Interfacing / Re: Arduino as an encoder pulse divider? on: November 02, 2010, 05:00:07 pm
Hmmmm... I just noticed all the posts by Richard disappeared. What's up with that?
258  Forum 2005-2010 (read only) / Interfacing / Re: Arduino as an encoder pulse divider? on: November 01, 2010, 08:56:30 pm
Steve-
I think this may be of use to you: http://emergent.unpythonic.net/projects/01149094674

Some people on this forum can be quite snarky in their replies. This is in marked contrast to other forums I've frequented such as CNCzone.com or the EMC2 forum where I've always found people to be extremely helpful without copping an attitude.
Hope that link helps you.

-Greg
259  Forum 2005-2010 (read only) / Interfacing / Re: How to display and input numberic caharcter? on: October 29, 2010, 09:00:30 pm
Hi there Teddy. I'm a beginner too working on a similar problem. So far I've gotten a keypad to do my bidding and as soon as I get my LCD I will integrate it with the display. You can see what I've come up with so far at: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1287289086
260  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Stepper motor using Arduino on: January 21, 2011, 11:57:03 am
Sure. That's what stepper motors are for smiley-wink
261  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Stepper motor using Arduino on: January 21, 2011, 09:39:44 am
Both the Easydriver and Pololu boards are tiny, my Easydriver measures 20mm x 50 mm. A Nema 17 size stepper is only 42mm wide. Little Bird Electronics is an Australian source for everything you would need. http://www.littlebirdelectronics.com/
262  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Stepper motor using Arduino on: January 20, 2011, 05:22:52 pm
I would suggest  the easiest and fastest route to your goal would be an Easydriver board board available from Sparkfun. It is for small motors (.75A per coil) but it is well documented on various sites. Sparkfun also sells a small motor that works well with it. A larger motor would require a driver with more capacity like some inexpensive ones by Pololu. The Playground section of this site has plenty of info to get you started.
263  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Programming a 7-segment display w/ shift register on: January 11, 2011, 12:26:07 am
There's a good tutorial with code examples for the shift register here:http://arduino.cc/en/Tutorial/ShiftOut
264  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Never programmed before. Can Arduino be a hobby? on: January 05, 2011, 03:26:34 pm
Welcome to the forum Pman! Yes, it can be a great hobby. I've had my Arduino for just a few months and came to it with practically no programming experience (just a little Basic back in the Commodore64 days). Just start with the easy blinking led stuff and work your way up. It can be a bit frustrating at first but once you're over the initial "hump" it starts making more sense and the learning comes more quickly. I got a lot from LadyAda's tutorials. To start I just got a breadboard some resistors and led's as well as a cheap multimeter and that kept me going for quite a while until I learned what else I needed. Good luck!
265  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Personal jet device on: December 31, 2010, 04:28:51 pm
What exactly is a "personal jet device"?????
266  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Hey im thinking of buying my first Arduino. on: December 22, 2010, 09:41:55 pm
Welcome Darrion! To get started you will need an Arduino board, a computer and lots of time and patience unless you already have a strong programming background. You will also need a prototyping board, a few electronic components such as resistors and LED's. Once you feel comfortable with the basics of flashing LED's etc. you will want to obtain a motor control board and motors if you want to control cars. I would reccomend Adafruit Industries http://www.adafruit.com/ or Sparkfun http://www.sparkfun.comas a good source both for hardware and tutorials. Read all you can and ask questions on the forums. Just be aware that all this takes time and effort and your goal of using a Wiimote to control a car will be some ways in the future. I got into using the Arduino about 3 months ago with the goal of creating a simple linear positioning system and I'm now only about halfway there but I've learned a great deal in the process. The learning curve can be frustrating at times but when you get something working it feels really great! Good luck to you.

267  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Help sending digital outputs long distance. on: December 09, 2010, 05:23:44 pm
You should look at RS-485 for that distance. Here's one thread on the topic: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1270227591
268  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Assembling my project involving solenoids on: November 22, 2010, 03:41:03 pm
Actually, for safety's sake I would go with a 24 volt system. Relays and transformers for 24 V are readily available and not terribly expensive. 24 V systems are widely used in industry for control systems (motor contactors etc.).
269  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Assembling my project involving solenoids on: November 21, 2010, 10:52:13 pm
Something like this should work fine:
http://www.mpja.com/prodinfo.asp?number=18194+RL
270  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: How to enter numerical data? on: October 29, 2010, 02:43:12 pm
Well, I worked hard all week and finally got my sketch to do what I want.
Many thanks to Korman. I'm sure it could be done in a more elegant manner and would appreciate if any of you could take the time to look at it and critique it for me.
Code:
/*This sketch reads a numbers from a 4x4 matrix keypad using either decimal
or fractional entry and returns a value in thousandths of an inch. */

#include <Keypad.h>

const byte ROWS = 4; //four rows
const byte COLS = 4; //four columns
char keys[ROWS][COLS] = {
  {'7','8','9','A'},
  {'4','5','6','B'},
  {'1','2','3','C'},
  {'0','.','e','/'},
};
byte rowPins[ROWS] = {5, 4, 3, 2}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {9, 8, 7, 6,}; //connect to the column pinouts of the keypad

Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
long value = 0;                    //value in thousandths of an inch
int dec_switch = 0;                //0=integer entry, 1=decimal entry, 2=fractional entry
int dec_place = 0;                 //tracks decimal place
int frac_switch = 0;               //switches to fraction mode
int numerator;                     //numerator value
int denominator;                   //denominator value
float frac_value;                  //calculated decimal value of fraction

void setup(){
  Serial.begin(9600);
}

void loop(){
  char key = keypad.getKey();      //read keypad
  
  
  switch (key){
        case NO_KEY:
      // No key read. Do nothing
      break;

        case '0': case '1': case '2': case '3': case '4':
        case '5': case '6': case '7': case '8': case '9':
      
        //Serial.print (key);
        
        if (frac_switch  == 1){                        //prints and evaluates numerator
          numerator = numerator * 10 + key - '0';      //prints and evaluates denominator
          Serial.print (key);
          }
        if (frac_switch  == 2){                        //prints and evaluates denominator
          denominator = denominator * 10 + key - '0';
          Serial.print (key);
          }  
                      
        if ( dec_switch == 0 ){                        //prints and evaluates integer
        value = value * 10 + key - '0';
          Serial.print (key);
        }        
        else if ( dec_switch == 1 && dec_place < 3){    //prints and evaluates decimal
        value = value * 10 + key - '0';
          dec_place = dec_place + 1;
          Serial.print (key);
        
        }
        else if (dec_switch == 1 && dec_place == 3) {  //prevents entering extra decimal places
          Serial.println ();
          Serial.print ("Entry complete. Press Enter");
        }
                        
        break;

        case 'e':
      // Enter key
        if (frac_switch == 1){                          //multiplier for fractional value
          value = value * 1000;
                  
        }

      
        if (frac_switch == 0 && dec_place == 0){      
          Serial.print (".000");                         //prints decimal placeholder
          value = value * 1000;                          //multiplier for integer only decimal value
        }
        else if (frac_switch == 0 && dec_place == 1){  
            Serial.print ("00");                        //prints decimal placeholder  
            value = value * 100;                        //multiplier for decimal place
            
        }
        else if (frac_switch == 0 && dec_place == 2){
            Serial.print ("0");                          //prints decimal placeholder
            value = value * 10;                          //multiplier for decimal place    
        }
        if (frac_switch == 2) {
          frac_value = (float)numerator/denominator;     //calculates value of fraction
          value = (value + frac_value) * 1000;           //multiplier for decimal place  
        }
        
        
        
          
        
              Serial.println ();
              Serial.print ("The current value is: ");
              Serial.print (value);
              Serial.print (" thousandths.");
              Serial.println ();
              //Serial.println (numerator);
              //Serial.println (denominator);
              //Serial.print  (frac_value);
              //Serial.println ();
      

      // Reset values. The last number is done
      value = 0;      
        dec_switch = 0;
        dec_place = 0;
        frac_switch = 0;
        numerator = 0;
        denominator = 0;
        frac_value = 0;
        
        break;
        
        case '.':                          
        dec_switch = 1;                  //switches to decimal mode
        Serial.print (".");              //prints decimal point
        break;
        
        case '/':
          if (frac_switch == 0){
          Serial.print ("-");            
          frac_switch = 1;
          dec_switch = 2;
          }
          else if (frac_switch == 1){
            Serial.print ("/");          
            frac_switch = 2;
          }
      
           break;

          
        
        
      
        
        
        
    default:
      // All other keys
      Serial.println ();
      Serial.print ("Criminy! Don't press key '");
      Serial.print (key);
      Serial.println ("'! Another ");
      Serial.print (value);
      Serial.println (" puppies died in China.");

      // Reset value. The last number is done
      value = 0;
  }
}
 

While I'm waiting for my LCD display to arrive I will work on some routines to prevent entry of invalid data but I would like to make sure I've got the basic sketch in its best form first.
Thanks again.

Greg
Pages: 1 ... 16 17 [18] 19