Show Posts
|
|
Pages: 1 2 3 [4]
|
|
47
|
Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Generating Composite Video
|
on: December 21, 2006, 02:57:58 pm
|
|
hej,
the arduino is also having some timing issues, the delayMircoseconds don't work so well for delay between 2-10 uS, but the delay for 1 uS is working perfekt. So for a delay with 4 us you should write 4x delayMircoseconds(1), the same for the 8 us delay, the 52uS delay should work on the normal way. One the other hand you should use the c code for writing the pins. Just copy it from the arduino library, this will save some time. You can also have a look in the DMX512 code example on the arduino wiki (not on the arduino website, the one on the website is not working!) For DMX you also have to use 4uS delays.
looking forward to your results tomek
|
|
|
|
|
48
|
Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: vista and arduino
|
on: June 20, 2007, 07:10:04 am
|
|
hej,
it works now also for me with the avr, thx
but we got a new problem with the java when we try to upload the program to the arduino:
java.io.IOException: CreateProcess: C:\Users\Sabine\Desktop\arduino-0008\tools/avr/bin/uisp -dpart=atmega168 -dprog=stk500 -dserial=/dev/com4 -dspeed=19200 --upload if=C:\Users\Sabine\Desktop\arduino-0008\examples\Digital\Blink\applet\Blink.hex error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Unknown Source)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at processing.app.Uploader.uisp(Uploader.java:172)
at processing.app.Uploader.uploadUsingPreferences(Uploader.java:78)
at processing.app.Sketch.upload(Sketch.java:1693)
at processing.app.Sketch.exportApplet(Sketch.java:1755)
at processing.app.Editor$40.run(Editor.java:1902)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
|
|
|
|
|
50
|
Forum 2005-2010 (read only) / Frequently-Asked Questions / vista and arduino
|
on: May 18, 2007, 07:21:40 am
|
|
hej,
i was trying to install arduino007 on windows vista , but the arduino starts already complaning when i try to compile code, it says:
avr-gcc: _spawnvp: No such file or directory
Couldn't determine program size: /cygdrive/c/arduino-0007/tools/avr/bin/avr-size: 'C:\Users\Sabine\AppData\Local\Temp\build57178.tmp\sketch_070514a.hex': No such file
did some one of you have an idea what to do,
i found just one old post about problems with winavr and vista in the arduino forum, but there wassn't any solution to solv this problem,... so maybe now some one have a clue,
thx tomek
|
|
|
|
|
52
|
Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Max 7219 + Matrix
|
on: March 23, 2007, 03:51:23 pm
|
|
hej,
the code should work, maybe you connect the matrix the wrong way, according to the datasheet the ground from the LED (ctahtode) should be connected to the dig0-7 (pin 2,3,5-8,10,11) ("Eight-Digit Drive Lines that sink current from the display common cathode. The MAX7219 pulls the digit outputs to V+ when turned off. The MAX7221's digit drivers are high-impedance when turned off.") and the supply side LED+ (annode) have to be connectet to the segA-D, DP ( pin14-17, 20-23) (" Seven Segment Drives and Decimal Point Drive that source current to the display. On the MAX7219, when a segment driver is turned off it is pulled to GND. The MAX7221 segment drivers are high-impedance when turned off.")
furthermore if you connect the matrix the otherway arround, it will alway light, because for example when a dig pin (at the max7219) is turned off it will pulled from ground to 5v and for the sig it is the otherway around.
so maybe this is your problem, but otherwise maybe you should post some fotos and discribe your problem a little bit more
als the best tomek
|
|
|
|
|
54
|
Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: RGB Matrix
|
on: December 21, 2006, 03:15:06 pm
|
|
i guess you could use a analog demultiplexer (4051) to light up rbg colour leds, but with a De/Multiplexer you can just light up one led(one line) at the same time, so you have to update your matrix quit fast and you will lose a lot of the brightness of the leds, further more you can not use long delays anymore.
there are better ways to ligth up a LED matrix, the best would be a LED-driver (max7219) or i don't know how does your matrix look like but you could also youse the pwm as the the source and your other digitalpins as the ground and build your own little matrix. If you write a digitalPin to LOW they will be direklty conectet to ground. you also have to update this matrix quit fast but not as fast as the demultiplexer matrix, so you will not lose so much brightness. In the past had taking place a lot of discussion about LED matrixs in this forum so check out the older post and discussions.
ha det bra tomek
|
|
|
|
|
55
|
Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: play sound files with arduino
|
on: September 05, 2006, 05:38:33 am
|
|
hej,
if you want to have a more or less hardware solution you could go for a industrie mp3 player, which you can controll true the tx at the arduino (printbyte, etc). there is a guy in stockholm salling this stuff (jesper hansen, yampp), but i guess you could find this things also some where else, ...
if you want to i could send you a tutorial by Marcus Hannerstig (from k3).
regards tomek
|
|
|
|
|
57
|
Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Dimming an external light voltage
|
on: April 24, 2006, 06:14:20 am
|
hej, the question is what you wanne dimm? in general you can use the pwn 0 - 3 (digital Output 9 / 10 / 11) to send diferent Voltage between 0V and +5V. SO you jsut need the right components to bring this singal on the right voltage and power. If you just wanne controll LED or Lights with low voltage you could use a power transistors( i think there name was something like N-channel Power transistor). If you want to control normal light (220 V up to 1kw) you have to bild your own little power unit. You can find a nice one at http://www.hoelscher-hi.de/hendrik/english/dimmer.htm but take care, don't burn your self and use some protect switch (circuit breaker / FI Schutzschalter). i hope i could help you tomek
|
|
|
|
|
58
|
Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: cant even turn LED on
|
on: March 09, 2006, 03:45:15 pm
|
|
Hej,
You picture seems to be right, as long as you also connect the plus and minus line on the breadboard to the arduino (plus = 5v and minus = ground (gnd)) and you can not use digital pin 0 and 1, these pins are used as the Tx and Rx, it is something similar like the serial port, considered to communicate with a other boards or a mp3 player etc., I realy don't know what this is but what you should no is: it don't work as an normal input or output.
To the pins: if you use an pin as an output, then it is always an digital pin (on the one side of the board is written analog on the other side digital) so you have to plug it for example on the digital side to pin nr.5
Furthermore you have to mind: the led have a polarity, you know, it works just in one way. So you have to try out which leg have to be on the plus side and which one has to be one the minus side
Hopefully I did wrote something wrong here, good luke
.
|
|
|
|
|