Show Posts
Pages: 1 ... 29 30 [31] 32 33 ... 84
451  Using Arduino / Displays / Re: LCD menu flicker on: August 31, 2013, 12:15:34 am
Ok.

I think this is the change you need in loop(), but I have not tested it smiley-wink
Code:
  static byte lastSecond = 0;  // <-- remembers the last seconds value (static persists)
  byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;

  getDateDs1307(&second, &minute, &hour, &dayOfWeek, &dayOfMonth, &month, &year);

  if (second != lastSecond)  // <-- only does the time stuff if the time has changed
  {
    lastSecond = second;  // <-- save this for next time
    lcd.clear(); // clear LCD screen
    lcd.setCursor(0,0);
//... etc, code is unchanged
    lcd.print("Off");
    }
  }
452  Using Arduino / Displays / Re: LCD menu flicker on: August 30, 2013, 11:41:16 pm
Looks to me like the time is written every time through the loop. The first thing the code does is clear the display, which will make it flicker as you are doing this hundreds of times a second.

Couple of ways to address this:
1. Only update the screen when the time has changed. Practically you just need to remember the seconds value and when that is different from the previous time you update the LCD.
2. Turn off screen updates while you are putting things on the LCD and then turn them on after you have update. This should make it smoother.

My preference for the first as you can avoid anything to do with the screen formatting, etc, if the time is unchanged - that means you have more clock cycles for something useful.
453  Using Arduino / LEDs and Multiplexing / Re: MAX72XX Sketches, don't compile.. on: August 30, 2013, 11:33:19 pm
The landing page for the libraries at the code repository tells you how to install the library
Quote
For the Arduino IDE to be able to find and use them, these libraries should be uncompressed and placed in a libraries subfolder of your sketchbook folder.
1.Download the compressed (zip) file from the Downloads section (above).
2.Find or create the libraries subfolder of your Arduino sketchbook folder.
3.Uncompress the zip file in the libraries folder, keeping each library in its own unique folder.
454  Using Arduino / LEDs and Multiplexing / Re: MAX72XX Sketches, don't compile.. on: August 30, 2013, 08:18:18 pm
The max72xx library should work with your cheap Chinese type matrix units. It would help me if you can say what the exact error message is? IDE version would also be helpful, as the libraries will only work for v1 onwards.

On the surface it sounds like the libraries are not properly installed.
455  Using Arduino / Audio / Re: What is the purpose of the Midi jack in this diagram? on: August 30, 2013, 07:50:05 pm
Breadboards are a reasonable way to prototype a circuit but not always reliable as there are a lot of mechanical contacts that can go wrong (get bumped, oxidised, changes in humidity, phases of the moon, etc). If you are sure that the circuit worked, then I would try and move all the connections (eg, remove and insert) and see if that does the trick. Better still is to build a more permanent soldered circuit based on the prototype.
456  Using Arduino / Audio / Re: What is the purpose of the Midi jack in this diagram? on: August 30, 2013, 06:38:03 am
Unless you have a proper circuit your digital input will 'float' and switch between high and low randomly. This is your third situation.  The others produce a circuit that is the inverse of the other as far as the sensor is concerned, hence e the difference in whether you see a midi message or not.
457  Using Arduino / Programming Questions / Re: Software system development procedure question on: August 28, 2013, 04:53:17 pm
An alternative if you are already familiar with PLCs is to use some of the small 'brick' type devices that are not much more expensive than an Arduino board but could provide more robust I/O isolation for your purposes. These are probably easier to network if you need more than one, and the I/O extensions are more automatic when you have to add remote I/O.
458  Using Arduino / Audio / Re: What is the purpose of the Midi jack in this diagram? on: August 27, 2013, 03:15:39 am
Quote
Desktop with Windows 7 <=>
USB <=>
Arduino UNO
This I assume is just the standard programming/download cable for the Arduino, so not actually a MIDI connection.

Quote
Arduino UNO <=>
Breadboard Wiring <=>
Midi Jack
This is the circuit, so the MIDI message generation component and circuitry for the interface

Quote
Midi Jack <=>
MIDI to USB cable <=>
Micro USB otg cable  <=>
Nexus 7 <=>
Grand Piano pro version (supports Midi via USB)
This is the component that sends the MIDI messages.

The MIDI/USB cable has two ends - you should be connecting the 'OUT' side (labelled on the plug, usually) and LEDs - do they light up when you are sending messages? If you can't see lights, your circuitry/software is not working as expected. The USB converter cable should have no effect and seems to work given your comment previously.

If you are seeing the LEDs on the cable, then it is probably in the configuration of the software receiving the message.
459  Using Arduino / LEDs and Multiplexing / Re: Text Scrolling with Dot Matrix 8x8 and MAX7219 on: August 26, 2013, 06:20:11 pm
It looks to me like you are not inserting the next letter before the first one is completed off the display? You are also clearing the display in the loop - should this be outside the loop?

I don't use the ledControl library as I have my own (see the Parola link below or the MD_MAX72XX library in the repository). These have examples of what you want to do uising my library - it may be useful.
460  Using Arduino / Audio / Re: Improve code with midi potentiometer adding analog button for midi control on: August 26, 2013, 06:04:39 pm
It is not clear what you want to do:

1. How are the buttons wired up?
2. What do you want the buttons to do?
461  Using Arduino / Programming Questions / Re: Software system development procedure question on: August 26, 2013, 05:58:03 pm
This can make sense and is a good way to build up a system. However, you have limited resources (memory mostly) in the AVR processors, so you may need to tweak the overall process to make sure you are as efficient as possible at the end (ie, reduce duplication). This will depend on the application, but as we have no more details ...
462  Using Arduino / Audio / Re: What is the purpose of the Midi jack in this diagram? on: August 24, 2013, 11:12:02 pm
Patch cable. Autocorrect on the iPad killed it.

How are you connecting to your MIDI device? If it has a DIN jack, then that is what you use. If it is not connecting through the DIN jack, then you need to change the serial library to use the standard serial routines. Your code is currently using SoftSerial to connect using a different port than the USB port.

This is not hard, so I am probably not understanding what you are asking properly. Just Google the MIDI standard and it is all explained there.
463  Using Arduino / Audio / Re: What is the purpose of the Midi jack in this diagram? on: August 24, 2013, 08:23:21 am
Midi requires the circuits to be isolated and the standard uses the jacks for connectors. The midi over USB is common these days but patchy cables between devices are still mostly the DIN jacks.
464  Using Arduino / Audio / Re: What is the purpose of the Midi jack in this diagram? on: August 20, 2013, 07:01:50 pm
Midi jack is for midi output. You can tell from the sketch.
465  Using Arduino / Programming Questions / Re: Random RGB lamp on: August 19, 2013, 05:27:57 am
If you want some code that already does this to see how it works, look at the RGB mood lap sketch at my code repository, link in the signature below.
Pages: 1 ... 29 30 [31] 32 33 ... 84