Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 411
61  Using Arduino / Installation & Troubleshooting / Re: Cannot open Serial monitor on: July 14, 2014, 09:09:09 pm
1.5.x is beta.
62  Using Arduino / Installation & Troubleshooting / Re: Cannot open Serial monitor on: July 14, 2014, 08:08:12 pm
Next time, post that kind of thing with code tags [code][/code].

Have you tried adding a last.serial.location? 

Like last.serial.location=455,469,500,500
63  Using Arduino / Installation & Troubleshooting / Re: Uploaded Boards not showing in Arduino 1.5.7 BETA on: July 14, 2014, 06:36:37 pm
This removed 1.0.5 of course.
It did?  How? 

I find that all other boards I have installed (Pro Mini, Pro Micro and Attiny) have disappeared.
Did you update the 1.5.x's boards.txt file with the boards you've "installed"?
64  Using Arduino / Installation & Troubleshooting / Re: Why is my arduino not uploading? on: July 14, 2014, 06:33:07 pm
Are you changing the board type to match the bootloader of the chip/board you are using?
65  Using Arduino / Installation & Troubleshooting / Re: Multiple arduino a on: July 14, 2014, 06:32:11 pm
Each will be on a different "COM" port correct? 
Yes.  Your operating system (you didn't say which) will assign each board a new port name.
66  Using Arduino / Installation & Troubleshooting / Re: Cannot open Serial monitor on: July 14, 2014, 06:30:46 pm
The preferences dialog should have a path to the preferences file, follow that and open it.

Look for last.serial.location.  Make sure it has sane values like

455,469,500,500
67  Using Arduino / Programming Questions / Re: Displaying resistance of a thermistor on: July 14, 2014, 10:29:01 am
But in the second line I want to show the resistance at the same time and I have no idea how to manage this...
"No idea"?   michinyon already explained the math

The analog voltage v is going to be   5 volts x (  10k /  ( 10k + R ) )

where R is the value of the thermistor resistance at the particular time.

Therefore   R  =   ( (10k x 5 volts) / analog voltage ) - 10k 
So now you just have to get the analog voltage and do the math.

Option #1:  The simplest (but not most accurate method) would be to replace "analog voltage" with another analogRead.

Then you just do the math in code exactly like it is written:
float R = ((10000.0 * 5.0) / analogRead(0)) - 10000.0;

Now you can add some print code to the PrintTemp() function.



Option #2:  Move the anlaogrRead() out of the function Thermister() and then call Thermister
I would change PrintTemp() to be this way, instead of as-written:

Code:
double fTemp;
  int thermValue = analogRead(0);  // get one analogReading
  double temp = Thermister(thermValue);  // Read sensor with the stable reading
  float R = ((10000.0 * 5.0) / analogRead(0)) - 10000.0;  // calculate resistance value
 // later on inside of the function, add the code to print the value R.


68  Using Arduino / Installation & Troubleshooting / Re: Arduino Upload Problem Mac OSX 10.8.4 on: July 14, 2014, 08:26:59 am
I just tried to download the beta version of the Arduino software (Arduino 1.5.7 BETA (with support for Arduino Yún and Arduino Due boards)). This seemed to work without any problem

 I have no idea why the release version or previous release versions do not work.
Because the Due wasn't supported before 1.5.x.
69  Using Arduino / Installation & Troubleshooting / Re: Cannot open Serial monitor on: July 14, 2014, 08:23:25 am
What operating system are you using?
70  Using Arduino / General Electronics / Re: How to use a resistive touch screen on: July 01, 2014, 08:21:43 am
with my tester the resistance, and its value changes between 0.737 mA and 0.743 mA.
So you put your meter into resistance measurement, and it gave you values in milliamps?  Milliamps are current, not resistance.

Resistive touchscreens are pretty complicated.  You may want to use a touchscreen controller, that you interface to the Arduino (instead of the touchscreen itself).  This the first one I found searching google for "resistive touchscreen controller."

http://ww1.microchip.com/downloads/en/devicedoc/41393a.pdf
71  Community / Bar Sport / Re: Post your code on: June 01, 2014, 01:24:34 pm
Glad you guys like it. 

I really feel Mike did the hard part.  smiley-wink
72  Using Arduino / General Electronics / Re: problem in getting the desired output on: June 01, 2014, 09:14:52 am
Make your life simple and use the internal pullup.

Connect your push button like this picture:


And then change your code to:
Code:
int switchpin=8;
int led=13;

void setup()
{
  pinMode(switchpin,INPUT_PULLUP);  //enables internal pull-up resistor
  pinMode(led,OUTPUT);
  digitalWrite(led,HIGH);
}

void loop()
{
  boolean button=digitalRead(switchpin);
  digitalWrite(led, !button);
}
73  Using Arduino / General Electronics / Re: problem in getting the desired output on: May 31, 2014, 07:31:08 pm
In addition to Mike's excellent guide... I have a write-up with videos that show what's happening, on an oscilloscope.

http://www.baldengineer.com/tutorials/arduino-pull-ups/
74  Using Arduino / General Electronics / Re: How is the state of a GPIO pin detected? on: May 31, 2014, 08:13:38 am
in other words, how does the IC detect that the pin is connected to  a certain voltage range?
Look at the diagram posted by Jack.  It's a representation of what is behind a pin.,

From the left box that says "Pin" moving to the right, you first see the pull-up resistor and then a path "down".

The path goes through a mux (I think?) and then into diode symbol which is known as a Schmitt trigger.  That circuit is a comparator circuit that will output only two voltages while accept a range of input voltages.  This is where the ranges of "high" and "low" come in, which Mike provided. 

The rest of the circuit is used to "clock in" the voltage provided by the schmitt trigger.

You can find out more about them here:  http://en.wikipedia.org/wiki/Schmitt_trigger
75  Community / Bar Sport / Re: Post your code on: May 31, 2014, 07:53:19 am
Now, any one fancy doing a bouncing ball video for this?
Here you go Mike.

I started with the bouncing ball idea and went a step further.

https://www.youtube.com/watch?v=tdQL_7osGzc
Pages: 1 ... 3 4 [5] 6 7 ... 411