Show Posts
Pages: [1] 2 3 ... 19
1  Using Arduino / Programming Questions / Re: IDE: files marked as changed when selected on: January 24, 2012, 06:27:44 pm
I've seen this bug for the past couple years (and in all revisions of the IDE so far as well).  Not so much a big problem as an annoyance.
2  Community / Exhibition / Gallery / Re: My DIY Breadboard Power Adapter on: January 19, 2012, 07:44:35 pm
Holy heatsink batman!
3  Using Arduino / Project Guidance / Re: Using arduino to prototype ATtiny projects on: December 17, 2011, 10:06:05 pm
Is there any memory savings by using defines as opposed to constants?  I've always used defines for pin numbers under the assumption that they're resolved by the compiler, they're essentially "free" (in terms of memory usage).
4  Using Arduino / General Electronics / Re: Power a bare-bones project with USB 5V? on: October 26, 2011, 02:52:54 am
However, caps are cheap and it doesn't hurt to add another one for another active device.

Is it possible to over de-couple a circuit?
5  Using Arduino / Project Guidance / Re: Can I build a connect 4 clone on: September 21, 2011, 07:55:13 pm

Thank you,

Now I know that the hardware allows this to happen. Before I jump into this I would need to learn about shift registers and such. Any recommendations on a smaller project that will allow me to learn about them?

Start with a single shift register and learn how to control each led individually, then add one more, then try your hand at multiplexing smiley

By the way fantastic looking project. How much knowledge of electronics did you have before you started it?

Virtually none.
6  Using Arduino / Project Guidance / Re: Can I build a connect 4 clone on: September 21, 2011, 06:37:04 pm
Yes you can!
7  Using Arduino / Project Guidance / Re: Extreme Newbie asking about playing around with MIDI on: September 21, 2011, 03:20:56 pm
Overall, handling MIDI with the arduino is fairly easy, as is interfacing with "physical movements".  What you need to do first is get a fairly concrete idea of what exactly you want it to do.. It's tough to give direction based on " LED blinking or whatsoever as long as it is something cool!"

Tell us the cool things you want it to do and we'll get you on the right track smiley
8  Using Arduino / Project Guidance / Re: Review Arduino Board Design on: September 17, 2011, 12:39:18 pm
I've used normal matte lacquer before and it worked like a champ!  I'm not too sure what the electrical insulation it provides, but after 8 months the traces are as bright and shiny as the day I etched it.

I applied multiple light coats on the freshly etched board and let it dry for a few hours.  The heat (and flux!) from the soldering iron is enough to clean the lacquer off the pads, so it will act as a sort of solder mask as well.
9  Using Arduino / General Electronics / Re: [Solved, Thanks] Buggy Circuit - Please help me identify possible causes on: August 08, 2011, 07:55:19 pm
Ah... If you're stuck with the cabling as is, then yeah, using the byte array will work just fine..  Just make sure the values are correct (they are currently reversed see below).  You should also use a byte instead of an int, as you only need values from 0-15.
byte muxInput[16]={ // byte because we only need values from 0 to 15
B00000000, // 0
B01000000, // 64
B10000000, // 128
B11000000, // 192
B00010000, // 16
B01010000, // 80
B10010000, // 144
B11010000, // 208
B00100000, // 32
B01100000, // 96
B10100000, // 160
B11100000, // 224
B00110000, // 48
B01110000, // 112
B10110000, // 176
B11110000  // 240

I can't speak to the mega as I have never dealt with it, but the answer will be in the datasheet for the atmega chip smiley

Edit:  As for the wiring, you also need to be sure to wire up the mux select pins to the low end of the port (PortXpin0-3), mux S0 -> PortPin0, mux S1 -> PortPin 1, etc...
10  Using Arduino / General Electronics / Re: [Solved, Thanks] Buggy Circuit - Please help me identify possible causes on: August 08, 2011, 07:40:09 pm
I need the array of binary values, because of the wiring of my sensors. Using the array allows me to call the pins in the order I want to read them, rather than in sequential order. This saves me a step of re-ordering them later. (Do you think this is silly? as in, am I wasting processing power on the arduino, as I could just do this on my computer?)

I haven't read the whole post, but I will comment on this...  It seems logical to me to wire up the sensors you want to read in the order you want to read them... that way there's no guessing involved.  Read mux #13 and you are reading sensor #13.  This would let you essentially write the integer value (in binary) to the port select pins (hook them up appropriately to the same PORTx).  It would free up the need to use the matrix as well as make things much much more efficient.  You are writing a whole PORTx in less time than it takes to do a single digitalWrite (experts: please correct me if I'm wrong on any of this)

Edit: after reading, my point recommendation still stands.. Keep in mind that your current matrix has the 'binary' value in reverse.
11  Using Arduino / Project Guidance / Re: Final Year Project- NEED HELP!!!!!!!!!!!!!!! on: August 05, 2011, 01:57:19 pm
Get hold of a copy the manual for the CNC machine, and read it, cover-to-cover.
12  Using Arduino / Project Guidance / Re: Hacking My Digital Clock on: August 05, 2011, 01:49:30 pm
This may not help you, as your module is different, however I have torn apart 4 separate alarm clocks, and so far the pinouts have been the same:

13  Using Arduino / General Electronics / Re: [Solved, Thanks] Buggy Circuit - Please help me identify possible causes on: August 05, 2011, 02:56:22 am
One thing that would make a big difference is getting rid of the matrix for a for loop.  If you look at the data in the array you'll notice that the binary value (reading from left to right: 1 , 2, 4, 8) of the mux select pins is equal to the pin it selects:
{1,0,0,0}, //SparkFun Input # 1  = 0001
{1,0,1,0}, //SparkFun Input # 5 = 0101
{1,0,0,1}, //SparkFun Input # 9 = 1001
{1,0,1,1}, //SparkFun Input # 13 = 1101
{0,1,0,0}, //SparkFun Input # 2 = 0100

Using that knowledge, appropriate wiring and a for loop (along with some bitwise operations and direct port access) would free up quite a bit of memory (relative to the available memory that is...) and seriously speed things up..  There's plenty of posts on the subjects on the forums, but feel free to ask away after trying some things out.
14  Using Arduino / General Electronics / Re: Pin-type / Piercing Probes that fit into breadboard holes on: July 30, 2011, 11:12:52 pm
What's wrong with this? smiley-wink

15  Using Arduino / Programming Questions / Re: millis madness on: July 30, 2011, 10:58:49 pm
I fixed the indenting to make the code a little clearer...
void loop()
unsigned long currentMillis = millis();

if (state==HIGH) 
if(currentMillis - previousMillis > interval )
previousMillis = currentMillis;     

if (ledState == LOW)
ledState = HIGH;
ledState= LOW;
digitalWrite(ledPin, ledState);

The only time you call digitalwrite on the led is when it's low.  You then set it low... 
Pages: [1] 2 3 ... 19