Show Posts
Pages: 1 ... 10 11 [12] 13 14 ... 34
166  Using Arduino / Project Guidance / Re: Reading output from LEGO NXT to Arduino on: December 02, 2013, 04:44:16 am
The NXT and the Arduino can be made to talk over I2C.  In this tutorial, we setup the Arduino as an I2C slave, and the NXT as an I2C master.
167  Using Arduino / Project Guidance / Re: Float Number Calculation on: December 02, 2013, 12:50:32 am
You can used this

lat1_d=(float) lat1_d1*10+lat1_d2;

or this
lat1_d=(float) lat1_d1*10+lat1_d2;

168  Using Arduino / General Electronics / Re: 5V Regulator on: December 01, 2013, 08:49:30 pm
If you need Linear Regulator with 3A, you may try LT1085

but charging iPhone need higher then 5V, like 5.25V,

for high current like 3A, i would suggest go for a switching regulator.
169  Using Arduino / Project Guidance / Re: Arduino Uno Powers Off on: December 01, 2013, 02:15:04 am
RedBoard using LM1117 Regulator can supply 800mA, each motor draw 170mA no load, the power of the RedBoard should not off.
so you may some where have short circuit in your connection, please use multi-meter to check your connections.
or your battery is low in charge.
170  Using Arduino / Project Guidance / Re: Software Serial Question on: November 30, 2013, 11:31:35 pm
171  Using Arduino / LEDs and Multiplexing / Re: SINGLE 3 DIGIT 7 SEGMENT LED on: November 30, 2013, 02:40:16 am
i think i got it.. took me some time..

if that's right, now i need to know how to connect the chip to arduino and find some temp code just to see it working.. i didn't connect DP (3) because i will not be using it.

max7219 pins 4 & 9 are ground and 19 is power

arduino pin 12 is connected to the MAX7219 pin 1
arduino pin 11 is connected to the CLK pin 13
arduino pin 10 is connected to LOAD pin 12

i have my 3 buttons in place, just gotta connect them.. just need demo code to see it count or something so would someone would be so kind so i get to test this thing out please

The connection to MAX7219 is SPI, if you used Mega board then the connection will be
arduino pin 50 is connected to the MAX7219 pin 1
arduino pin 51 is connected to the CLK pin 13
arduino pin 53 is connected to LOAD pin 12

i'm new and have not used SPI yet, probably don't plan to.. if you the exact pins to use please let me know.. otherwise i'll just wait for some normal code

To talk to MAX7219 you have used SPI, this was the code used to control the MAX7219, what "normal code" you talking?
172  Using Arduino / Project Guidance / Re: Time Dependent Momentary Push Button Action on: November 30, 2013, 12:46:16 am
Your input on Pin 1 will have some problem, because it used as Tx pin for serial.
Try to get another pin as input.
173  Using Arduino / LEDs and Multiplexing / Re: SINGLE 3 DIGIT 7 SEGMENT LED on: November 30, 2013, 12:19:51 am
I saw you are using Arduino Mega which have a different pins for SPI
please check here

Here are the code to test the MAX7219
#include <SPI.h>

const byte MAX7219_REG_NOOP        = 0x0;
// codes 1 to 8 are digit positions 1 to 8
const byte MAX7219_REG_DECODEMODE  = 0x9;
const byte MAX7219_REG_INTENSITY   = 0xA;
const byte MAX7219_REG_SCANLIMIT   = 0xB;
const byte MAX7219_REG_SHUTDOWN    = 0xC;
const byte MAX7219_REG_DISPLAYTEST = 0xF;

void sendByte (const byte reg, const byte data)
  digitalWrite (SS, LOW);
  SPI.transfer (reg);
  SPI.transfer (data);
  digitalWrite (SS, HIGH);
  }  // end of sendByte
void setup ()
  SPI.begin ();
  sendByte (MAX7219_REG_SCANLIMIT, 2);      // show 3 digits
  sendByte (MAX7219_REG_DECODEMODE, 0xFF);  // use digits (not bit patterns)
  sendByte (MAX7219_REG_DISPLAYTEST, 0);    // no display test
  sendByte (MAX7219_REG_INTENSITY, 7);      // character intensity: range: 0 to 15
  sendByte (MAX7219_REG_SHUTDOWN, 1);       // not in shutdown mode (ie. start it up)
}   // end of setup
void number (const int num)
 char buf [4];
 sprintf (buf, "%3i", min (max (num, 0), 999));
 // send all 3 digits
 for (byte digit = 0; digit < 3; digit++)
   byte c = buf [digit];
   if (c == ' ' )
     c = 0xF;  // code for a blank
     c -= '0';
   sendByte (digit + 1, c); 
  }  // end of number
unsigned int i;

void loop ()
 number (i++);
 delay (100);
 }  // end of loop
174  Using Arduino / Project Guidance / Re: Temperature pid controller using arduino on: November 29, 2013, 12:49:49 pm
175  Using Arduino / Project Guidance / Re: 100 Year Long Tone? on: November 29, 2013, 04:55:37 am
I don't get it on the  "100 year long tone"?
Is the tone sound for 100 year? or to sound the tone once in 100 year?
176  Using Arduino / General Electronics / Re: Adding power to a DC signal on: November 26, 2013, 09:48:05 am
You can use LM317 adjustable-voltage regulator
177  Using Arduino / Project Guidance / Re: Speech recognition on: November 24, 2013, 09:57:23 am
EasyVR was out of stock, you may take a look on this
178  Using Arduino / General Electronics / Re: beginner resistor question on: November 24, 2013, 02:22:52 am
Learn more about the apple charging
179  Using Arduino / Project Guidance / Re: How would/could I interface these current transducers to an arduino? on: November 24, 2013, 12:33:13 am
If you still want to used the current sensor you salvage, here is the dual power supply

Converters DC/DC 1.5W DUL 5V +-12V PCB

and here is the ADC that able to read the +-4V and talk to arduino by I2C.

The LTC®2453 is an ultra-tiny, fully differential, 16-bit, analog-to-digital converter. The LTC2453 uses a single 2.7V to 5.5V supply and communicates through an I2C interface.
180  Using Arduino / Project Guidance / Re: Powering an Autonomous Parking Car on: November 23, 2013, 08:25:05 am
May be 6 X AA batterys.
Pages: 1 ... 10 11 [12] 13 14 ... 34