Show Posts
Pages: 1 ... 88 89 [90] 91 92 ... 114
1336  Using Arduino / Project Guidance / Re: Interference between ultrasonic sensor and servo on: April 21, 2012, 10:24:09 am
Hi,
Read the two links in my signature, it's quite likely a power issue, the second link has a video showing the problem, the first link presents some solutions.

Duane B

rcarduino.blogspot.com
1337  Using Arduino / Project Guidance / Re: need some help with project using servo-motors and light sensors on: April 21, 2012, 09:13:18 am
Hi,
   A separate power source for your servo/s is one thing to consider, see the links in my signature for some background. Other than that have a read of the oomlout beginners guide for some servo and light sensor examples which you should be able to combine to achieve your goal.

http://nedx.org/src/guide/2/NEDX-EG-OOML-WEB.pdf

Duane B

rcarduino.blogspot.com
1338  Using Arduino / Project Guidance / Re: PWM to PWM converter on: April 20, 2012, 02:48:22 pm
Hi,
   Now I feel like a clown, that post is about 3 years older than my blog post, but has almost identical code. I guess sometimes, there is only one way to skin a cat.

This is the post I was thinking of -

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

You mention noisy input but some of this may be due to you not protecting you shared variable. You use pwmIn1Ready to indicate to loop that a new pulse is available, but you do not take any measures in your ISR to prevent it overwriting the value of pwmIn1PulseElapsedTime while loop is reading it. Have a look through this link to get an idea what I am referring too -

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

There are lots of optimizations you could make, for example using a timer to generate the output pulses in the background, but if it works, how low level do you want your code to get ?

Duane B

rcarduino.blogspot.com
1339  Using Arduino / Project Guidance / Re: PWM to PWM converter on: April 20, 2012, 02:22:06 pm
Hi,
   Your code looks somehow familiar ?

Duane B

rcarduino.blogspot.com
1340  Using Arduino / Sensors / Re: How to use a IR sensor to control music please? on: April 17, 2012, 04:40:54 am
Hi,
   If your looking to control prerecorded music, I can't help but others can, if your looking to control sythesised sound then check out the Audino. Its very simple to build check it our on your favorite video site for an idea of what it sounds like.

   You could replace one or more of the potentiometers with whatever sensors you have.

   If you do decide to build one, there is a small easily fixed bug in the download code I have posted about it and the fix in the Audio section.

Duane B

rcarduino.blogspot.com
1341  Using Arduino / Project Guidance / Re: Arduino or sensor speed problems? on: April 16, 2012, 05:19:56 pm
Hi,
   Arduino is not slow, 1800 rpm is only 30 events per second, which means that your Arduino can perform roughly 500,000 operations between revolutions this is several hundred times more than you need.

Its nice to see that you have a motor sports application, its close to my own interest. I don't know that you are taking the best approach.

Have a look at my RC/Kart lap timer, its uses infra red to time laps, you can create infra red beacons for about 2 dollars that you could position on the track for taking split times automatically.

Its small enough to strap to a steering wheel of a kart, but as I have found that I cannot always look at the wheel the most useful feature is a very loud buzzer. One buzz to confirm a lap/split has been captured and two pips if its a new best, it makes a huge difference to my RC driving, I cannot believe how much harder I work on a lap to get those two pips.

I am working on the project right now and plan to finish it within a few days at which point I will write it up in full, in the meantime check out the relevant blog posts here - 

http://rcarduino.blogspot.co.uk/2012/02/rc-lap-timer-go-kart-lap-timer-part-1.html

http://rcarduino.blogspot.co.uk/2012/02/rc-lap-timer-go-kart-lap-timer-part-2.html

http://rcarduino.blogspot.co.uk/2012/03/punk-consoles-and-ir-transmitters-555.html

Duane B

rcarduino.blogspot.com
1342  Using Arduino / Networking, Protocols, and Devices / Re: SPI in loop() working fine, but not in ISR TIMER 1 interrupt on: April 15, 2012, 05:04:49 pm
Hi,

I might be wrong, but does the spi library rely on interrupts ? If so it will not work inside an interrupt service routine because interrupts are disabled temporarily while an isr runs.

To get around this, just set a flag in the isr which you can test for in loop, when the flag is set, you know it's time to send your data.

Duane b

rcarduino.blogspot.com
1343  Using Arduino / Motors, Mechanics, and Power / Re: More mA for RGB led disk on: April 15, 2012, 03:43:52 pm
Hi,

Nice to see you found my link. To pass more current to your LEDs, you can use individual transistors or a chip which provides six or eight transistors in a single package.

The way this approach works is that the transistor is connected in the current path of each led on the separate power circuit. an Arduino output pin is connected to the base of the transistor. When the arduino pin is low, the transistor will act like a switch in the off position. If the Arduino pin is high the transistor will act as if it is a switch in the on position. This switching between on and off works fast enough for the PWM/analogWrite that you are currently using for brightness and colour mixing.

If you search for 'transistor as a switch' you will find approaches using individual transistors, if you search for 'darlington driver' 'hex driver' or 'transistor array' you will find approaches using chips.

Duane B

rcarduino.blogspot.com
1344  Using Arduino / Motors, Mechanics, and Power / Re: MKS HBL 950 servo doesn't respond on: April 15, 2012, 03:31:56 pm
Hi,

You should have a common ground for all parts of your circuit, so the lipo ground should be common with the servo ground and the arduino ground - there should be only one ground which is easily achieved by connecting all these grounds together. See the links in my signature for a little more detail.

Duane B

rcarduino.blogspot.com
1345  Using Arduino / Programming Questions / Re: Servos and ADJDS-311 on: April 15, 2012, 03:17:27 am
Hi,

Four AA batteries should be fine if they are powering the servos and you have something else powering the Arduino, is this what you are doing amd ae the grounds connected between the two power supplies ?

If not read the two links in my signature for whats happening in your project and how to fix it.

Duane B

rcarduino.blogspot.com
1346  Using Arduino / Programming Questions / Re: What is used instead of BYTE? on: April 14, 2012, 04:39:44 pm
Hi,

 try short or uint8_t

Duane B

rcarduino.blogspot.com
1347  Using Arduino / Project Guidance / Re: PWM, LFO and Osc, adjustable with LCD Display the several POT values on: April 14, 2012, 01:43:58 pm
Hi,
   If your going to use an Arduino, you might as well get it to generate the sound in the first place.

Why not just build an Audino, its nothing more than 5 pots and an Arduino.

I have added a simple amplifier using a LM386 to drive a PC Speaker from mine.

Search for Audino on your favorite video site for a few examples.

Duane B

rcarduino.blogspot.com
1348  Using Arduino / Motors, Mechanics, and Power / Re: Problems with arduino power input & servo motors on: April 13, 2012, 04:21:36 am
Hi,

   Check out the two links in my signature for an idea of whats happening in your project, why you need extra power and how to supply it.

Duane B

rcarduino.blogspot.com
1349  Using Arduino / General Electronics / Re: battery 9V on: April 13, 2012, 04:15:04 am
Hi,
   Check the two links in my signature for an idea of whats happening and how to get around it. The examples use servos but apply to power orientated components in general.

Duane B

rcarduino.blogspot.com
1350  Using Arduino / Project Guidance / Re: Make a RC car run a whole race track pre-programmed on: April 13, 2012, 04:10:00 am
Hi,
   If you have a slot car track, try it there first, you only have the throttle to deal with as the track will steer the car. Its a lot harder than it looks.

Duane B

rcarduino.blogspot.com
Pages: 1 ... 88 89 [90] 91 92 ... 114