Show Posts
Pages: 1 ... 373 374 [375] 376 377 ... 598
5611  Development / Other Hardware Development / Re: Need Suggestions for an Arduino clone board on: May 15, 2012, 07:46:50 pm
Since the Arduino is generally programmed in C/C++ and thus knowledge of the machine code is not a prerequisite, what advantages does the P89V51RD2 have over, for example, the Atmel  ATmega processors?
5612  Using Arduino / Installation & Troubleshooting / Re: Programmer is not responding Arduino UNO on: May 15, 2012, 04:50:17 pm
I suspect you are using an old installation on Mac which explains why the UNO board is not listed.  Try re-installing Arduino 1.0.

You can't talk to the UNO as if it were a Duemillanove.  The UNO bootloader uses a faster baud rate so it won't recognize any characters.
5613  Development / Other Software Development / Re: Custom configuration in sketchbook folder -- how to use default arduino core? on: May 15, 2012, 04:41:30 pm
Have you tried moving the file from




I also notice that some boards.txt files use the syntax:

I'm not sure what that does but it might do what you want.
5614  Using Arduino / Installation & Troubleshooting / Re: motor shield r3 compatible with duemilanove? on: May 14, 2012, 09:48:50 am
The schematic shows the SCL and SDA (I2C/TWI) pins only going to the TWI-IN and TWI-OUT connectors.  You can cut the pins off without hurting the motor control functionality.  If you want to use the TWI-OUT and TWI-IN connectors you can and jumper the SDA pin to A4 and the SCL pin to A5.
5615  Using Arduino / Interfacing w/ Software on the Computer / Re: reading serial ports with acc on mac on: May 14, 2012, 09:27:20 am
Another choice is to have the Arduino control a CD4066 Quad Bilateral Switch chip connected to the matrix of a used USB keyboard.  You can disassemble the keyboard and remove the circuit board.  Each of the analog switches can act as one button, shorting a row line to a column line to generate a keystroke.
5616  Using Arduino / Motors, Mechanics, and Power / Re: Servo control to pause and resume on: May 14, 2012, 09:15:15 am
Did you try "servo.detach();"?
5617  Using Arduino / Sensors / Re: Reading Oregon OS V3 sensors on: May 14, 2012, 09:11:14 am
Google says:
No results found for "OSov3.pde".
No results found for "OSov3.ino".

What makes you think that a sketch of that name exists somewhere?
5618  Using Arduino / LEDs and Multiplexing / Re: Charlieplexing issue on: May 14, 2012, 08:40:20 am
The point of Charlieplexing is that only the one LED that is forward-biased when you turn one pin HIGH and one pin LOW was supposed to light up.  Having two LEDs in series was supposed to double the voltage drop and thus cut the current enough to not light both lights.  Your problem is that voltage/current enough to light both Red LEDs is also enough to light both Green LEDs.  Adding the resistors should help.

5619  Using Arduino / LEDs and Multiplexing / Re: Uno + Rainbowduino on: May 14, 2012, 08:19:49 am
Does your Arduino have a removable processor?  If so, removing it will simplify the problem quite a bit.  If you don't, there is no way to reset the Rainbowduino with the Reset line of the Arduino without ALSO resetting the Arduino (which will start the bootloader).  If the two bootloaders are using the same serial pins at the same time it is unlikely to work.
5620  Using Arduino / Project Guidance / Re: Ok, I finished an Arduino project. How to make it permanent? on: May 13, 2012, 07:17:40 pm
Thanks for the answer John. So, If I understood correctly, the USB/Serial functionality is not native into 328?

That is correct. 

There is a newer Arduino design called the Leonardo that uses an ATmega chip that does include native USB.  Unfortunately those chips only come in surface-mount packages so they are not nearly as easy for a hobbyist to work with.  You might want to look into a Leonardo clone (the official board announced last September is not shipping yet as far as I can tell).

The USB-to-Serial chip on the UNO and MEGA is actually a small ATmega processor with native USB.
5621  Using Arduino / Programming Questions / Re: Using millis() instead of delay on: May 13, 2012, 07:07:27 pm
'static' just means that it keeps its value even when the function it is defined in exits.  Every caller to the function will be using the same instance of the variable.

I just tried it on an Arduino UNO with:
void loop(){
  //blink the LED on pin 13 every 500 ms forever...
  timer(500, blinking);
  //fade an LED on pin 9 forever...
  timer(30, fading);

For reasons I explained above the LED on pin 13 never blinked.
5622  Using Arduino / Motors, Mechanics, and Power / Re: Interfacing with PT785 from servo city on: May 13, 2012, 06:54:21 pm
My guess is that they took the feedback pot out of the servo and replaced it with one on the geared-down shaft.   it must be a multi-turn pot because of the 400° rotation limit. I expect they are controlled just like any other hobby servo.
5623  Using Arduino / Motors, Mechanics, and Power / Re: motor shield help on: May 13, 2012, 06:45:01 pm

Motor Power connects to the screw terminals marked Vin (+) and Gnd (-).  This will also provide power to the Vin pin of the Arduino.
5624  Using Arduino / Programming Questions / Re: Using millis() instead of delay on: May 13, 2012, 06:38:58 pm
I think it only works as expected because you are using each of the "timer()" functions only once.

If you took the '5' out of timer(500, blinking, 5); the blink would never get executed.  Every 30 mSec the second call to timer() would trigger and reset 'prev'.  The fading would happen but "millis() - prev" would never reach 500 so the blink would never happen.

You could create a timer object that keeps a separate "prev" for each timer.
5625  Using Arduino / Project Guidance / Re: Ok, I finished an Arduino project. How to make it permanent? on: May 13, 2012, 06:29:26 pm
3) Using an Arduino Nano.

Number 3 seems like I'm wasting a lot of resources too (feels like "throwing an Arduino away").
Is there any other alternative?

Sounds like you need the ATmega processor, crystal, and USB-to-Serial hardware, which comes to about 90% of an Arduino (Nano or UNO).

If your sketch can run on an 8 MHz Arduino you could use the internal RC oscillator.  That would save the cost of the crystal and caps (about $3).  I have seen articles about using cheap ($3) cellphone data cable for USB interface so that might work with an ATmega328P to give you most of an Arduino UNO for about $10.

 The ATtiny85 only has 8 pins.  You have to keep Vcc and Ground. You probably also want to keep Reset so you can re-program the chip without a High-Voltage Rescue Shield.  I think they left out the serial port, too.  Might make that USB-to_Serial cable useless. smiley
Pages: 1 ... 373 374 [375] 376 377 ... 598