Show Posts
Pages: 1 2 [3] 4 5 ... 10
31  Using Arduino / Project Guidance / Re: Watch arduino on: March 19, 2013, 01:05:52 pm
At least the buttons of my watch are made for exactly that: as an input device for a little computer. Why adding more sensors?
How do you plan to get an Arduino (or at least it's heart, an ATmega328p) into the watch case?

Good Question! smiley-yell

You could try taking out the electronics out of the watch and stuff an Attiny85 into it with some data transmitter such as this one:
https://www.sparkfun.com/products/10534
But I barley believe that it will work.
32  Using Arduino / Programming Questions / Re: Serial.Begin statements on: March 19, 2013, 12:59:08 pm
There are four functions in the Arduino IDE:

Code:
Serial.begin();
Serial1.begin();
Serial2.begin();
Serial3.begin();

(Serial4.begin(); and on doesn't exist)

This will permit you two establish several RX & TX lines. However this only works on the Arduino Due and Mega because they have more than on pair of RX TX pins.()

Here are the pins n the Due for example:
Serial: 0 (RX) and 1 (TX)
Serial 1: 19 (RX) and 18 (TX)
Serial 2: 17 (RX) and 16 (TX)
Serial 3: 15 (RX) and 14 (TX)


Multiple RX and TX communication is not supported on other Arduino Boards, sorry. smiley
33  Using Arduino / Programming Questions / Re: I know little about programming, and have a specific question. on: March 18, 2013, 07:52:40 pm
Here is exactly how to do it:

Code:
for(i=0; i<100; i++){
     sequence[i] = (sequence[i] * FREQ) / (intervalle * 1000);
     Serial.println(sequence[i]);
}

The i<100 means it would repeat 100 times. Which is repeat until i is no longer smaller than 100. i++ means add one every time the for() function runs.

Read more about the for function:
http://arduino.cc/en/Reference/For
34  Using Arduino / Programming Questions / Re: ATtiny85 20PU analogread on: March 18, 2013, 05:39:36 pm
Appart from getting instructions on how to program an Attiny85 you should also burn the bootloader into the Attiny85 itself. Burning the bootloader would make your Attiny more compatible with Arduino IDE sketches. To burn it, first setup everything you do when you programm the attiny, but instead of uploading a sketch go to Tools > Burn Bootloader don't forget to seect the right port int Tools > Board menu. After that is accomplished you could now program the Attiny85 again and hopefully your analog reading will be good.

Hope this helps.
35  Using Arduino / Storage / Re: An eeprom config library for arduino on: March 18, 2013, 04:17:50 pm
Nice, I will try it smiley
36  Using Arduino / Programming Questions / Re: Ethernet to iOS problems on: March 18, 2013, 04:14:00 pm
What errors does it give in the compiler?
37  Using Arduino / Storage / Re: Can't get any SD card to initialize on: March 18, 2013, 03:59:04 pm
Try re–formatting into a FAT32 system if that may be the problem.
38  Using Arduino / Project Guidance / Re: Syncinc LEDs with Music Tracks on: March 18, 2013, 03:54:17 pm
I think you should consider looking up what a "low-pass filter" is. Basically it filters out  different frequencies and then you could use does as inputs and write some code to it. I think thats a good step to start with. Consider "high-pass filter" a well.

http://en.wikipedia.org/wiki/Low-pass_filter
http://en.wikipedia.org/wiki/High-pass_filter

Tutorial:
http://www.instructables.com/id/Arduino-Waveform-Generator/?ALLSTEPS
39  Using Arduino / Project Guidance / Re: serial data logging on: March 18, 2013, 01:22:12 pm
The best way is using Processing.

This example may help you grasp the basics. It graphs an Analog reading for a pin.

Code for Arduino:

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

void loop() {
  Serial.println(analogRead(A0));
  delay(2);
}

Code for Processing:
Code:
import processing.serial.*;
 
 Serial myPort;        // The serial port
 int xPos = 1;         // horizontal position of the graph
 
 void setup () {
 // set the window size:
 size(400, 300);        
 
 // List all the available serial ports
 println(Serial.list());
 // I know that the first port in the serial list on my mac
 // is always my  Arduino, so I open Serial.list()[0].
 // Open whatever port is the one you're using.
 myPort = new Serial(this, Serial.list()[0], 9600);
 // don't generate a serialEvent() unless you get a newline character:
 myPort.bufferUntil('\n');
 // set inital background:
 background(0);
 }
 void draw () {
 // everything happens in the serialEvent()
 }
 
 void serialEvent (Serial myPort) {
 // get the ASCII string:
 String inString = myPort.readStringUntil('\n');
 
 if (inString != null) {
 // trim off any whitespace:
 inString = trim(inString);
 // convert to an int and map to the screen height:
 float inByte = float(inString);
 inByte = map(inByte, 0, 1023, 0, height);
 
 // draw the line:
 stroke(127,34,255);
 line(xPos, height, xPos, height - inByte);
 
 // at the edge of the screen, go back to the beginning:
 if (xPos >= width) {
 xPos = 0;
 background(0);
 }
 else {
 // increment the horizontal position:
 xPos++;
 }
 }
 }
40  Using Arduino / General Electronics / Re: 74HC574N, what's it good for? on: March 18, 2013, 01:18:48 pm
Shift Registers are cool when you want to free some pins on your Arduino.
41  Using Arduino / Displays / Re: touch screen interfacing on: March 18, 2013, 01:17:02 pm
Here is a small one:
 https://www.sparkfun.com/products/8335

But you should also consider Processing to control your robot wirelessly, there are unlimited possibilities you could do with processing and the Arduino:
http://processing.org/
42  Using Arduino / Displays / Re: Using LED display? on: March 18, 2013, 01:13:43 pm
Here are some references on how to multiplex 7 segment displays:

http://www.extremeelectronics.co.in/pictutorials/images/SevenSegMux1.gif
http://www.best-microcontroller-projects.com/image-files/seven-segmentx4.png
http://arduino.cc/forum/index.php?topic=19776.0
http://www.instructables.com/id/Seven-Segment-Display-Tutorial/?ALLSTEPS

I Think this is the best one:
http://learn.parallax.com/4-digit-7-segment-led-display-arduino-demo
43  Using Arduino / Storage / Re: How to write and read the EEPROM? on: March 18, 2013, 01:07:30 pm
Check the Arduino Reference, it explains the steps nice and clear smiley

http://arduino.cc/en/Reference/EEPROMRead - Read
http://arduino.cc/en/Reference/EEPROMWrite - Write
44  Using Arduino / Storage / Re: An eeprom config library for arduino on: March 18, 2013, 01:04:23 pm
Nice! Could it work with the Attiny85 and Attiny84 or just with Arduino boards?
45  Using Arduino / Storage / Re: Memory Expansion on: March 18, 2013, 01:03:04 pm
The SD card I think is the simplest option, however if you want to be compact, you could use a I2C EEPROM chip that could store 256KB of data.

https://www.sparkfun.com/products/525

If you want you could wire up to 128 of these and that would get you 32MB of storage. But that is too confusing so I recommend sticking with a SD card.
Pages: 1 2 [3] 4 5 ... 10