Show Posts
Pages: 1 ... 60 61 [62] 63 64 ... 196
916  Using Arduino / Project Guidance / Re: Mosfet getting hot and motor vibrating using a 3.6v motor. on: October 08, 2013, 02:07:33 pm
Its getting hot because it is not fully turning on. The gate needs to be at 10 volts to be fully on.
917  Using Arduino / Project Guidance / Re: Mosfet getting hot and motor vibrating using a 3.6v motor. on: October 08, 2013, 01:20:25 pm
Ok I see what your saying, based on this data sheet, Vgs needs to be at 10 volts to be fully on. However it should let the current at least trickle at 5 volts. I curious as to what kit this is.
918  Using Arduino / Project Guidance / Re: 3 Axis Motorized Camera Slider/Dolly on: October 08, 2013, 12:59:19 pm
What's the LCD screen for, adjusting the steppers? The Due is fine and you will want to go on eBay for the LCD, there are many to choose from. Make sure your LCD comes with a shield too.
919  Using Arduino / Project Guidance / Re: 3 Axis Motorized Camera Slider/Dolly on: October 08, 2013, 04:21:16 am
Ok, as I am unable to sleep, I might as well help.
The solution your looking for is Stepper motors. Steppers give you great control and with the aid of a stepper library, they can be controlled quite easily.

Hardware:
You want to look on either eBay, adafruit, or even RadioShack, and do a search for a 2 wire stepper controller. Each controls one stepper, so you'll need three. Also an Arduino of your choice, will of course be needed.

The video capture:
Note, an arduino can not do any kind of video capturing or video analysis. Either use a regular camera with a mount, or maybe look into a Raspberry Pi. 
920  Using Arduino / Project Guidance / Re: Mosfet getting hot and motor vibrating using a 3.6v motor. on: October 08, 2013, 02:18:20 am
I'm looking at the datasheet but not really sure which figure I need. Here's a link to it:

http://arduino.cc/documents/datasheets/MOS-irf520npbf.pdf

It was supplied with the arduino starter kit so I think it should be fine, shouldn't it?
No!
Looks like it needs 10 volts on the gate to turn it on!

What are you looking at, certain not the gate threshold voltage, which say Min 2V and Max 4V.

An arduino starter kit would not come with a MOSFET that requires an additional transistor and a voltage source of over 10 volts. What appears to be happening here is the drain voltage is less than the gate voltage, so no current is flowing. The drain needs to be higher than the gate, at least 6 volts to work correctly.
921  Using Arduino / Project Guidance / Re: Daft Punk Thomas helmet programming on: October 08, 2013, 01:48:20 am
Don't worry about the pins, your code wont be using them. Its just a way to identify what board you might need based on the pins the code calls for.

Post your code and any links you have.
922  Using Arduino / Project Guidance / Re: Daft Punk Thomas helmet programming on: October 08, 2013, 01:40:54 am
As long as it is not looking for pins 20 - 53, you can use any Arduino,  but if it does call for those pins, then you need a mega.
The MAX7219CNG chip uses SPI, so that means you can use any Arduino. Where are you planning to store the Arduino, in a power pack or inside the helmet? This will tell you what size Arduino to get, Nano, Mini or Micro.
923  Using Arduino / Project Guidance / Re: Hey, need some help on where to start programming! (Balancing Bot) on: October 06, 2013, 09:43:28 pm
Whatever materials you want to use it up to you, its your call. Personally I would start with wood, so if something breaks, you could easily replace it. But like I said its your call.

Don't forget to thank everyone else who helped too.
924  Using Arduino / Project Guidance / Re: Hey, need some help on where to start programming! (Balancing Bot) on: October 06, 2013, 07:06:43 pm
In replace of pinMode(M1EN, INPUT), it should.
925  Using Arduino / Project Guidance / Re: Hey, need some help on where to start programming! (Balancing Bot) on: October 06, 2013, 05:38:59 pm
I don't know anything about that library but, this does not look correct.
Quote
  pinMode(M1EN, OUTPUT);      // Sets the pin to an output.           OK
  digitalWrite(M1EN, LOW);    // Makes pin low and disables motor.   OK
  delay(1500);                                                                                              OK I guess for a test, not good for full code
  pinMode(M1EN, INPUT);       // Enables motor so it can run.             This does not look right, this sets the pin to be read, it does not set it HIGH to enable the motor.
926  Using Arduino / Project Guidance / Re: Controlling 2 wire stepper motor via Arduino on: October 05, 2013, 11:54:29 pm
What your describing sounds like the MotorKnob example, where the stepper will follow the pot as it rotates. You can use the map function to show the degree of rotation on a display.
927  Using Arduino / Programming Questions / Re: Display battery state of charge graphic on LCD on: October 05, 2013, 10:03:29 pm
You could use the Createchar function.

This is my method for my bar graph.
Code:
// Simple LCD Bar Graph
// By: Andrew Mascolo

#include <Wire.h>
#include <LiquidCrystal_I2C.h>
uint8_t bar0[8]  = {
  0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0};
uint8_t bar1[8]  = {
  0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10};
uint8_t bar2[8]  = {
  0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18};
uint8_t bar3[8]  = {
  0x1C,0x1C,0x1C,0x1C,0x1C,0x1C,0x1C,0x1C};
uint8_t bar4[8]  = {
  0x1E,0x1E,0x1E,0x1E,0x1E,0x1E,0x1E,0x1E};
uint8_t bar5[8]  = {
  0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F};
int i,j=0, number=1;

LiquidCrystal_I2C lcd(0x20,20,4);  // set the LCD address to 0x20 for a 16 chars and 2 line display

void setup()
{
  Serial.begin(9600);
  lcd.init();                      // initialize the lcd
  lcd.backlight();
  lcd.createChar(0, bar0);
  lcd.createChar(1, bar1);
  lcd.createChar(2, bar2);
  lcd.createChar(3, bar3);
  lcd.createChar(4, bar4);
  lcd.createChar(5, bar5);
  lcd.home();
  lcd.print("Hello world...");
  delay(1000);
}

void loop()
{
  bargraph(analogRead(A6),1,20);
  //bargraph(analogRead(A6),3,20);
}

void bargraph(unsigned int data, unsigned int row, unsigned int lcd_size)
{
  j = map(data, 0, 1023, 0, (6 * lcd_size));
  if(number <= j)
  {
    for(number; number < j; number++)
    {
      i = number / 6;
      lcd.setCursor(i,row);
      lcd.write(number % 6);
    }
  }
  else
  {
    for(number; number > j; number--)
    {
      i = number / 6;
      lcd.setCursor(i,row);
      lcd.write(number % 6);
    }
  }
  //Serial.print(number);
  // Serial.print(" ");
   //Serial.println(i);
}

You can modify it however you like.
928  Using Arduino / Programming Questions / Re: Display battery state of charge graphic on LCD on: October 05, 2013, 07:52:58 pm
Your minimum and maximum numbers are too small. Multiply vin by 10 and then typecast it as an INT, so instead of 9.3 and 12.6, it will 93 and 126.
Code:
int number = 93;

void setup()
{
Serial.begin(9600);

while( number < 127)
  {
    Serial.print(number);
    Serial.print(" mapped: ");
    Serial.println(map(number, 93, 126, 0, 15));
    number ++;
    delay(100);
  }
}

void loop() {
 
}


This code produces this: Nice and smooth.
Quote
93.00 mapped: 0
94.00 mapped: 0
95.00 mapped: 0
96.00 mapped: 1
97.00 mapped: 1
98.00 mapped: 2
99.00 mapped: 2
100.00 mapped: 3
101.00 mapped: 3
102.00 mapped: 4
103.00 mapped: 4
104.00 mapped: 5
105.00 mapped: 5
106.00 mapped: 5
107.00 mapped: 6
108.00 mapped: 6
109.00 mapped: 7
110.00 mapped: 7
111.00 mapped: 8
112.00 mapped: 8
113.00 mapped: 9
114.00 mapped: 9
115.00 mapped: 10
116.00 mapped: 10
117.00 mapped: 10
118.00 mapped: 11
119.00 mapped: 11
120.00 mapped: 12
121.00 mapped: 12
122.00 mapped: 13
123.00 mapped: 13
124.00 mapped: 14
125.00 mapped: 14
126.00 mapped: 15

whereas the other only showed (0, 5, 10, 15).
929  Using Arduino / Programming Questions / Re: Display battery state of charge graphic on LCD on: October 05, 2013, 06:58:14 pm
What kind of display? 16x2, or an actual TFT 3.2" display?

You can use the same method I made here. LCD Bargraph You can create your custom characters, and display them as so.
930  Using Arduino / Project Guidance / Re: Daft Punk Thomas helmet programming on: October 05, 2013, 06:25:05 pm
8x40? My friend made his wrong then, HA.
Did you try the library LED Matrix, it has some examples you can play with. I don't think anyone posted a full working code, but its worth a shot to look.
Pages: 1 ... 60 61 [62] 63 64 ... 196