Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 405
61  Using Arduino / General Electronics / Re: guide of different circuits, anyone? on: March 07, 2014, 09:21:37 am
These circuit pattern cards are a nice set of basic circuits.

http://www.adafruit.com/products/1474
62  Using Arduino / Project Guidance / Re: Serial Communication on: February 26, 2014, 08:24:03 am
One post you mention using only print() the code with float is println().

Did you change two things at once?  Because you really don't want to be using float.
63  Using Arduino / Programming Questions / Re: Advanced strings in HTML on: February 25, 2014, 06:55:59 am
I'm thinking of using a for loop, but I need to know:
That's a simplistic approach to solving the problem.  I'm glad you're thinking of the direction "what do I need to know?"  However, "using a for loop" is a little too deep dive to be useful.  You're going to need a number of skills, including basic control structures like for loops.

How to append strings, how to interpret them, etc.
Yes, you need to spend time on how C handles strings.  I would do this separate of your HTML work.  Learn how to send and receive characters over serial and then append them to strings.   Hint:  you do *not* want to use the Arduino "String" object.

Learn how C++ handles strings.  For example, == doesn't work on a string.

I would love Python's for loop right now
I'm really not sure what you mean by this.  All programming languages have loop structures.  That's just a basic component of the language.
64  Using Arduino / General Electronics / Re: atmega328 pin20 on: February 25, 2014, 06:48:48 am
From the ATmega328 datasheet.

Section 1.1.7
Quote
AVCC is the supply voltage pin for the A/D Converter, PC3:0, and ADC7:6. It should be externally connected to VCC, even if the ADC is not used. If the ADC is used, it should be connected to VCC through a low-pass filter. Note that PC6...4 use digital supply voltage, VCC.

Section 24.2
Quote
The ADC has a separate analog supply voltage pin, AVCC. AVCC must not differ more than ±0.3V from VCC. See the paragraph ”ADC Noise Canceler” on page 248 on how to connect this pin.
65  Using Arduino / Installation & Troubleshooting / Re: Serial port already in use_error message on: February 24, 2014, 05:03:54 pm
Quote
avrdude: stk500_getsync(): not in sync: resp=0x00
Is a generic error which is probably caused by 100 things (okay maybe a dozen, but whatever).  Nosingle definitive response can be given to solve it.
66  Using Arduino / General Electronics / Re: Arduino Nano + ENC28J60 wiring on: February 24, 2014, 03:47:01 pm
there's also this diagram from the datasheet;

For a generic application note, of course they will suggest using a level shifter.

However in this specific case with the ATmega328, a shifter is not necessary.  The threshold for a HIGH is sufficient for both 3V3 and 5V logic.
67  Using Arduino / General Electronics / Re: Analog INPUT_PULLUP and 6 buttons on: February 23, 2014, 01:15:43 pm
Do you maybe know why is that?
I already showed you how to do the math.

It's normal for analog readings to vary.  That's the nature of analog to digital conversions.  There are ways of cleaning it up.  In an application like this, just using some >= and <= ranges instead of absolutes is probably the simplest.
68  Using Arduino / Project Guidance / Re: Serial Communication on: February 23, 2014, 11:14:34 am
You have an Arduino on one side and an arduino on the other.  What's the problem?  Isn't matlab connecting to one of the Arduinos?

Either you have to send the value with a fixed number of digits or you need a delimiter. 
69  Using Arduino / General Electronics / Re: Arduino Nano + ENC28J60 wiring on: February 23, 2014, 10:01:30 am
I'm going to use a logic level converter to make sure everything works nice and smooth.
Why?  The ENC28J60 doesn't need one.  So adding unnecessary hardware means more chance for things to NOT go smooth.

when using the UNO instead of the Nano, to wire it to pin #8 of the Arduino Uno.  Soo.
CS isn't part of the SPI hardware so it can be any pin.  It is defined by the code you use.

2. In which way is the data travelling? (So I know how to wire it to the Logic level converter)
MOSI Sends
MISO Receives
CLK and CS send, obviously
70  Using Arduino / Project Guidance / Re: Serial Communication on: February 23, 2014, 09:58:18 am
Seems straight forward:
Code:
// get the data from where ever
Serial.print(data);
Serial.print(',');

On the receive side your serial data will in come in as
0,1,24,343 etc
71  Using Arduino / General Electronics / Re: Analog INPUT_PULLUP and 6 buttons on: February 23, 2014, 09:56:41 am
is LarryDs schematic the same as I made it when using INPUT_PULLUP in the code?
Yes

Are your numbers "good" only if analog pin is used only as INPUT and not as INPUT_PULLUP?
The math relies on "R5" being there.  So if you use the internal pull-up with INPUT_PULLUP then that is R5.  If you only use the pin as "INPUT", then there is not "R5".

That is what would the schematics be when using INPUT_PULLUP in code?
The only difference between INPUT and INPUT_PULLUP is that INPUT_PULLUP turns on the internal pull-up resistor.  It would be the same as using INPUT and adding an external resistor from the A5 pin to 5V.
72  Using Arduino / Project Guidance / Re: Timelapse Dolly on: February 23, 2014, 09:54:26 am
Board, LCD, Buttons, etc are going to be pretty easy.  There is nothing about your project's requirements that limit those.  You'll have to make secondary decisions on those.

As Riva suggests, your real initial focus is going to be motors.  Determine what kind of motor you need to accomplish the task at hand.
73  Using Arduino / Project Guidance / Re: Serial Communication on: February 23, 2014, 09:48:24 am
My data is from encoder.. so its counts of numbers .. eg 2 3 4 5 ... 67 68 69... 4567 4568 etc
ok?  So add a delimiter between readings.
74  Using Arduino / General Electronics / Re: Usb hub, shield ? on: February 23, 2014, 07:49:40 am
A USB Hub?  Or a USB Host chip?
75  Using Arduino / Project Guidance / Re: can anyone say how to store coordinates in a maze solver like i showed in pic on: February 23, 2014, 07:43:24 am
Example code to do your entire project?  No, I don't have that, sorry.
Pages: 1 ... 3 4 [5] 6 7 ... 405