Show Posts
Pages: 1 2 3 [4] 5 6 ... 79
46  Community / Exhibition / Gallery / Re: 4x4x4 LED Cube with ATtiny85 and MAX7219 on: March 17, 2014, 12:53:42 pm
Nice!
47  Using Arduino / LEDs and Multiplexing / Re: 7 Color LED Diode Help for use in a prop. on: March 13, 2014, 05:00:24 am
My code library, linked below, has code for color transitions of an RGB LED if you want something to start with.
48  Using Arduino / Programming Questions / Re: Extended ascii on: March 11, 2014, 03:51:04 pm
Entering the characters from the serial monitor in the IDE definitely produces a character that is not ASCII. Printing from the serial input produces a long hex string that is definitely more that 8 bits.

Quote
I wrote from keyboard ni\244o and get the same (ni\244o) displayed in the dot led-matrix
Escape sequences are character constants in a string, they will not be translated from keyboard entry. It is the same as '\n' stands for newline but you actually type in an Enter. You need to define a string in the code like
Code:
str = "ni\244o";
and this will work.

An alternative is to write some code that will look at the input from the keyboard and convert all the 'strange' characters that arrive into the ascii equivalents if you want to be able to enter the character from the keyboard.
49  Using Arduino / Sensors / Re: TCS3200 with Arduino Uno on: March 11, 2014, 03:45:45 pm
Karma points always welcome smiley

Quote
Do I need to connect the outer inputs to the digital pins instead of connecting to 5V?
I don't know what this means. What are the 'outer inputs'?

Quote
Do you think I will be able to have the exact color temperature of a light?
No idea on this one. My use of the sensor is for detecting color, not color temperature. The sensors work by reading the level of reflected light rather than a light source directly. This may not be compatible with reading a color emitted from a colored source. However, assuming that you can read such a source, then there should be formulas that allow you to convert from one to the other. Color space and its attributes is an interesting topic but I am not at all an expert.
50  Using Arduino / Sensors / Re: Color Sensor TCS230 on: March 11, 2014, 03:41:20 pm
What you need is actually all in the documentation already.

Refer to this other post
Code:
http://forum.arduino.cc/index.php?topic=224465.new;topicseen#new
51  Using Arduino / Sensors / Re: TCS3200 with Arduino Uno on: March 10, 2014, 07:00:09 pm
Code:
#define  OE_OUT   8    // LOW = ENABLED

This says that OE is connected to 8, not OUT.

OUT needs to be connected to a special pin that depends on the FrequCount library requirements and the Arduino type you are using. The header file (or my documentation?) outlines this. The FreqCount library uses an interrupt to get very accurate timing and counts, so it needs this special pin.

Operation of the sensors is the same but I am guessing now that you are missing the frequency count from the sensor.
52  Community / Exhibition / Gallery / Re: Scrolling LED matrix display - Parola for Arduino on: March 10, 2014, 04:08:20 pm
Quote
How can I write with all the characters from the ascii table? (0x20 -> 0xFF)

This depends on what and why you are doing this:

1. The MD_MAX72XX_Test example shows what is defined for all the characters as part of its normal cycle.

2. Font Builder will let you view what the characters look like and edit them.

3. Non-printable characters can be put in a string or character constant using the usual escape sequence normal for C/C++ - "\x0NN" - where \ is the escape, x indicates hex and then the next three hex digits are the ascii code for the character (eg, \x0a4 for Ascii 0xa4). There are others forms of this so best to look it up.

4. Printable characters are just put in a string or character as normal.
53  Using Arduino / Sensors / Re: TCS3200 with Arduino Uno on: March 10, 2014, 04:00:06 pm
Back to basics:
1. Does the LEDs light up when you connect the sensor?
2. Have you measured the voltages at the sensor using a multimeter to check that these are right?
3. Have you checked that the EO/OE line is LOW? The low signal enables the chip and nothing will work if this is not the case.
54  Using Arduino / Programming Questions / Re: avrdude.exe: stk500_getsync(): not in sync: resp=0x00 on: March 10, 2014, 05:51:55 am
Have you tried reloading the boot loader into the Arduino?
55  Using Arduino / Sensors / Re: TCS3200 with Arduino Uno on: March 09, 2014, 04:39:58 pm
Quote
The S0, S1 and EO I did not connect.

This is ok as long as you are putting them either to GND or Vcc. You cannot leave them floating. What you should put them to depends on the datasheet and what you are trying to achieve. I would put S0, S1 to Vcc (full scale) and E0 to GND (enable).

You will also need to use the correct version of the TCS library object constructor (the one without S0, S1, E0 specified in the parameters).
56  Using Arduino / Sensors / Re: TCS3200 with Arduino Uno on: March 09, 2014, 04:01:51 pm
Make sure your serial monitor is sending newlines when you press enter. In the Arduino IDE the option is at the bottom right corner of the serial monitor.

I am pretty sure EO and OE are the same thing. It is the enable for the sensor. You should get a copy of the datasheet for the chip as this will have all the signals explained. Just remember that INPUT to the chip is OUTPUT from the Arduino.
57  Community / Exhibition / Gallery / Re: Scrolling LED matrix display - Parola for Arduino on: March 09, 2014, 04:00:00 pm
It is entirely possible to do what you want with the Parola library.

Code:
#include <MaxMatrix.h>
However, the example you are using does not use Parola but requires the MaxMatrix library (a different one, not MD_Parola). The error message you are posting are consistent with you not having installed the library. You will need to download and install that library.

If you want to use MD_Parola, then you will need to download MD_Parola and MD_MAX72XX libraries. In this case I would start with one of the example programs rather than the code you have.

Hope this helps.
58  Using Arduino / Sensors / Re: TCS3200 with Arduino Uno on: March 09, 2014, 01:39:53 am
I believe that that sensor is similar to a TCS230 I the way it works (could be wrong).

If it is, I have a library that may be a good starting point for you. There is also a document on how to calibrate the sensor with the library. LInk is in my signature below (code repository).
59  Using Arduino / LEDs and Multiplexing / Re: 8 digit 7 segment. LedControl() Help on: March 08, 2014, 12:47:25 pm
I did a library of sorts some time ago. You can download it from the library repository link in the signature block below. Hope it is useful for you as well.
60  Using Arduino / Programming Questions / Re: LCD update Screen Problem on: March 07, 2014, 10:34:29 pm
You are missing the point. You keep saying what the code should do but you really need to look at what the code is actually doing.

1. When you press a button, it is pressed for a few hundred milliseconds (say 300 milliseconds). In this time you will have checked for the button press at least 2 times, and that is only because you have put delay() in the code. Without delays you will have checked for the press a few hundred times. The point is that you are looking for button to be in the pressed state, not that the button has moved from being NOT pressed to being pressed. The transition is what you want to pick up, not the state of the button. This is called edged detection and you will find a lot on the forum about this.

2. There is nowhere in your code that I can see any attempt to wait for 5 seconds. Look at the blinkwithoutdelay example on how you need to structure writing for something to happen while also waiting for a timer to expire. You cannot use delay() as it blocks everything else from working. If you think that you are waiting then try to explain how that actually works.
Pages: 1 2 3 [4] 5 6 ... 79