Show Posts
Pages: 1 ... 20 21 [22] 23 24 ... 180
316  Using Arduino / Project Guidance / Re: IC pin 1 placement convention? on: June 29, 2014, 01:40:18 am
I keep all ICs facing the same direction with pin one on the bottom left.
I really haven't seen anyone reverse this in any of the images I have seen since 1974
317  Using Arduino / Project Guidance / Re: Do I really need that much RAM? on: June 29, 2014, 12:14:42 am
Quote
I just recently retired & I want to take up electronics as a hobby. I'm a newbie.
Congratulations.
You are going to have a lot of fun.
Quote
I'm leaning towards the Mega 2560
If you can afford it, I recommend you learn on an UNO, then move up to something bigger as you learn more.
Next get a Bobuino and maybe 2560 as you get more familiar with hardware.
It's nice to have the ability to replace the controller if you mess up as you can with the UNO and the Bobuino.
Take a look at Nick Gammon's web site for great information on programming and hardware.
http://www.gammon.com.au/scripts/forum.php?bbtopic_id=123


318  Using Arduino / General Electronics / Re: Question about tutorial on: June 28, 2014, 01:10:46 pm

http://electronics.stackexchange.com/questions/56210/what-is-ground-and-what-does-it-do
319  Using Arduino / General Electronics / Re: CONFUSING RELAY TO RELAY CONNECTION on: June 28, 2014, 02:30:03 am
Put it in a pdf/png/jpg etc.
320  Using Arduino / General Electronics / Re: Temperature sensor voltage divider on: June 28, 2014, 02:27:58 am
You could try a series silicon diode ( drops .6 to .7 volts).
4.2 - .6 = 3.6 volts or 3.5 volts if you use .7
321  Using Arduino / General Electronics / Re: Turn the LED on when the switch is open on: June 27, 2014, 11:27:14 pm
What is the problem?
You may have to lower the base resistor value to get it to work. Maybe 1000 ohms.

322  Using Arduino / Project Guidance / Re: Does a board like this exist? on: June 27, 2014, 12:46:49 am
Good point Michael!
323  Using Arduino / Project Guidance / Re: Does a board like this exist? on: June 27, 2014, 12:38:50 am
Have you looked at the Arduino Nano.
Lots on eBay.
324  Using Arduino / Programming Questions / Re: Bunny Feeder on: June 27, 2014, 12:33:57 am
Make sure you check the food level is going down or you may end up with a skinny bunny  smiley-wink
325  Using Arduino / Programming Questions / Re: Delay Function on: June 26, 2014, 11:58:53 pm
Here is something you might want to look at:

Code:
const unsigned long TaskAtime  = 25*60*1000UL;  //Runs TaskA every 25 minutes
const unsigned long TaskBtime  = 1000UL; //Runs TaskB every 1 second
const unsigned long TaskCtime  = 2000UL; //Runs TaskC every 2 seconds
const unsigned long TaskDtime  = 4000UL; //Runs TaskD every 4 seconds

unsigned long TimeA;                     //Times up, Task A time
unsigned long TimeB;                     //Times up, Task B time
unsigned long TimeC;                     //Times up, Task C time
unsigned long TimeD;                     //Times up, Task D time
// etc.



//==========================================================
void setup()
{
  TimeA = millis();                      //Initailize 
  TimeB = TimeA;                         //Initialize
  TimeC = TimeA;                         //Initialize
  TimeD = TimeA;                         //Initialize

  pinMode(13,OUTPUT);                    //
  pinMode(12,OUTPUT);                    //
  pinMode(11,OUTPUT);                    //
  pinMode(10,OUTPUT);                    //

} //        >>>>>>>>>>>>>> END OF setup() <<<<<<<<<<<<<<<<<


void loop()
{
  unsigned long millisNow = millis();

  //==================
  if (millisNow - TimeA >= TaskAtime) //Is it time to run Task A?
  {
    TimeA = millis();                 //Re-initialize
    TaskA();
  }

  //==================
  if (millisNow - TimeB >= TaskBtime) //Is it time to run Task B?
  {
    TimeB = millis();                 //Re-initialize
    TaskB();
  } 

  //==================
  if (millisNow - TimeC >= TaskCtime) //Is it time to run Task C?
  {
    TimeC = millis();                 //Re-initialize
    TaskC();
  } 

  //==================
  if (millisNow - TimeD >= TaskDtime) //Is it time to run Task D?
  {
    TimeD = millis();                 //Re-initialize
    TaskD();
  } 

  //==================

  //Other stuff goes here


} //        >>>>>>>>>>>>>> END OF loop() <<<<<<<<<<<<<<<<<



// FUNCTIONS
//==========================================================

void TaskA()
{
    //Put your code that runs every 25 minutes in this function
    //for example, flash a LED
  digitalWrite(13,!digitalRead(13));   //Toggle pin 13
  //Other stuff

}

//==================
void TaskB()
{
  digitalWrite(12,!digitalRead(12));   //Toggle pin 12
  //Other stuff

}

//==================
void TaskC()
{
  digitalWrite(11,!digitalRead(11));   //Toggle pin 11
  //Other stuff

}

//==================
void TaskD()
{
  digitalWrite(10,!digitalRead(10));   //Toggle pin 10
  //Other stuff

}


//======================================================================
//                             END OF CODE
//======================================================================
326  Using Arduino / Project Guidance / Re: Whiskey dispenser on: June 26, 2014, 06:08:12 pm
Quote
Equal to mine sugestion
Food Safe?
327  Using Arduino / General Electronics / Re: Basic electronics on: June 26, 2014, 06:03:46 pm
Search YouTube for videos.
328  Using Arduino / Project Guidance / Re: Whiskey dispenser on: June 26, 2014, 05:16:35 pm
https://www.sparkfun.com/products/12915
329  Using Arduino / Project Guidance / Re: couple simple questions for designs on: June 26, 2014, 05:10:45 pm
Quote
can one '104' film cap (or whatever size needed) be used by all pins or does each need separate bypass caps?
One for each pin.
330  Using Arduino / Audio / Re: How to create an audio switch? on: June 25, 2014, 10:01:59 pm
See:
http://datasheet.octopart.com/H11F1M-Fairchild-datasheet-529884.pdf
Pages: 1 ... 20 21 [22] 23 24 ... 180