Show Posts
Pages: 1 ... 61 62 [63] 64 65 ... 116
931  Using Arduino / Programming Questions / Re: What is wrong with this code? on: November 17, 2012, 03:04:00 pm
The same way you did before:

Code:
&data

'data' is just a pointer to the start of an array, and in this case the array is of type char, so 'data' a char*

As a side note, when you access an element of an array, you are essentially saying 'get the value stored at the pointer to the start of the array plus some offset'. e.g.:
data[0] is the same as *data
data[1] is the same as *(data + 1)
data[2] is the same as *(data + 2)
and so on.
932  Using Arduino / Programming Questions / Re: what's means about "PINB |= 1<<5" on: November 17, 2012, 02:55:03 pm
Writing a logic 1 to a bit in the PINx register of many atmegas results in the corresponding output toggling its state.

In this case, arduino pin 13, corresponds to the atmega PORTB bit 5. So writing a 1 to PINB bit 5 toggles the pin.
933  Using Arduino / Microcontrollers / Re: Arduino Tiny on: November 16, 2012, 03:34:03 am
I found a reference to the arduino core in the platforms.txt file which should be 'tiny'. I have change that and attached it.

I'm not having any problems with 1.5.0, though it seems in 1.5.1 they changed how the menu's work so the diving of boards into submenus that I had done doesn't work anymore. Other than that though all is well (maybe its because I have a different core? though there shouldn't be an issue with that from the IDEs point of view).
934  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: November 13, 2012, 09:05:54 am
An attiny2313 is not an attiny13. Thus their unique device signatures don't match.
935  Using Arduino / Microcontrollers / Re: Arduino 1.0.2 & ATtiny 85 on: November 12, 2012, 06:27:15 pm
gcc only compiles what it is told to compile. The IDE is the one that tells gcc what to compile.
Post edited smiley
936  Using Arduino / Microcontrollers / Re: Arduino 1.0.2 & ATtiny 85 on: November 12, 2012, 04:17:45 pm
Thats because it is compiling the wrong core.

you should be seeing it compile filed at:
D:\Arduino\arduino-1.0.2\hardware\arduino\cores\tiny\

Have you downloaded the Tiny core? The Arduino core is not suitable for attiny's.


As for blink including the IPAddress files, when the IDE uses gcc to compile the program, it tells it to compile all files in the core. If you don't include the associated header files (or cpp files themselves) anywhere in your code, the files and code associated will be scrubbed by the linker.
937  Using Arduino / Displays / Re: SPI 0.96" Color OLED Display Wiring on: November 10, 2012, 01:35:17 pm
FETs = Transistors.

A lot of ebay auctions say "Arduino Compatible". In many cases that just means that an arduino and it can be hacked together in such a way that it works. In many cases that hacking is just a level shifter, or getting a 3.3v arduino.

You will need the (logic) level shifter otherwise you will most likely damage the display.
938  Using Arduino / LEDs and Multiplexing / Re: Why do LEDs explode? on: November 10, 2012, 01:31:03 pm
*Silicon smiley-wink

Actually more likely GaAs/InGaAs/InGaP/etc rather than Silicon - Silicon isn't good at producing light, but that is a whole different kettle of fish.
939  Using Arduino / LEDs and Multiplexing / Re: Why do LEDs explode? on: November 10, 2012, 11:54:32 am
As you try and force more and more electrons to flow through the diode (i.e. a higher current), more energy is dissipated in the semiconductor due to collisions between the electrons and the lattice structure of the semiconducter material. The heat causes the lattice to gain energy and expand.
The plastic doesn't expand as much and so pressure builds up inside the LED until the plastic fails and cracks at which point all the energy stored up pressing against the inside of the shell is rapidly dissipated in the form of pressure waves (sound) and kinetic energy (the bits of plastic launching across the room).

Granted that is a catestrophic failure. In many cases the failure will not be catestrophic, but rather simply the fragile metal wire interconnects will melt rather like a fuse does. Though either way the final outcome is the same... you have to buy a new LED  smiley.
940  Using Arduino / LEDs and Multiplexing / Re: RGB SMT LED Cube, resistors, drivers, and shift registers. on: November 10, 2012, 11:46:13 am
Interesting. That means that the diagram is wrong (the mark is the anode not the cathode).

The Zener diodes aren't LEDs. I am not sure why they are there, but I would guess for some sort of overvoltage protection?
941  Using Arduino / Microcontrollers / Re: Arduino Tiny on: November 10, 2012, 11:43:37 am
Thanks, Tom. But the problem isn't the entries that have to be put into boards.txt but the double entries that you said me they appear in the menus.
That was just duplicate programmers, not duplicate entries for boards. However if you delete the 'programmers.txt' file in the tiny/avr/ directory, it still works and the duplicate entries go away.
942  Products / Arduino Due / Re: Arduino DUE availability in DK? on: November 10, 2012, 07:10:47 am
I orderd mine on october 23 at arduino store but still processing   smiley-confuse
Hope they will ship very soon ...

If it helps, I ordered my from the arduino store within 20 minutes of it appearing on the store, and it took them until last Thursday (6th) to ship it out. I'm guessing there are just so many orders to get through they are overwhelmed at the moment.
I can't wait until Tuesday smiley-grin (Thats when mine will arrive)
943  Using Arduino / LEDs and Multiplexing / Re: RGB SMT LED Cube, resistors, drivers, and shift registers. on: November 10, 2012, 06:53:35 am
Look at the pin numbers on the bottom right diagram (you can ignore the zener diodes). The have drawn the image as if it were from looking at the back.
If you then look at the top left diagram, the cathode is marked with a triangular notch.

The good news is that if you have in fact wired everything as common anode, it is a lot easier to control as you can now use the TLC5940's or any other LED current sink to drive them.
944  Using Arduino / Microcontrollers / Re: Arduino Tiny on: November 10, 2012, 06:49:57 am
To make things easier, I have attached my boards.txt file.

This one also subdivides the entries into the new board/processor menus.
945  Using Arduino / Microcontrollers / Re: Arduino Tiny on: November 10, 2012, 06:20:19 am
Oh right yeah forgot that. You have to now specify the upload tool in the boards.txt file.

To do that you need to add these lines for each entry:

attiny84at1.bootloader.tool=avrdude
attiny84at1.upload.tool=avrdude


Also, if you haven't already got one, you may have to copy the programmers.txt file from the arduino folder as well. I am not sure that this is needed though as it results in duplicate programmers in the IDE programmer window.
Pages: 1 ... 61 62 [63] 64 65 ... 116