Show Posts
Pages: 1 [2] 3 4 5
16  Using Arduino / Displays / Is Arduino Micro enough to use with OLED Display? on: September 15, 2013, 08:46:36 pm
Hi Everyone!

I have a Monochrome 128x32 SPI OLED Display ( http://www.adafruit.com/products/661 ) and I want to use it with an Arduino Micro. Is my Micro strong enough or does it have enough RAM to buffer the images that will be displayed? If not then what Arduino boards can I use?

Thanks!
Max Kulik
17  Using Arduino / Programming Questions / Re: Arduino not Recognizing Input Signal & Servo Help! on: July 28, 2013, 11:39:06 pm
Alright so the idea behind the GPS is somewhat complex right now. I am going to be making a "Drone type" vehicle that will be controlled over a Web Interface that will be resting on the Raspberry Pi. Before I go any further, I have made a video explaining some of the ideas I have in mind and could give you a better understanding on what I am thinking of doing:
 

The reason I have GPS on the system right now is because I am planning for the Arduino get a GPS fix of it's current location. So once it finds that fix, I will then go on the Web interface and type the new location/choord in that I want the drone to move to. It will use the GPS to guide its self to the correct location. Of course this will not work without some ping sensors telling the Arduino when there is a curb nearby. My idea is that when the Drone is moving to the GPS choords that it has been given, it will have ping sensors on the left, right, and front that will let it know if it is starting to steer off the road. Then It will correct it's position a few feet away from the curb and then begin heading towards the GPS choords that I have given it.

The reason I had the GPS just in there getting a fix was because I just wanted to start off with getting the "drone" to move back and forth as a start, then steering, then GPS.
18  Using Arduino / Programming Questions / Re: Arduino not Recognizing Input Signal & Servo Help! on: July 28, 2013, 05:14:57 am
Well right now I only have the GPS support in the code more for a place holder right now more then anything. The "Drone" will have GPS support later down the road, but to answer you question this is all it will print as far as GPS status goes (And this is because that is all I programmed it to do as well):

Code:
Reading GPS...
Lat. | Lon.
latcoordhere, loncoordhere
latcoordhere, loncoordhere
etc.

Also about what you were saying with the 2 second delay that I have set up for the GPS Module to get a fix, are you saying that it will not check to see if the button is pressed for the two second delay that is written in the code for the GPS to find a fix?
19  Using Arduino / Programming Questions / Arduino not Recognizing Input Signal & Servo Help! on: July 28, 2013, 03:51:34 am
Hi Everyone!

I am looking for some help regarding two things on my Arduino project. The first and most important question that I have is why is it that when I give my Arduino the signal on pin 2, the led connected to pin three doesn't turn on.

The second question I have is how do I make it so that when I send a signal to pin 4, the servo will go right and when a signal is applied to pin 5 the servo will go left?

I am somewhat new to the Arduino and I have not used a servo with it yet so this is all new to me.

Here is the code that I have so far:

Code:
 
// This code is the basic first steps of the Go-Kart drone.
////////////////// Written by: Max Kulik //////////////////

#include <SoftwareSerial.h>
#include "TinyGPS.h"                 // Special version for Arduino IDE 1.0
#include <Servo.h>                   // Include Servos

TinyGPS gps;
SoftwareSerial nss(6, 255);          // Yellow wire to pin 6

Servo myservo;
int pos = 0;                         // variable to store the servo position
int in = 2;                          // Forward Movement Input pin
int out = 3;                         // Forward Movement Output pin

void setup() {
  Serial.begin(115200);
  nss.begin(4800);
  Serial.println("Reading GPS");      // Just Serial Info
  Serial.println("Lat. | Lon.");      // Just Serial Info
  pinMode(in, INPUT);                 // GoKart Forward Movement Input Pin
  pinMode(out, OUTPUT);               // GoKart Forward Movement Output Pin
  myservo.attach(9);                  // Attaches the servo on pin 9 to the servo object
}

void loop() {
  bool newdata = false;
  unsigned long start = millis();
  while (millis() - start < 2000) {   // Update every 2 seconds
    if (feedgps())
      newdata = true;
  }
  if (newdata) {
    gpsdump(gps);
  if (digitalRead(in) == HIGH)        // If RPi Sends Forward Sig...
  {
  digitalWrite(out, HIGH);            // Then Move Forward...
  }
  else {
  digitalWrite(out, LOW);             //If nothing, then do nothing
  }
  for(pos = 0; pos < 180; pos += 1)   // goes from 0 degrees to 180 degrees
  {                                   // in steps of 1 degree
    myservo.write(pos);               // tell servo to go to position in variable 'pos'
    delay(15);                        // waits 15ms for the servo to reach the position
  }
  for(pos = 180; pos>=1; pos-=1)      // goes from 180 degrees to 0 degrees
  {                                
    myservo.write(pos);               // tell servo to go to position in variable 'pos'
    delay(15);                        // waits 15ms for the servo to reach the position
  }
  }
}

// Get and process GPS data
void gpsdump(TinyGPS &gps) {
  float flat, flon;
  unsigned long age;
  gps.f_get_position(&flat, &flon, &age);
  Serial.print(flat, 4); Serial.print(", ");
  Serial.println(flon, 4);
}

// Feed data as it becomes available
bool feedgps() {
  while (nss.available()) {
    if (gps.encode(nss.read()))
      return true;
  }
  return false;
}

Thanks in Advance
Max Kulik
20  Using Arduino / Programming Questions / Re: [SOLVED] Simple Code to Read Inputs and Then Output a Signal on: July 26, 2013, 01:21:27 pm
That was my fault.  I could pretend that I put it there as an exercise for you to spot and fix the error.......

Well thanks! I am always eager to learn more and more about the Arduino!
21  Using Arduino / Programming Questions / Re: Simple Code to Read Inputs and Then Output a Signal on: July 26, 2013, 02:51:08 am
I figured it out. There was an extra ")" at the end of the line.
22  Using Arduino / Programming Questions / Re: Simple Code to Read Inputs and Then Output a Signal on: July 26, 2013, 02:48:39 am
digitalRead() only takes one argument, the number of the pin to read from.  I assume what you meant to use is
Code:
if (digitalRead(in) == HIGH))
and the if line should not end with a semi colon

I tried replaceing
Code:
if (digitalRead(in, HIGH));
with
Code:
if (digitalRead(in) == HIGH))
and this is what it gives me:

Code:
sketch_jul26a.ino: In function 'void loop()':
sketch_jul26a:10: error: expected primary-expression before ')' token
sketch_jul26a:10: error: expected `;' before ')' token
23  Using Arduino / Programming Questions / Re: Simple Code to Read Inputs and Then Output a Signal on: July 26, 2013, 02:39:19 am
Post your code and you will get help.

This is the code that I have right now:

Code:
int in = 12; // Input pin
int out = 13; // Output pin

void setup() {
  pinMode(in, INPUT);
  pinMode(out, OUTPUT);
}

void loop() {
  if (digitalRead(in, HIGH));
  {
  digitalWrite(out, HIGH);
  }
  else {
  digitalWrite(out, LOW);
  }
}

These are the errors that I am getting:

Code:
E:\Arduino\hardware\arduino\cores\arduino/Arduino.h: In function 'void loop()':
E:\Arduino\hardware\arduino\cores\arduino/Arduino.h:100: error: too many arguments to function 'int digitalRead(uint8_t)'
sketch_jul26a:10: error: at this point in file
sketch_jul26a:14: error: 'else' without a previous 'if'
24  Using Arduino / Programming Questions / [SOLVED] Simple Code to Read Inputs and Then Output a Signal on: July 26, 2013, 02:08:48 am
Hi Everyone!

I could use some help with a code for my Arduino Uno that will read a high signal from the GPIO output on my Raspberry Pi and then the Arduino will turn an LED on or flip a relay. I have tried for a few hours now to get this code working but I seem to be doing some thing incorrect. Has anyone tried doing this already where I could just see a sample of the code so that I know where to start? It would help me out a ton!

Thanks in Advance
Max Kulik
25  Using Arduino / Programming Questions / Re: Arduino Wireless Remote -- Help Please! on: March 20, 2013, 03:35:15 pm
You can follow this project on my blog here: http://maxkulik.koding.com/
26  Using Arduino / Interfacing w/ Software on the Computer / Re: Problems with Installing Arduino Micro Drivers on: March 18, 2013, 08:46:38 pm
I currently have all the Arduino drivers installed, even still my laptop will only see it as this:

27  Using Arduino / Interfacing w/ Software on the Computer / Problems with Installing Arduino Micro Drivers on: March 18, 2013, 09:34:16 am
I just picked up the Arduino Micro but I am having a hard time getting the drivers working on my laptop. I am running Windows 8 (The largest pain to get any Arduino drivers installed.) And it's 64 bit.

This is the Arduino that I have: http://arduino.cc/en/Main/ArduinoBoardMicro

Thanks!
28  Using Arduino / Programming Questions / Re: Arduino Wireless Remote -- Help Please! on: March 17, 2013, 11:10:04 pm
My channel: http://www.youtube.com/user/mteverst3
29  Using Arduino / Programming Questions / Re: Arduino Wireless Remote -- Help Please! on: March 17, 2013, 10:31:55 pm
Alright. By they way, I just wanted to say thanks for all of your help!!! I have actually learned allot during this project and I hope that I continue to keep learning more and more! I am going to continue to expand on the car and hope that I can get turning working as well.
30  Using Arduino / Programming Questions / Re: Arduino Wireless Remote -- Help Please! on: March 17, 2013, 09:43:04 pm
Is it because the current of the 9v battery is to low? I am just wondering because I have the motors on the car powered by their own battery and it seems to have a much higher current.
Pages: 1 [2] 3 4 5