Show Posts
Pages: 1 ... 464 465 [466] 467 468 ... 846
6976  Community / Exhibition / Gallery / Re: Analogue Temperature Display on: March 07, 2012, 04:06:29 pm

Very impressive, very nicely finished !! A+ smiley
6977  Using Arduino / Interfacing w/ Software on the Computer / Re: Arduino, matlab and servo control on: March 07, 2012, 03:01:44 pm
The .ino file looks rather complex, can you explain the meaning of the states?

You can compare val like this

if (val < 'a') { ....

makes it a bit more readable imho
6978  Using Arduino / Interfacing w/ Software on the Computer / Re: Arduino, matlab and servo control on: March 07, 2012, 02:50:24 pm

interfacing matlab has been discussed several times on the forum. Have you tried to search in the upper right corner?
6979  Using Arduino / Networking, Protocols, and Devices / Re: Public Ip of my eth shield on: March 07, 2012, 02:46:42 pm

Have you seen  -,95456.0.html -   is a no-ip topic too.
6980  Using Arduino / Networking, Protocols, and Devices / Re: no-ip and Arduino Ethernet Shield on: March 07, 2012, 02:44:01 pm
interesting - bookmarked!
6981  Using Arduino / Sensors / Re: 240 Volts ac variable voltage measurement on: March 07, 2012, 02:34:08 pm

Warning 240 volts is dangerous - you probably knew that allready - both for humans and Arduino's. So use an optocoupler.

If you attach a small 240 V lamp parallel to the fan and an LDR to the analogRead() from the Arduino you have an optocoupler that follows the voltage.

To solve the non linear mapping of the light to voltage, you could use - -

Another way could be: (you should check the numbers first.
=>> AC to DC   (some diodes, and a capacitor or so) followed by a voltage divider 50:1 [1 MΩ - 20KΩ ]  and you will get ~0~5V

my 2 cents...
6982  Using Arduino / Audio / Re: building star trek door help with sound on: March 07, 2012, 02:19:36 pm
Nice project! are you building the federation HQ?

An MP3 shield enables you to play any sound, - youtube has enough sound samples from startrek too choose form - or you sample from a DVD?

6983  Using Arduino / Programming Questions / Re: Number complex on: March 07, 2012, 02:11:55 pm

A nice complex number class, here is a starter - -
6984  Using Arduino / Installation & Troubleshooting / Re: Arduino ADK - mega8u2 problem on: March 07, 2012, 01:41:44 pm
Are you sure it is the mega8u2 ?

You could try to program it over ICSP ...
6985  Using Arduino / Installation & Troubleshooting / Re: Is there a Timer#n library on: March 07, 2012, 01:39:04 pm

Not that I am aware of. Never dived deep into the details of the timers but I know some timers have specific functions but recently someone had changed the timer behind the millis and the micros succesfully (to free a specific pin)

You should check the 328  datasheet I'm afraid ...
6986  Community / Gigs and Collaborations / Re: Looking for an author to write an Arduino book on: March 07, 2012, 01:41:26 am
Does anyone even buy and read books anymore?
yes, for me there is added value in a well written book, as reading on my phone is OK for one page but not for 2 hours in a train.

Agree the intenet is more up to date but I have googled many faulty code wrong texts incomplete explanations too. Same is true for books BTW smiley

6987  Using Arduino / Project Guidance / Re: Controlling two servos with two potentiometers simultaneously on: March 06, 2012, 04:37:49 pm

Think you need to slow it down a little, so a longer delay. Furthermore add some debug statements what values are read.

It can also be a matter of power, if you unhook one servo does the other start working?

// Ketto szervo helyzetet vezerli potenciometerrel (valtoztathato ellenallas)
// 2012, Copyright Santa Krisztian

#include <Servo.h>

Servo szervo1;  // szervo1 objektum letrehozasa az egyik szervo vezerlesehez
Servo szervo2;  // szervo2 objektum letrehozasa a masik szervo vezerlesehez

int potpin1 = 2;  // analog lab csatlakozik az egyik potenciometerhez
int potpin2 = 5;  // analog lab csatlakozik a masik potenciometerhez

int val1;    // valtozo, amely olvassa az egyik analog lab erteket
int val2;    // valtozo, amely olvassa a masik analog lab erteket

void setup()
  szervo1.attach(9);  // az egyik szervot csatolja a 9-es labon a szervo1 objektumhoz
  szervo2.attach(11);  // az egyik szervot csatolja a 3-as labon a szervo2 objektumhoz

void loop()
  val1 = analogRead(potpin1);            
  val1 = map(val1, 0, 1023, 0, 179);    
  Serial.print("Val1 = ");
  val2 = analogRead(potpin2);            
  val2 = map(val2, 0, 1023, 0, 179);    
  Serial.print("Val2 = ");
6988  Using Arduino / Project Guidance / Re: Scale "radar" trailer advice wanted on: March 06, 2012, 04:29:41 pm
Is this idea even possible?
definitely, search for distance sensor and arduino and you will find zillion of examples..
6989  Using Arduino / Project Guidance / Re: Another new person! on: March 06, 2012, 04:27:49 pm

220 Ohm or 470 Ohm between LED and Arduino pin to restrict the current.

piezeo as buzzer on a PWM pin ....
6990  Using Arduino / Project Guidance / Re: Press a button, display a random quote... on: March 06, 2012, 04:26:18 pm

Any advice?
Think out a good design, be the computer and draw pen/paper how it should work

Or, what is the real question?
Pages: 1 ... 464 465 [466] 467 468 ... 846