Show Posts
Pages: 1 2 [3] 4 5 ... 79
31  Using Arduino / LEDs and Multiplexing / Re: Two independent things at once on: March 30, 2014, 05:34:35 am
You need to remove all the delay() calls in the code. Loki at the blink without delay example and see how millis() is used to keep track of when to do things. You will also probably need to read up a bit on finite state machines before too long as well.
32  Using Arduino / LEDs and Multiplexing / Re: Using Gammon's LED Flasher library with a state machine? on: March 29, 2014, 07:11:50 pm
Set the digital output to the state that you need as you enter the next state, as you have done.

Or just add a method to the library to do the same thing (like reset() or something). This could allow you to reset timers as well..

UPDATE: I just check the library header file and the object has everything you need...

Code:
    void begin ();
    void update ();
    void on ();
    void off ();
    bool isOn () const;
33  Community / Exhibition / Gallery / Re: Scrolling LED matrix display - Parola for Arduino on: March 29, 2014, 02:16:37 pm
@Alhooti - It supports different fonts but not the scripting requirements. As per previous post, this is too specific for this type of library.

@bill - I used the same sort of technique for my resistors, and yes the tab on the matrix makes sense. I guess they only go in 2 ways so if the first doesn't work ...
34  Using Arduino / LEDs and Multiplexing / Re: Using Gammon's LED Flasher library with a state machine? on: March 29, 2014, 04:43:38 am
If you don't call update() the led won't flash...
35  Community / Exhibition / Gallery / Re: Scrolling LED matrix display - Parola for Arduino on: March 29, 2014, 12:20:45 am
Bill - not sure I get what is happening to the file. The download (zip) has the doc file - can you please download that and see if yours are different from the published one (also generated using doxygen).

I saw an effect where everything was on one line when I didn't know what doxygen was doing - to have it as 'code' it needs 4 spaces at the start of the line. If that is missing doxygen will do its normal 'folding' of lines as it pleases.
36  Community / Exhibition / Gallery / Re: Scrolling LED matrix display - Parola for Arduino on: March 28, 2014, 08:03:42 pm
Version 2.0 Release

Version 2.0 of the Parola library has been released today. All the features of version 1.0 plus
  • User code can now provide its own font PROGMEM data table
  • User code can define individual character override for font character
  • Additional animations SCAN_HORIZ, SCAN_VERT, GROW_UP, GROW_DOWN, SCROLL_UP_LEFT, SCROLL_UP_RIGHT, SCROLL_DOWN_LEFT, SCROLL_DOWN_RIGHT
  • Multiple independent zoned scrolling areas in one display, each with independent character attributes (font, alignment, speed, pause, etc)
  • textEffect_t and textAlign_t are taken out of the class definition. Requires trivial legacy code mods
  • Requires the latest MD_MAX72XX library (version 2.3 or higher)
Zones provide a huge increase in the flexibility of the displays. A zone is a contiguous sequence of one or more display modules (LED matrices) and has all the attributes of the original displays - animation, speed, font, spacing, etc. This allows complex displays to be easily created. For example, one part can show relatively static text while a different one has animation and movement (see the video).

Video of the new features at http://youtu.be/u1iELyROjW8

Parola library is available from http://parola.codeplex.com
MD_MAX72XX library from http://arduinocode.codeplex.com
37  Using Arduino / Programming Questions / Re: Need this boolean to read correctly. Stuck on this on: March 27, 2014, 08:33:04 pm
Code:
  if (getFingerprintIDez() >= 0){       //changed here  from previous
    Serial.println(hits++);                   //changed here  from previous
  }

Are they logging in/entering or logging out/exiting?
38  Using Arduino / Displays / Re: Larger than 20x4 lcd? on: March 26, 2014, 09:57:59 pm
Search on eBay. I think 40x4 shows up sometimes.
39  Using Arduino / Programming Questions / Re: Need this boolean to read correctly. Stuck on this on: March 25, 2014, 10:45:22 pm
Code:
  if (a_b_Children[ThisChild] = true)

you mean

Code:
  if (a_b_Children[ThisChild] == true)
40  Using Arduino / LEDs and Multiplexing / Re: Arduino 8x8 LED Matrix - Problem on: March 24, 2014, 05:36:06 am
If you got it as a kit then we can assume the parts are correct. Have you tried to plug the matrix around the other way?

How have you connected the wires to the display module?
41  Using Arduino / Programming Questions / Re: MIDI library- set another serial port on: March 22, 2014, 06:03:27 am
You need to edit the library header file. It is pretty clear when you read the file.
42  Using Arduino / Programming Questions / Re: Removing delay command when using time with arduino (ds1307) on: March 21, 2014, 04:29:57 am
Look at the blink without delay example. You should not need to update the LCD except when the time changes, say every second, and in between checking the time and update you can check the button status.

You really do not need interrupts, just get rid of the delay().
43  Community / Exhibition / Gallery / Re: Scrolling LED matrix display - Parola for Arduino on: March 19, 2014, 02:27:22 pm
Unfortunately because of the way the header files are mashed in the Arduino compilation environment, using an external define to select the hardware type is very unreliable, as you discovered.
44  Community / Exhibition / Gallery / Re: Scrolling LED matrix display - Parola for Arduino on: March 19, 2014, 04:07:44 am
You have to edit the MAZ72xx,h file and change the define there. Just setting it in your code won't work.
45  Using Arduino / Programming Questions / Re: Help on coding for project! on: March 18, 2014, 04:36:34 pm
Your servos are not independent so you can control them both by the same output. You will need to use a transitor to switch the power on, but by connecting the transistor output to both servos the problem becomes one of just moving one servo, not 2.
Pages: 1 2 [3] 4 5 ... 79