Show Posts
Pages: [1] 2 3
1  Using Arduino / Displays / Re: display with few free digital pins on: February 07, 2013, 10:52:01 pm
To Bill - I get that you know what you are talking about.

That said, I wasn't asking for a long winded product review.  I was just giving an option to the original poster.
2  Using Arduino / Displays / Re: display with few free digital pins on: February 07, 2013, 01:04:31 pm
Or forget about all the goofy libraries and programming.
Unified Microsystems ATS-1 shield uses digital pins D0 and D1 which are used for serial communication.

http://www.unifiedmicro.com/ats1-arduino-shield.html

or available on Tindie.com:

https://tindie.com/shops/garysxt/lcd-terminal-shield-for-arduino-model-ats-1/

Just plug it in and don't use ANY open digital pins.
3  Using Arduino / Displays / Re: Custom Characters example question on: February 03, 2013, 09:31:59 pm
  lcd.write((uint8_t)0);  // add uint8_t when calling zero
4  Community / Gigs and Collaborations / Re: ADXL193 Accelerometer Assistance Needed! on: February 03, 2013, 08:43:59 am
I wrote the sketch for detecting recoil with ADXL193.  I have used it with several projects.

Here is the original version that I had modified and posted earlier.
I wasn't sure what you were doing or needed to display.

Code:

/*
 Recoil Viewer designed by AB9VH Electronics James Douglas III - 2012
 Sparkfun ADXL193 single axis accelerometer, 5v reference
 
 X axis analog pin 0
 
 ZERO G = 508  (calibrated data)
 */

int X = 0;                          // fresh data from accelerometer
int Xmax = 508;                     // max raw data, opposite of gravity
int Rmax = 0;                       // max recoil reading in g force
unsigned long time = 0;             // time in millis of recoil event
boolean lcd = false;                // okay to display info

void setup() {
  Serial.begin(9600);            // opens serial port for LCD shield
  Serial.println("Recoil Viewer by AB9VH Electronics");
  Serial.println();
  time = millis();               // time of recoil event
}

void loop() {
  X = analogRead(0);          // read analog input
  if (X > Xmax) {             // recoil event is opposite of gravity
    Xmax = X;
    time = millis();         
    lcd = true;
  }
  if ((lcd == true) && (millis()-time >= 1000)) {    // display 1 second after recoil
    Rmax = (508-Xmax)*.5;                // calculate max recoil
    Serial.print(Rmax);
    Serial.print("g   ");
    lcd = false;
  }
  if (millis()-time >= 4000) Xmax = 508;  // reset max recoil after 4 seconds
}
5  Community / Gigs and Collaborations / Re: ADXL193 Accelerometer Assistance Needed! on: February 02, 2013, 01:02:32 pm
Try this code out - it constantly checks for minimum and maximum recoil.
But it only displays once every second.  The more you display the smaller your sample rate becomes.
If the sample rate is too slow, you will miss the recoil event.

Code:
/*
 Recoil Viewer designed by AB9VH Electronics, James Douglas III - 2012
 Sparkfun ADXL193 single axis accelerometer, 5v reference
 
 X axis analog pin 0
 Ground, black wire
 +5v, red wire  (Vin: voltage input 5v)
 
 ZERO G = 508  (calibration data)
 */

int X = 0;                          // fresh data from accelerometer
int Xmax = 508;                     // maximim recoil data
int Xmin = 508;                     // minimum recoil data
int R = 0;                          // recoil reading in g force
unsigned long time = 0;             // time in millis of recoil event

void setup() {
  Serial.begin(9600);            // opens serial port for LCD shield
  Serial.println("Recoil Viewer by AB9VH Electronics");
  Serial.println();
  time = millis();               // time of recoil event
}

void loop() {
  X = analogRead(0);             // read analog input
  if (X < Xmin) Xmin = X;
  if (X > Xmax) Xmax = X;
  if (millis()-time >= 1000) {      // display every one second
    time = millis();               // time of recoil event 
    R = (Xmin-508)*.5;              // calculate maximum recoil
    Serial.print("Min recoil = ");
    Serial.print(R);
    Serial.print("g     ");
    R = (Xmax-508)*.5;              // calculate minimum recoil
    Serial.print("Max recoil = ");
    Serial.print(R);
    Serial.println("g");
  }
}

6  Community / Gigs and Collaborations / Re: ADXL193 Accelerometer Assistance Needed! on: February 01, 2013, 01:41:08 am
The datasheet is for the chip itself, won't explain how the board is set up.

VDD   (on the left) is 5 volts from the Arduino
GND   is the ground connection from the Arduino
ST      is for the self test function.  If 5v is applied to this you can test the accelerometer to see if it's working.  Do not connect for normal operation
OUT   is the output of the accelerometer.  Connect that to an analog pin on the Arduino.

Need help with the code just ask smiley
7  Using Arduino / Displays / Re: Arduino is writing to LCD, I can find no errors, but no LCD-text. What is wrong? on: January 30, 2013, 08:23:44 pm
Looks like the LCD display is backlit - connect pin 15 to +5v and pin 16 to GND

(EDIT)  also check the value of the pot - needs to be at least 10k.
I have found I could replace the pot w/ pin 3 connected to ground w/ a 9k resister
8  Topics / Product Design / LCDuino - the Arduino compatible that backpacks onto a LCD display on: January 18, 2013, 02:53:15 am
I listed my latest project on Tindie.com, an Arduino compatible board.
Seems to be some neat stuff listed on that site.

For beginner makers / small businesses seems like a good way to check out product demand.

https://tindie.com/shops/JD3/
9  Using Arduino / Project Guidance / Re: Need help with adxl335 for measuring displacement on: January 16, 2013, 08:11:57 pm
Yes you will get wrong readings with the car in motion. 

If the vehicle was moving, no vibration, and at a constant velocity it would work. 
Any minor change in velocity or movement would alter your readings.

Maybe you could use a gyroscope?  That would measure rotation while moving.  You would then convert the movement into an angle.

10  Using Arduino / Sensors / Re: Idea needed for hidden Target on: January 09, 2013, 02:57:02 pm
Maybe sniffing a radio signal, using a directional antenna, and have the robot drive towards the radio signal?
You would need to be able to detect signal strength.

Kind of like ham radio operators and fox hunts?

11  Using Arduino / Sensors / Re: ADXL 335 Accelerometer for Leveling? on: January 08, 2013, 07:47:10 pm
Hi Sana, you are looking for a Magnetometer (Compass) Board.  Adafruit and Sparkfun offer them.

The accelerometer is using gravity to determine the angles, but you need to use a different force to calculate yaw.

The Magnetometer senses magnetic forces, and hopefully it will sense magnetic north and not anything else.
Especially the magnetic fields of the motors.  You could set a direction and have the robot go to that heading.

If you are looking just to find out what the angle of deviation is, just send the robot out a known distance along a straight line.
mark a starting spot, send it off, mark the finish spot.  Then measure how far it's off from the line.
Using geometry you can calculate the angle.
inverse tangent (tan-1) multiplied by (length the robot traveled along straight line / distance robot veered ).
Both measurements must be the same units, ex. inches, feet, etc.   (6 inches is .5 feet)

That will give you the angle.....
12  Using Arduino / Project Guidance / Re: Arduino Mega 2560 R3 vs. Uno R3 for beginners {Raspberry Pi} on: January 05, 2013, 05:48:16 pm
Quote
I never said he did, please re read what I said.

I was just trying to give a technical response to your non technical whine. Guess there is no good response to whines in a technical forum. As to ebay arduino boards, buy from vendors that have good feedback and have completed large numbers of transactions. 

There is no reason to start acting like a child and insult people here.  You are not helping and are WAY off topic here.
If you want to help people solve problems with displays, there is a thread for that.

Nobody was insulting you when the topic of Chinese made Arduino's was brought up.

Maybe you need a time out to remind yourself how to interact with people.
13  Using Arduino / Project Guidance / Re: Arduino Mega 2560 R3 vs. Uno R3 for beginners {Raspberry Pi} on: January 05, 2013, 11:24:56 am
I'm sorry but the OP's original link WAS a fake.  (misnomer or not)

They showed a picture of Arduino's mega and just removed the "made in Italy" verbage.
Look at the pics of the back side of the board.  Clearly shows Arduino logo & Arduino "made in Italy" board.

If it was a clone they would have posted a picture of their own board, minus the Arduino name and logo.

Because they are advertising as selling ARDUINOs (not Arduino compatible) they are FAKES.

I have bought "compatible" boards before, and have made my own.  That's not the point here.
I have no problem with others manufacturing their own and calling it whatever-duino.

It's the fact that they are using someone else's brand and saying theirs are the real deal.


14  Using Arduino / General Electronics / Re: Where I got my PCBs made on: January 04, 2013, 11:10:44 pm
Every board from OSH Park worked great.

Have not received one board yet that had bad traces, silkscreen problems, etc.

There are many PCB makers out there, and depending on options, quantity, quality, all have an advantage over another.

For the small prototypes I have been designing OSH Park is the best choice.  For production, that's another story.
15  Using Arduino / Project Guidance / Re: Arduino Mega 2560 R3 vs. Uno R3 for beginners {Raspberry Pi} on: January 04, 2013, 10:57:23 pm
The Uno differs from all preceding boards in that it does not use the FTDI USB-to-serial driver chip. Instead, it features the Atmega16U2 (Atmega8U2 up to version R2) programmed as a USB-to-serial converter.  Some people have had problems with this chip, search the forums to find out more.

 1.0 pinout: added SDA and SCL pins that are near to the AREF pin and two other new pins placed near to the RESET pin, the IOREF that allow the shields to adapt to the voltage provided from the board. In future, shields will be compatible both with the board that use the AVR, which operate with 5V and with the Arduino Due that operate with 3.3V. The second one is a not connected pin, that is reserved for future purposes.

The bootloader is different, smaller in size and allows sketches to upload faster.

Otherwise the board is the same shape, pins are the same, and the shields are compatible with both.

I am using the Duemilanove, and I bought a new ATMega328P chip and burned the Uno bootloader on it.
Works fine, and my Duemilanove now boots and loads faster.  Just have to select Uno instead of Duemilanove in the Arduino IDE (programming software).

On the bottom of the hardware page was this link, it shows all the past and present versions.
http://arduino.cc/en/Main/Boards
Pages: [1] 2 3