Show Posts
Pages: 1 2 3 [4] 5 6 ... 167
46  Using Arduino / General Electronics / Re: How to use POTs on Arduino without over heating? on: July 12, 2014, 11:28:50 pm
Pot must be wired wrong in your setup.
Show us a picture.
47  Using Arduino / Microcontrollers / Re: New 1284P format - 1284OnTop, Bobweeny? on: July 12, 2014, 11:23:41 pm
Quote
I guess that'd be an option. Seems like it'd be an extra layer of mechanical stuff you didn't really need tho.
A bit ugly too.

Quote
Except what's with the reset switch mounted under the chip, how useful will that be?
Use a small screw driver, could mount the switch on the bottom too.
Full access if the Bobweeny is on the top of the 1284.

The pins of the wire wrap socket make it very easy to clip a logic analyzer to.
48  Using Arduino / Microcontrollers / Re: New 1284P format - 1284OnTop, Bobweeny? on: July 12, 2014, 10:51:51 pm
- This will make using the 1284 and a bread board much neater since the support circuitry is already connected to the 1284!
- Be interesting to see an example plugged on the top of the 1284.
- I guess you could first solder a socket on top of the 1284 then plug the Bobweeny into the socket.
- Also would be a good way to make a 1284 standalone PCB less complicated to design since the support circuitry is already connected.

Looks good!

Edit:  using one in a wire wrap project also makes your project much neater.
49  Using Arduino / Programming Questions / Re: Relay not activating – help please on: July 10, 2014, 06:05:04 pm
Wire wrap is one option you may find doable.
http://www.gammon.com.au/forum/?id=11109
50  Using Arduino / Programming Questions / Re: Problem with push button reset: (update) reset fixed but button issues. on: July 09, 2014, 11:47:48 pm
"Blink without delay" is your friend.
Try:
Code:
const int  buttonPin = 2;    
const int led1 = 3;
const int led2 = 5;
const int led3 = 6;
const int led4 = 9;
const int led5 = 10;
unsigned long lastTime;

// Variables will change:
int buttonPushCounter = 0;  
int buttonState = 0;        
int lastButtonState = 0;    
int buttonPushCounterMax = 6;

void setup() {

  pinMode(buttonPin, INPUT_PULLUP);
  pinMode(led1, OUTPUT);
  pinMode(led2, OUTPUT);
  pinMode(led3, OUTPUT);
  pinMode(led4, OUTPUT);
  pinMode(led5, OUTPUT);


  Serial.begin(9600);
}


void loop()
{
  if (millis() - lastTime >= 50 ) //filters out bounces
  {
    lastTime = millis();
    buttonState = digitalRead(buttonPin);  
    if (buttonState  != lastButtonState)  
    {    
      lastButtonState = buttonState;

      if(buttonState == 1)  
      {
        Serial.print("number of button pushes:  ");
        Serial.println(buttonPushCounter);
        buttonPushCounter++;  
        switch (buttonPushCounter)
        {
        case 1:
          digitalWrite(led1, HIGH);  /* if buttonPushCounter is 1 led 1 goes on and so forth */
          break;

        case 2:
          digitalWrite(led2, HIGH);
          digitalWrite(led1, LOW);
          break;

        case 3:
          digitalWrite(led3, HIGH);
          digitalWrite(led2, LOW);
          break;

        case 4:
          digitalWrite(led4, HIGH);
          digitalWrite(led3, LOW);
          break;

        case 5:
          digitalWrite(led5, HIGH);
          digitalWrite(led4, LOW);
          break;

        case 6:
          digitalWrite(led5, LOW);  
          buttonPushCounter = 0;  // reset to 0 after 6 pushes
          break;
        }
      }
    }    
  }
}     /* end of function void loop()  */

51  Using Arduino / Programming Questions / Re: Problem with push button reset: (update) reset fixed but button issues. on: July 09, 2014, 09:04:48 pm
Printing is a non block function.
52  Using Arduino / Programming Questions / Re: Problem with push button reset: (update) reset fixed but button issues. on: July 09, 2014, 08:04:21 pm
Remember, switches bounce when you press and release them.
53  Using Arduino / Programming Questions / Re: ah man Noob asking a question again... on: July 09, 2014, 06:44:30 pm
Fentrac please use code tags.
I would add:
pinMode(buttonPin,  INPUT_PULLUP);
You are going to add some de-bounce code to filter out contact bounce.
54  Using Arduino / Motors, Mechanics, and Power / Re: How to prevent servos from breaking on: July 09, 2014, 06:14:56 pm
I have used servos from here:
http://www.hobbyking.com/hobbyking/store/__84__189__Servos_Parts-All_Servos.html
You have to consider what torque need of course.
55  Using Arduino / Project Guidance / Re: reading 24v input from multiple production presses on: July 09, 2014, 06:04:05 pm
Quote
but if not then the optocoupler approach would enable you to keep them electrically isolated.
From what you describe, this is how I would do it.
56  Using Arduino / General Electronics / Re: Reading voltage - Product already exists?? on: July 09, 2014, 06:01:41 pm
The Arduino will do this, it has an A/D converter onboard.
What voltages do you need to measure?
57  Using Arduino / General Electronics / Re: Power jack for arduino prototyping on: July 09, 2014, 05:52:07 pm
Quote
power the the processor with 12V DC.
+12 anode of 1N4007 cathode to 7805 regulator input, 7805 regulator output is +5V.
Of course you will power the 7805 with 12V and feed the o/p of the 7805 to the processor VCC(7) and AVcc(20) .
Aref(21) to 100nf to ground.
VCC(7) to 100nF to ground.
AVcc(20) to 100nF to ground.
58  Using Arduino / Programming Questions / Re: ah man Noob asking a question again... on: July 09, 2014, 05:31:17 pm
And your question is?
if (buttonPushCounter == 0);  <------- no ;
This isn't very functional.

Have you learned about "switch case"
59  Using Arduino / General Electronics / Re: Power Issue on: July 09, 2014, 05:28:40 pm
Quote
what orientation
Yes, majenko, OP shows it backwards.

Use a 7805!
60  Using Arduino / General Electronics / Re: Using a 4 digit 7 segment display on: July 09, 2014, 05:23:39 pm
I always use the MAX7219 (can drive 8 digits however these are common cathode displays).
Very easy to use with https://www.sparkfun.com/products/12710
Pages: 1 2 3 [4] 5 6 ... 167