Show Posts
Pages: 1 ... 50 51 [52] 53 54 ... 85
766  Using Arduino / Displays / Re: LCD contrats variable resistor issue on: January 27, 2013, 03:58:01 pm
Did you connect one end of the resistor to gnd, the other end to 5V and the wiper (the one in the middle usually) to the input for the LCD?
767  Using Arduino / Sensors / Re: encoder driving me crazy, help on: January 27, 2013, 04:33:08 am
Instead of just copying new position to oldposition, only do it if the newpos is less than your upper limit.

Better still work on the difference between old and new, and add the difference in only when your are within bounds. Using the difference has the advantage that going down can happen immediately.

Treat the long counter as just an indication on what the encoder is doing and use the information to maintain your own user interface number. By splitting the two you have more control.
768  Using Arduino / Programming Questions / Re: Inverse Kinematics on: January 27, 2013, 04:22:33 am
You might have more luck with someone in the robotics section being able to help. Inverse Kinematics don't come up often in this forum smiley
769  Using Arduino / Programming Questions / Re: Where to find Information on how to organize larger Arduino projects? on: January 27, 2013, 04:16:13 am
To be honest the Arduino IDE got frustrating for software development for me when I started to get 4-5 files in a project. I discovered and started using the Visual Micro Arduino extensions for Visual Studio and have been much more productive. For one off and small code I still use the ide as it is faster to load and good enough.

If you are interested details are at http://www.visualmicro.com/.
770  Using Arduino / LEDs and Multiplexing / Re: MAX7219 madness on: January 26, 2013, 04:57:43 pm
Usually worth trying the really obvious things first.
771  Using Arduino / Programming Questions / Re: Please explain private and public in library header file on: January 26, 2013, 04:53:41 pm
They are defined in the class definition but don't exist until the object is created.
772  Using Arduino / Programming Questions / Re: Please explain private and public in library header file on: January 26, 2013, 04:48:14 pm
Variables should never be declared in a .h file as this is bad practice. They can be declared globally by putting them in a library and the external reference in the header file.  If they are declared in the header file they will exist as a local copy everywhere the header file is included.
773  Using Arduino / LEDs and Multiplexing / Re: MAX7219 madness on: January 26, 2013, 04:44:34 pm
Would be helpful to have a circuit and the sketch.

Have you wired the segments and digit selections the right way round?
774  Using Arduino / Displays / Re: Arteffects! 128x64 LCD ST7920 on: January 26, 2013, 05:21:10 am
You can attach files to a post. Look in the additional options at the bottom of the text entry box
775  Using Arduino / Sensors / Re: Displaying LM35 & DHT11 on LCD : only looping twice through program on: January 25, 2013, 06:49:45 pm
Don't use String. Use an array of characters.

The String implementation in the Arduino library has a bug and is notorious for leaking memory.
776  Using Arduino / Programming Questions / Re: any tutorials on this? on: January 25, 2013, 06:41:55 pm
 I have the same unit you got and also wired up a marix from individual LEDs (which made me appreciate the made up matrix even more!). Not sure if it will help you or not, but ...

When I was trying to understand what/how the MAX72XX chips do their stuff I wrote a library and a bunch of test code that did 'funky' (ie, useless but interesting at the time) things on the matrix, including addressing individual points on it..

If you are interested in the code for my library and the test/example can be found at the location in my signature block.
777  Using Arduino / Storage / Re: malloc() bug and SD cards on: January 25, 2013, 09:16:30 am
TYhe SD library that comes with Arduino has a memory leak that shows itself when you open/close file repeatedly. I use the SDFat library - faster and no memory leaks.
778  Using Arduino / Storage / Re: Putting File.close() in the right place on: January 25, 2013, 09:14:54 am
Strictly speaking th first is correct because you have actually managed to open the file when you are in the 'if' part. However, most libraries are tolerant of files being closed when they were not opened and the second would work as well.
779  Using Arduino / Programming Questions / Re: any tutorials on this? on: January 25, 2013, 09:11:35 am
Never underestimate a 13 year old when it comes to computer technology ...

Did you start wih easier stuff like the LED blinker and reading an analog input? I find it is good to get the basics right and build on that.
780  Using Arduino / Programming Questions / Re: Help with application of Finite State Machine library on: January 25, 2013, 06:27:53 am
Should the arguments in the println() statements be in double quotes as they are strings?
Pages: 1 ... 50 51 [52] 53 54 ... 85