Show Posts
Pages: [1] 2 3 ... 197
1  Using Arduino / Programming Questions / Re: Need help on shrinking my code! Only need to cut off 12 bytes on: September 26, 2014, 08:11:34 pm
@ Pyro...
Thank You, That is truly amazing...

Doc
2  Using Arduino / Programming Questions / Re: Trying to display temperature on a TFT on: September 26, 2014, 08:03:31 pm
Were it me... I'd ditch the String for the less memory intensive 's'tring class...
As to the DHT11, Yes I do remember reading that it does support both devices...
I've written code for both of the devices and I "Had" to Google" for answers, Your excuse is...?

Docedison...

You might look at  http://forum.arduino.cc/index.php?topic=66054.255 reply # 267
While I'm not really proud of that code... It worked on a clone Mega2560...
Very well.
I ditched it because I had created a shield stack that was totally Rube Goldberg...
Unmountable W/O a custom made box. And...
Mainly because I didn't want to make a real PCB to complete working code as I still needed to add radio
communications for the external sensors and the code required to use the X-10 modules for another
part of the proposed design...
3  Using Arduino / Programming Questions / Re: Another pair of eyes needed on: September 26, 2014, 12:58:10 am
+1 All... Great lesson

Doc
4  Using Arduino / Programming Questions / Re: Trying to display temperature on a TFT on: September 25, 2014, 05:55:23 pm
Robtillart has published a much easier library to use.. Try it instead...
I might point out that the DHT22 is a much better device to use.
Although a bit more expensivehttp://www.ebay.com/itm/DHT22-AM2302-Digital-Temperature-and-Humidity-Sensor-/120770206870

Doc
5  Using Arduino / Programming Questions / Re: Variable or field "name" declared void. on: September 25, 2014, 05:31:44 pm
Code:
//Define pins here
//Define 6 pins
 int F1button = 2;
 int F2button = 3;
 int F3button = 4;
?? six?
Comments, [Thanks to @ PaulS] are a pointer to your thinking, 
@PaulS (Thank you for the lesson)...
Always change the comments to reflect your thoughts about the line of code you are currently writing...
Comments are cheap...  Never appear in the compiled code.
Otherwise you are creating a map to nowhere...

Doc
6  Community / Gigs and Collaborations / Re: Inserting Start bit and Stop Bit in a serial communicatiom on: September 23, 2014, 05:16:45 pm
Or the OP perhaps is wanting to identify specific serial communications by a Unique Start Bit... (ie packet header)
Perhaps 2 bytes one for ID/Destination and the other for the actual data exchange...

Doc
7  Using Arduino / Programming Questions / Re: AC dimmer code issus on: September 23, 2014, 05:04:15 pm
through out this thread, I've constantly read that the use of a pot exacerbates the control stability and I wonder about 3 things,
1. how long are the pot wires?
2. have you tried a 10 to 100uF bypass capacitor on the pot or on the pcb where the pot supply and ground connects
And
3. have you tried a 10 to 100 nF bypass capacitor from the pot wiper (the pot center lead usually)
What you describe could well be caused by the switching transients coupling to the pot center wire

Doc
8  Using Arduino / Programming Questions / Re: Motion detection on: September 21, 2014, 11:01:59 pm
If you'd have provided the compiler output data... Perhaps this might have solved or provided enough more data... That might just have solved your issues..
This
Quote

But your program isn't working.

does nothing for anyone to try to give you some constructive advice as to where you need to change something...
But I'm sure You've already read this
http://forum.arduino.cc/index.php?topic=97455.msg731293#msg731293
And obviously #6 cannot apply to you...
Mr Google is the best friend a programmer or wannabe programmer could ever have...
It appears that you've not had the good fortune to really meet him... Try it and make it a habit prior to posting here to use it...
You'll be amazed at what you can learn... when/If you are willing to learn.

Docedison
9  Using Arduino / Microcontrollers / Re: Smaller substitute for Arduino uno on: September 20, 2014, 12:28:27 pm
My Teensy3.1's have no issues running any t85, Uno or any other Arduino code unless the code requires pins that aren't present on the teensy.
Most changes required either involve the 3.3 analog ports. (the digital ports are 5v tolerant) or adding port buffers to increase the drive current...
There are some other differences but those are more likely to deal with things like DMA functions or the two really neat and fast I2C ports that can operate @ 2+ MHz
Some time basic I wrote (borrowed) a tiny 85 sketch that makes a yellow led... flicker like a candle in a small breeze.
I changed the led pin to a PWM port and I have a  pretty little candle... with an ldr for daylight shutdowm sensing..
Having 256 k of flash, 64k of sram and 2k of Eeprom, full USB a 12 bit dac as well as using the large Arduino code base both .023 and 1.0+ versions is nice too.
That the board can be overclocked to 96 +  MHz from a 72 MHz default is nice also. The board will work to from 4, 8, 14, 24, 48 and 72 MHz where 96 MHz is a menu selectable over clock option... the board can go to 186 MHz with some small code changes, Too.
So the Teensy 3.1 @ $19.80 from PJRC or $17.00 from OSH Part is a nice fast and inexpensive board that is easy or better to use than  A 16 MHz Pro mini.
I don't recommend starting out with a teensy unless your basic  code skills are good however it's a good bridge between a Mega 2560 and  a Due.. and at the price, adding the cost of an Arduino compatible Uno style shield board... places It just below the cost of a Mega R3. and some of  the add-on boards support the use of the nRF24XX. Two 8 pin connectors, one for HW support and the other for bitbanged SPI... available from Tindie
It's a combination That's hard to beat...
One more thing is that there is a good forum for support of your your issues...   Too.

Doc
10  Development / Other Software Development / Re: Some new core functions on: September 19, 2014, 10:18:21 pm
@ westfw.
       +1
Thank You for posting a most relevant explanation of why less is more...
11  Using Arduino / General Electronics / Re: Soldering problem on: September 16, 2014, 03:36:23 am
"Ink" erasers work best.... with some care they are also good for cleaning certain types of connectors.

Doc
12  Using Arduino / General Electronics / Re: 3.3V simple vs zener on: September 16, 2014, 03:29:05 am
An MCP1702 would be a better choice.. Data sheet attached..

Doc
13  Using Arduino / Programming Questions / Re: Calculate Period Between Pulse on: September 15, 2014, 09:57:56 pm
This is I believe why you are seeing garbage, Albeit consistent garbage...
Code:
Serial.begin(96000);
... One too many zero's..

Doc
14  Using Arduino / Programming Questions / Re: Calculate Period Between Pulse on: September 15, 2014, 07:23:00 pm
I would suggest a copy paste error. As was pointed out:
Code:
This lines:
Code:
      (do period=(lastpulse-firstpulse)/RPMpulses)
      output period)

and

Code:
      (output zero)

Are not "Arduino language" so he don't understand they.
Makes no sense whatsoever.
There are one or more syntax errors on each and every line
Hint: the semicolon is used to end a line and your parentheses don't match... Each' (' requires a matching ')' .
You might explore your IDE a little more... You could get lucky and find both Ctrl T and the verify button
Ctrl T would have pointed out all of your errors that verify didn't...

Doc
15  Using Arduino / Programming Questions / Re: question on the 128X64 i2c OLED LCD LED blue/yellow Display. on: September 15, 2014, 07:00:03 pm
Two things... Did you put the library in the right place? and did you restart the IDE After you put the library in the right place?
failure to do both would generate the error you reported.

Doc
Pages: [1] 2 3 ... 197