Pages: [1]   Go Down
Author Topic: How to use arduino uno with the computer?  (Read 687 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I just bought an UNO. I dont have a bread board or any components just a UNO. There's not much i can do with just that. I want to know if i can use it with computer application like make it into a keylogger or something like a facebook notification app. I know i can do this with just programming but will it be possible to this kind of stuff with an Arduino?
Logged

West palm beach, FL
Offline Offline
Sr. Member
****
Karma: 1
Posts: 325
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes you can use it with your computer, i would also look into Processing for that
http://processing.org/

but the Arduino is more for interfacing Software with the real world , so lets say you make an application that notifies your arduino when you have a message or comment etc.. with nothing connected to it, not even an LED then its really pointless if you ask me, if all its doing is telling you something that you HAVE to be at your computer to see and since your there  then why not just open up a browser page and log into your facebook.
Logged

I could print the Arduino logo on a box of cereal and sell it as "Arduin-O's"

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 627
Posts: 34220
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Without and hardware the arduuino is just a low powered computer that you can communicate with using the serial monitor. So if you want to run any of those 70s style text based programs then you can. However there is not much point.
Get some LEDs (and resistors) and start them flashing.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yea thats what i plan to do when i get some money. But for right now all i got is the arduino. And until i get a bread board and some stuff i cant do much. My first app will be just to make the onboard led blink when i have a new email or facebook notification. I might bike to the nearest radio shack but only have about 6 bucks. What should i get?
« Last Edit: June 30, 2011, 02:34:56 pm by Darion321 » Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27114
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Go to www.dipmicro.com, for $4 and $2 in shipping you can get a bunch of resisters, LEDs, other stuff.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Will i be able to make little projects like that before i get anything? Like a facebook app that blinks the onboard led when i got a notification or something?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27114
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yeah, that you can do. D13 is an onboard LED that you can make blink.
If you can download the Blink sketch, it will blink, and you can start experimenting with responding to inputs received via the Serial interface

http://arduino.cc/en/Reference/Serial

Once you have the IDE installed, you can click on File:Examples: and poke around, see what code looks like.
Try some Serial.read and Serial.print stuff from the PC USB port and send stuff back:

Code:
//define the variables
byte inByte = 0;  //variable are Case Sensitive - make sure names called out all match
// define the pins to use
byte LEDPin = 13;
void setup(){
Serial.begin (9600);  // turns on Serial IO library - set up IDE Serial Monitor to match
pinMode (LEDPin, OUTPUT);  // so we can write out & see something
} // end of setup
void loop()
{
  // if the uC UART has valid byte:
  if (Serial.available() > 0) {
    // then we can read it:
    inByte = Serial.read();
// and send it back
    Serial.print(inByte);
// or send it back with a line feed (carriage return)
    Serial.println(inByte);
}  // end of if
else {
// blink the LED
digitalWrite(LEDPin, HIGH);
delay (25);  // make longer if flash is too brief - slows down response time too next character coming in tho
digitalWrite (LEDPin, LOW);
delay(25);
} // end of else
}  // end of void loop

How t get facebook to send something out serial port? I don't know.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 627
Posts: 34220
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you got a wire coat hanger, or some other stiff wire? If so you can make a steady hands game. Connect the wire to an input, enable the pull up resistors. Connect a loop of wire in a wand to ground and try and guid the loop through the wire without touching it.
Then you can add extra input wires at each end and time how long it takes to get from one end to the other.
Logged

Pages: [1]   Go Up
Jump to: