Show Posts
Pages: [1] 2
1  Using Arduino / Audio / Re: Frequency Generator w/Arduino on: March 16, 2013, 04:47:59 pm
http://www.instructables.com/id/Arduino-Waveform-Generator/
2  Community / Bar Sport / Re: New Transportation System? on: February 23, 2013, 01:07:32 am
So could this in theory work?

I think so.
My big question is, what will happen if one of the tubes (specially the one in the direction you float) breaks or loses pressure by accident ?

3  Using Arduino / Audio / Re: Playing MP3/WAV/audio files from an Arduino on: February 03, 2013, 03:27:44 am
>1.  Can this be done?
Yes
>2.  Would I need to use a DAC?
No, The arduino is not powerful enough to decode wav or MP3
>3.  Would it then be possible to amplify the analogue signal to output into speakers?
Yes you can use any amplifier.

There are some shields you can use with the hardware to decode audio.
http://www.adafruit.com/products/94 (kit needs some soldering skills).
https://www.sparkfun.com/products/10628 mp3 shield


4  Community / Website and Forum / Re: What to do about members who consistantly give wrong advice? on: November 13, 2012, 01:52:41 am
Every member has A status depending on the posts he made, we used that on another forum the set back someone who didn't deserve this status.
It's A lot of work for A moderator at A forum this big, another solution would be:
Let the status depend on like / dislike button so all the members can help rating someone who gives good answers.
This way you can mess up once or twice, but you are allowed to correct your status by giving better answers next time.
5  Topics / Education and Teaching / Re: willing to exchange experiences of teaching Arduino on: June 17, 2012, 05:56:28 pm
I wrote an arduino workshop for our hackerspace:
http://tkkrlab.nl/w/index.php/Workshop_Arduino

The original is in dutch but we did translate this to english.

I made the workshop for non technical people with no experience in electronics or programming at an art festival in our city.
The public where the visitors at the festival and the maximum time would be not more than 1 hour.
6  Using Arduino / Programming Questions / Re: Setting time on the Ds 1307 RTC on: May 19, 2012, 05:52:17 pm
I got this from the library example:
Code:
#include "RTClib.h"

RTC_DS1307 RTC;

void setup (){

 // following line sets the RTC to the date & time this sketch was compiled
   RTC.adjust(DateTime(__DATE__, __TIME__));
}

make sure you compile and upload (if this takes to long your arduino is A few seconds behind).

edit: I see you use another library, maybe you can run this to set the time and than upload your program.
7  Using Arduino / General Electronics / Re: Arduino to "type" on a keyboard on: May 11, 2012, 12:05:22 pm
There are infrared keyboards for the ipod and ipad.
Maybe itÅ› an option to scan what the keyboard codes are en send these codes with your arduino ?
8  Using Arduino / General Electronics / Re: Tricking a car radio aux input? on: May 08, 2012, 12:52:42 am
Most video inputs detect if there is 75 ohm on the input line.
try putting A 75 ohm resistor on the video input and if that works you can build A little box with A switch to enable your input.

9  Using Arduino / Programming Questions / Re: DigitalRead and If Statements on: March 17, 2012, 11:57:28 pm
Code:
int buttonpin=2
To chance the pin number without searching the whole code for where this pin is used.
Code:
button=digitalRead(buttonpin)
Only read the pin once at this point in the code and be able to do multiple if statements on button without the state changing during your program.
This also saves CPU time by putting a 1 or 0 in button you don't have to run the whole digitalRead code again.

Your solution is also working and for that it is not wrong, but if you gonna make a large program and you use the variables again and again in the code this is easy to correct faster and more reliable.

For myself I use both of the options.
If I have to test some hardware and want to now what the input on A analog pin is I use:
Code:
Serial.println(analogRead(0));

but if the program is going to get bigger and I need the variable more than once I do:
Code:
int readpin = 0;
int reading=(analogRead(readpin));
Serial.println(reading);
if (reading >200 && reading <400) Serial.println("test1");
if (reading >400 && reading <600) Serial.println("test2");
if (reading >600 && reading <800) Serial.println("test3");

10  Using Arduino / Programming Questions / Re: Blink Without Delay Revisited on: February 25, 2012, 09:38:44 pm
I've used something like this the other way around.
I needed the whole program to stop just like the normal delay accept for 1 function witch  alway has to run:

Code:
void Delay(unsigned long interval) {
    unsigned long endmillis = millis() + interval;
    while (endmillis < interval) {
        endmillis = millis() + interval;
        scanPorts();
    }
    while (millis() < endmillis)
        scanPorts();
}

And we did the same for millis:

Code:
unsigned long Millis() {
    scanPorts();
    return millis();
}
11  Using Arduino / Networking, Protocols, and Devices / Re: I2C bus interfacing with three sensors of the same address on: February 05, 2012, 12:05:02 pm
you can try to do bitbanging on different arduino outputs.

I used it for only 1 i2c device but it is possible to do this over different ports:

www.pe1br.nl/arduino/i2cpll/iicpll.pde
12  Using Arduino / Programming Questions / Re: programing ATMEGA 328 using external USB to TTL convertor on: December 28, 2011, 04:37:53 am
you also have to use the reset line to auto reset the atmel.
The blink sketch is the default sketch on A arduino rom sow it was there before you prgrammed the microcontroller.
The official schematic of the uno also uses 1K resistors in the data lines like this:

               _______ R1
TXD ------|______|----------   RXD
               _______
 RXD -----|______|----------   TXD
                         R2
 GND---------------------------  GND


DTR ------||--------------   reset (pin1)
             C        |           _______
                        --------|_______|----------5Volt
                                    R3

C=100N
R1=1K
R2=1K
R3=10K
13  Using Arduino / Installation & Troubleshooting / Re: Problem with Arduino Ethernet on: December 25, 2011, 06:24:41 pm
Is this ip number in your own network range ?
otherwise you have to change the ip in the sketch or change the adres of your pc.
14  Using Arduino / Project Guidance / Re: Floppy drive music (almost finished but...) on: November 20, 2011, 03:08:48 pm
I think he's building something like this
http://www.tkkrlab.nl/wiki/Arduino_midi_floppy_Jukebox

You can always try to contact drbytes from tkkrlab (enschede), he made this floppydrive machine and it sounds really great in our hackerspace :-)
15  Using Arduino / General Electronics / Re: Do all ICs need regulated voltage?IC data sheet tutorial on: November 01, 2011, 01:47:42 am
You can read A lot about it in this article:
http://www.vagrearg.org/?p=decoupling
Pages: [1] 2