Show Posts
Pages: 1 ... 31 32 [33] 34 35 ... 84
481  Using Arduino / Programming Questions / Re: Need help inverting an action upon recieving same input on: August 01, 2013, 05:55:47 am
Have you got brackets around the new 'if' statement? This groups it under the check for the IR code.

The logic is pretty simple here so not much else to suggest. Maybe repost the modified code? Use the # button when posting to get code tags 
482  Using Arduino / Programming Questions / Re: Need help inverting an action upon recieving same input on: August 01, 2013, 05:40:02 am
You can try a longer version

if  (digitalRead(led)==HIGH)
  digitalWrite(led, LOW);
else
  digitalWrite(led,HIGH);

Serial monitor resets the board when turned on.
483  Using Arduino / Programming Questions / Re: Need help inverting an action upon revieving same input on: August 01, 2013, 05:00:42 am
digitalWrite(led, !digitalRead(led))
484  Using Arduino / Programming Questions / Re: Finding a number in a large array on: July 30, 2013, 03:18:27 am
All good advice so far but the quick- and binary- searches are designed to return the exact match for what you are looking for.

As I understand you want to find the next lowest and the next highest to the value you are looking for, so you will need to modify the algorithms presented.
485  Using Arduino / Programming Questions / Re: how to scroll text on 8x8 dot matrix on: July 30, 2013, 03:14:04 am
How do you want to scroll it? Left or Right? Do you just want to move it off the screen or rotate through?

You need to understand the << and >> operators in C - this will move the bits in a byte/word/long to the left or right by the specified number of positions. Scrolling is just moving bits the way your characters are defined.
486  Using Arduino / Sensors / Re: i want to check the time on: July 29, 2013, 02:11:00 am
Look at your watch?
487  Using Arduino / Audio / Re: Serial <--> MIDI not always same result on: July 27, 2013, 04:00:47 am
Contact bounce could be an issue but I would expect you see multiple messages in the printing.

I don't have any experience with your computer based software, so can't help there.
488  Using Arduino / Audio / Re: Serial <--> MIDI not always same result on: July 27, 2013, 12:23:11 am
Instead of send the midi messages out the serial port, try printing them out to the serial monitor of the arduino. This will eliminate the comms line and beyond as a source of errors. If the messages are right at that pint, then you know where to look. If they are not right, then it is all in the Arduino code ...
489  Using Arduino / Programming Questions / Re: Question about hex codes on: July 27, 2013, 12:05:06 am
Looks like the current sketch takes its input from the serial monitor. So you need to cut and paste the data to the serial monitor input section at the top of the window.

If you want to hard code it into the sketch then you need to modify the sketch to be triggered by something like a digital input instead of reading the data from the serial line. Then just send the array of data the way that it would be handled at the moment.
490  Using Arduino / Programming Questions / Re: Question about hex codes on: July 25, 2013, 10:30:06 pm
Without knowing more about the data it is not clear how you would be able to compress this large amount into 32 bits.

What are you actually trying to do?
491  Using Arduino / Displays / Re: LED board messaging on: July 24, 2013, 11:58:30 pm
I am assuming that the board is a commercial product and has a manual that you will be able to read.

In order to control the board you will need to find the communications port (socket somewhere) and a definition of the messages that you can send to the board to control it. Once you have that then you can write the software.

Otherwise you will need to reverse-engineer the communications protocol, which may be more complex than you may want to tackle at this stage.
492  Using Arduino / Storage / Re: Can anyone provide me eagle file of arduino uno with sd card shield? on: July 21, 2013, 08:23:04 pm
If you buy one of the ready made SD card units (like this one on eBay http://www.ebay.com.au/itm/Perfect-SD-Card-Module-Slot-Socket-Reader-For-Arduino-ARM-MCU-Read-And-Write-/350835892546?pt=AU_Gadgets&hash=item51af72e142), then mounting it on a Uno size protoype board is so striaghtforward that I don't think that you will find an electrical schematic is needed - you simply hard wire the same links you would use if you were putting it onto a breadboard.
493  Using Arduino / General Electronics / Re: [SOLVED] Reset for a 3.3V breakout board connected to an Uno on: July 20, 2013, 08:05:34 pm
I did some research and 2 ways stood out as being 'quick and dirty' but workable. Simplifying factors for me are that the signal (RESET) hardly changes at all and it is only one way from 5V to 3V. The easiest ways:
- Voltage divider as already previously mentioned
- Zener diode voltage clamp on the signal

Here are some references in case anyone is interested

http://jamesreubenknowles.com/level-shifting-stragety-experments-1741

http://www.daycounter.com/Circuits/Level-Translators/Level-Translators.phtml
http://webhome.csc.uvic.ca/~mcheng/466/spring.2010/handouts/references/level-translation-techniques.pdf
http://codeandlife.com/2012/04/06/level-shifting-101/
494  Using Arduino / General Electronics / Re: Reset for a 3.3V breakout board connected to an Uno on: July 20, 2013, 08:32:24 am
Here's the breakout boards https://www.sparkfun.com/products/9943

It is mounted on a UNO prototyping shield and the I/O pins are tied to start it up in MIDI mode.
495  Using Arduino / General Electronics / [SOLVED] Reset for a 3.3V breakout board connected to an Uno on: July 20, 2013, 03:29:44 am
I have breakout board for a component that is to the Uno using the serial port only. I need to reset the breakout board when the Uno is reset, but the mismatch in voltage levels (3.3V vs 5V) means that I can't connect the Uno reset signal directly to the breakout board.

Any suggestions for would be the easiest (cheapest and least components) way of doing this, given that there is just one signal whose level needs to be shifted?
Pages: 1 ... 31 32 [33] 34 35 ... 84