Show Posts
Pages: [1]
1  Topics / Education and Teaching / Re: willing to exchange experiences of teaching Arduino on: June 17, 2012, 05:25:36 pm
I am just starting to learn Arduino, i have read 30 arduino projects for the evil genius by Simon Monk and i find it immensely useful for learning. Now i don't know what to do. Is there another book i can buy to learn more? or what would be your learning suggestions?
2  Using Arduino / Programming Questions / Re: Help me figure this out (noobie problem) on: June 17, 2012, 12:56:43 am
Thanks, i got it going now but unfortunately it just comes on soon as the arduino starts. did i miss something here? i thought the if command would only run redIntensity 255 when the sensorvalue is over 255. (i started it at 0 and the potentiometer reads 0 in the serial window.

I intended the Red LED to turn on when i got about a 1/4 turn (255) from my potentiometer....
3  Using Arduino / Programming Questions / Help me figure this out (noobie problem) on: June 17, 2012, 12:35:35 am
Hey guys, i am playing with my arduino board and trying to get my potentiometer to turn on my RBG LED's red light (was going to eventually try to get it to go through all the colors as i rotate the potentiometer but thats a long ways away yet) and i keep getting a error when i try to compile it, i can't figure it out. Wondering if perhaps one of the more experienced persons can help me figure out whats going on here.

Heres my little project
Code:
const int RED_LED_PIN = 9;
const int GREEN_LED_PIN = 10;
const int BLUE_LED_PIN = 11;
const int DISPLAY_TIME = 100;

int redIntensity = 0;
int greenIntensity = 0;
int blueIntensity = 0;


int sensorPin = A5;
int sensorValue = 0;

void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
}

// the loop routine runs over and over again forever:
void loop() {
  // read the input on analog pin 0:
  sensorValue = analogRead(sensorPin);
  // Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V):
if (sensorValue < 255);
redIntensity = 255

analogWrite(RED_LED_PIN, redIntensity);
}
// print out the value you read:
  Serial.println(sensorValue);
}

and my error is this
Code:
ReadAnalogVoltagefxkk.cpp: In function 'void loop()':
ReadAnalogVoltagefxkk:35: error: expected `;' before 'analogWrite'
ReadAnalogVoltagefxkk.cpp: At global scope:
ReadAnalogVoltagefxkk:38: error: expected constructor, destructor, or type conversion before '.' token
ReadAnalogVoltagefxkk:39: error: expected declaration before '}' token
4  Using Arduino / Project Guidance / Re: Temperature Controlled fan. on: June 11, 2012, 10:00:22 pm
Alright so now i am going to be looking for a DC fan, can i ask why (as simply as you can) AC would be more difficult than DC?

appreciate the help immensely, i get overwhelmed quiet often when i try to google something.
5  Using Arduino / Project Guidance / Re: Temperature Controlled fan. on: June 11, 2012, 06:59:33 pm
I would prefer to make it myself so i can learn more. also it would have to measure up to 500f for food cook temps.

(maybe i could save money making them myself?)

Could you explain to me what a shield is?
6  Using Arduino / Project Guidance / Temperature Controlled fan. on: June 11, 2012, 03:54:45 pm
Hey guys, i am looking to fabricating big drum smokers for my local community but i would like to know what is needed just as a parts list for building a Fan controlled by a temperature sensor. E.G. Temperature drops below 200f and temperature is set to 200f the board would start feeding power to a fan with speed of the fan corresponding to how far the temperature has dropped from its set point. turning off once hitting or exceeding the set temperature point.  (also, how can i control fans that pull like 5 amps with a arduino board?) 


I got a Uno board, and i've been playing with it but to my understanding the kit i bought was just for figuring out how electronics work then its just soldering parts onto cheap breadboard to manufacture the finished product.

I am still very very new to arduino so if anyone can help me with my questions or even just to clarify what arduinos can/are used for it would be much appreciated.

7  Using Arduino / Sensors / TMP36 Temperature Sensor questions. on: June 08, 2012, 07:12:25 pm
Hey guys, i am brand new to all this but i bought a Inventors kit from robotshop.ca and i was following the guide for putting together temperature recording layout when i went to watch the temperature the numbers are this:
303.03
258.11
224.41
194.63
169.24
148.73
132.62
119.92
109.67
100.88
94.04
89.65
87.21
85.74
85.25
85.25
86.72
88.18
89.65
90.63


now i know for a fact that my temperature inside is currently sitting a 74.4f but this sensor doesn't dip below 80..... and it varies so much i have the feeling its broken or what i am looking at is not infact the temperature....  i just wanted to get some feedback as this is a critical area for me to learn (i plan on building a temperature sensor that controls a fan).

Heres the code it is running, again i am a complete noobie so i have no idea what to look for yet.


/*     ---------------------------------------------------------
 *     |  Arduino Experimentation Kit Example Code             |
 *     |  CIRC-10 .: Temperature smiley-small (TMP36 Temperature Sensor) |
 *     ---------------------------------------------------------
 *   
 *  A simple program to output the current temperature to the IDE's debug window
 *
 *  For more details on this circuit: http://tinyurl.com/c89tvd
 */

//TMP36 Pin Variables
int temperaturePin = 0; //the analog pin the TMP36's Vout (sense) pin is connected to
                        //the resolution is 10 mV / degree centigrade
                        //(500 mV offset) to make negative temperatures an option

/*
 * setup() - this function runs once when you turn your Arduino on
 * We initialize the serial connection with the computer
 */
void setup()
{
  Serial.begin(9600);  //Start the serial connection with the copmuter
                       //to view the result open the serial monitor
                       //last button beneath the file bar (looks like a box with an antenae)
}
 
void loop()                     // run over and over again
{
 float temperature = getVoltage(temperaturePin);  //getting the voltage reading from the temperature sensor
 temperature = (temperature - .5) * 100;          //converting from 10 mv per degree wit 500 mV offset
                                                  //to degrees ((volatge - 500mV) times 100)
 Serial.println(temperature);                     //printing the result
 delay(1000);                                     //waiting a second
}

/*
 * getVoltage() - returns the voltage on the analog input defined by
 * pin
 */
float getVoltage(int pin){
 return (analogRead(pin) * .004882814); //converting from a 0 to 1023 digital range
                                        // to 0 to 5 volts (each 1 reading equals ~ 5 millivolts
}
Pages: [1]