Show Posts
Pages: 1 ... 87 88 [89] 90 91 ... 114
1321  Using Arduino / General Electronics / Re: Caps on: April 22, 2012, 10:51:10 am
Hi,
   Thanks for the response, I will get a large bag of these -

http://uk.rs-online.com/web/p/ceramic-multilayer/5381310/

Thanks again,

Duane B

rcarduino.blogspot.com
1322  Using Arduino / Sensors / Re: pulsein function on: April 22, 2012, 10:32:39 am
Hi,
   Yes, you can reduce the delay, but don't, pulseIn is just wrong for what most people try and use it for.

Duane B

rcarduino.blogspot.com
1323  Using Arduino / Sensors / Re: pulsein function on: April 22, 2012, 09:36:29 am
Hi,

 Don't use pulsein.

 Read this link from my blog -

http://rcarduino.blogspot.com/2012/01/how-to-read-rc-receiver-with.html

then this one -

http://rcarduino.blogspot.com/2012/04/how-to-read-multiple-rc-channels-draft.html

you might as well read the two links in my signature while you are at it.

Duane B

rcarduino.blogspot.com

rcarduino.blogspot.com
1324  Using Arduino / Programming Questions / Re: Multiple PWM signal reading on Arduino Mega 2560 on: April 22, 2012, 06:51:15 am
Hi,

It's the pinchangeint library, you don't need it on a mega, so remove the include statement and change PCintPort:: before each of the attachInterrupts

You will also need to change the pin numbers, look for the comments 'assign your channel pins' and 'assign your out pins' the channel pins should be updated to whatever pins your channels are connected to from your receiver, the out pins are you channel output pins if you want to drive servos or electronic speed controllers, again update these to whatever pins you have your devices connected to.

Duane B
1325  Using Arduino / Programming Questions / Re: Multiple PWM signal reading on Arduino Mega 2560 on: April 22, 2012, 06:06:58 am
Hi,

Do please read the link, this code below is a car crash waiting to happen as is the code you copied from the post you linked -

Code:
void loop()
 {
  delay(10);
  Serial.println(servo0,DEC); // Pulsewidth in microseconds
  Serial.println(servo1,DEC); // Pulsewidth in microseconds
 } 

When you use servo0 and servo1 in a real world application they will be all over the place.

I use my code in 40km/h RC Race car which is why I protect my shared variable access.

Duane B

rcarduino.blogspot.com
1326  Using Arduino / General Electronics / Caps on: April 22, 2012, 05:50:21 am
Hi,
   Can anyone help me with capacitor choice for decoupling, specifically -

1) Does the voltage matter ?

I often see 0.1uf Capacitors rated upto 100v as the only choice available in local outlets, are these effective in a TTL environment ?

2) Is there any advantage in paying the extra for tantalum over ceramic ?

3) I assume that 0.1uf poly film caps are not suitable for decoupling due to internal inductance, right or wrong ?

Thanks

Duane B

rcarduino.blogspot.com
1327  Using Arduino / Programming Questions / Book on: April 22, 2012, 05:44:31 am
Hi,
   Does anyone have any feedback on this book or can suggest an alternative resource for learning AVR Assembler. I have very limited experience in assembler so need to basics as well as the AVR Specifics, this book seems to cover both.

http://www.amazon.com/Some-Assembly-Required-Programming-Microcontroller/dp/1439820643/ref=sr_1_sc_1?s=books&ie=UTF8&qid=1335087290&sr=1-1-spell

Duane B

rcarduino.blogspot.com
1328  Using Arduino / Programming Questions / Re: Multiple PWM signal reading on Arduino Mega 2560 on: April 22, 2012, 05:42:02 am
Hi,
  Yes, I know, I was referring to the post I linked where I am using an UNO which has only two external interrupts and so I am using the pinchangeint library to get acccess to additional interrupts.

Also from my blog - http://rcarduino.blogspot.com/2012/03/need-more-interrupts-to-read-more.html

Rakma74,
   Your Mega has more external interrupts than my UNO so you can use attachInterrupt and do not need to use the pcintchange library which provides those of use using UNO's with access to upto 20 additional interrupts. The principles and code are the same for both boards so I suggest you do read the post I linked originally and again below, you can imply drop the PCintChange:: before attachInterrupt, everything else remains the same.

Duane B.

rcarduino.blogspot.com
1329  Using Arduino / Programming Questions / Re: Multiple PWM signal reading on Arduino Mega 2560 on: April 22, 2012, 05:30:41 am
Hi,
   Your missing several important points most of which are covered here  -

http://rcarduino.blogspot.com/2012/04/how-to-read-multiple-rc-channels-draft.html

As your using a Mega, you do not need to use the pinchangeint library as you have enough external interrupts already, but you still need to pay attention to shared variable access, could benefit from using bit flags to signal new values are available rather than outputting data whether it has changed or not etc etc.

I am planning a new post showing finished code and standalone hardware that runs in my RC Car based on this code with some additionals to any errors that might occur.

Duane B

rcarduino.blogspot.com
1330  Using Arduino / Project Guidance / Re: need some help with project using servo-motors and light sensors on: April 22, 2012, 03:41:12 am
Hi,
   Sorry about that and thanks for the correction.

Duane B

rcarduino.blogspot.com
1331  Using Arduino / Motors, Mechanics, and Power / Re: servo Clock on: April 22, 2012, 12:57:17 am
Hi,
Further to the post above, read the two links in my signature for a video of what's most likely happening and a way to address it.

Duane B

rcarduino.blogspot.com


1332  Using Arduino / Project Guidance / Re: need some help with project using servo-motors and light sensors on: April 22, 2012, 12:52:43 am
The examples are all standard Aduino hardware and software.

Duane B
1333  Using Arduino / General Electronics / Re: op amp audio amplifier circuit help/suggestion on: April 22, 2012, 12:50:43 am
Hi,
  For the vu meter a google search for lm324 vu meter circuit returns many results. It's a very simple circuit but if you have a few lm324's you can add filters to give you vu meters for different frequency bands and some very basic music visualization. There is also a dedicated vu meter ic the LM3916, I have both, but have only used the 324 so far.

Duane B

rcarduino.blogspot.com


1334  Using Arduino / Project Guidance / Re: need some help with project using servo-motors and light sensors on: April 21, 2012, 11:48:19 am
Read this

http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html

then watch this

http://rcarduino.blogspot.com/2012/04/servo-problems-part-2-demonstration.html

Rcarduino.blogspot.com
1335  Using Arduino / General Electronics / Re: op amp audio amplifier circuit help/suggestion on: April 21, 2012, 10:53:44 am
Hi,
   I can second the lm386, Its a great little amp on a chip. I had one driving a PC Speaker from an iPod nano using the very minimal circuit suggested in the data sheet, it's hard not to be impressed with the sound given it takes about five minutes to build. I also have one on the output of my Audino, again it's driving a PC speaker.

If you still have the lm324, you can make a nice vu meter for your 386 amp.

Duane B

rcarduino.blogspot.com


Pages: 1 ... 87 88 [89] 90 91 ... 114