Show Posts
Pages: 1 ... 19 20 [21] 22 23 ... 38
301  Using Arduino / Audio / Re: New library for PWM playback from SD cards: SimpleSDAudio on: February 09, 2013, 03:01:43 pm
How about ATMEGA 328.
Sorry. I don't know which is which.

Additional: I tried converting a .wav file but no file appears on the "converted" folder I created.
Is there any requirement for the format of the wav file?
How do I choose the appropriate batch file?
A real newbie in here, hope you understand.

It works fine in both the 328 and the 328P.

You need to choose the batch file for the playback rate and type you want. I have used 8 bit Mono Fullrate and 8 bit Stereo Fullrate and find the quality very good with a set of PC 2.1 active speakers.

If you are struggling for cycles (a processor intensive sketch) then you may want to try the Halfrate variants.

I've not found any problems with any Wav files at all. I've used downloaded movie/TV sound effects and also used freeware converters to convert a music track MP3 to Wav and then drop on a batch file to convert to 8 bit Stereo Fullrate .asm file, that then played very nicely in SimpleSDAudio
302  Using Arduino / Audio / Re: New library for PWM playback from SD cards: SimpleSDAudio on: February 09, 2013, 02:56:26 pm
@Tuttut - sorry, I didn't realise that section was there. I'll give that alternativ section a try and report back on whether it works ok. Many thanks again, it's very much appreciated.
303  Community / Products and Services / Re: PCB Service, less than $100.00 for prototype orders. No tooling cost for reorder on: February 08, 2013, 02:12:28 pm
I agree it is expensive compared to other services.

I've used Seeedstudio for 10 off 50x50 double layer board, at a total cost of $13.45 delivered to UK. These were back with me in two weeks.

I've placed an order with Elecrow for 10 off 100x100 dual layer, red soldermask, 100% E-Test at $30.90 delivered to UK. I've had the photo's of the fabricated boards and tracking shows they left China today.

$100 for 10 off 50x50 is seven times more expensive that Iteadsturio/Seedstudio/Elecrow, all services that have been used by people here. No idea on what the real costs are but the fact there are several services at the same price would suggest it is viable.
304  Using Arduino / Microcontrollers / Re: Yay, got my new 1284 pcbs on: February 08, 2013, 01:03:03 pm
BTW, what is the data code on your problem chips? Also, did using the full-swing oscillator
fuse setting fix the upload problem, without using the RC filter?
I have 5 x 1284P's and they are all date code 1247, which must be the latest as these were direct from Atmel/Digikey as engineering samples.

Changing to Full Swing Oscillator totally cured the problem. I'm not using any RC filters at all now and I've not had a failed serial upload since changing the Fuses. Before the changes it was failing 100% on my attempts at a 23kB sketch.
305  Using Arduino / Microcontrollers / Re: Boards with 1284p - full swing oscillator setting - solving upload issues? on: February 08, 2013, 06:03:49 am
Quote
if that is also true for the 1284P fuse settings.
I don't think we can blame the Arduino team for the 1284P fuse settings...

I dunno.  You have to change the fuses to upload programs without the bootloader anyway; if you know enough to do that, you should make sure they're all the way you want them to be.

I wasn't implying it was the Arduino team, just if the settings have been derived then it would explain some things.

I initially set the fuses by burning a bootloader to new uC's. In some cases I then wiped the bootloader by programming directly via ISP.

Checking the 1284P maniacbug fuses does show that EESAVE is unset.

Revised fuses (incorporating Full Swing Oscillator and Preserve EEPROM through chip erase) for the 1284P would be:-

LOW FUSE : 0xf7
HIGH FUSE : 0xd6
EXTENDED FUSE : 0xfd
306  Using Arduino / Programming Questions / Re: libraries on: February 08, 2013, 05:24:22 am
Sitting by the pool, 30 degrees C, sipping Pina Colada......with a huge pile of Arduino boards, shields, modules and wires scattered around the sunbed, thinking......'damn, forgot to download the xzy library!'
307  Using Arduino / Programming Questions / Re: LCD shield menu on: February 08, 2013, 05:20:48 am
As far as the buttons go, there is a LCDKeypad library for that shield that handles the buttons too.

For your menu, try the MENWIZ library
308  Using Arduino / Microcontrollers / Re: Yay, got my new 1284 pcbs on: February 08, 2013, 04:44:22 am
Well, I've not taken any special precautions on my first version prototype PCB layout, so when they arrive I'll check them with both fuse settings and the exact same 1284P I currently have sitting on a breadboard.

I know this chip wouldn't upload via serial until I either added the 10k series resistor in RX0 or altered the fuse settings. If I repeat that on the PCB then it will also show if the problem manifests more profoundly when on a breadboard.
309  Using Arduino / Microcontrollers / Re: Boards with 1284p - full swing oscillator setting - solving upload issues? on: February 08, 2013, 04:40:04 am
Thanks for the response lefty and CB. I'll have to have another investigate to see if that was my problem. I'll have to try and work out if that is also true for the 1284P fuse settings. Now that I can also upload to the 1284P via serial, I'll give it another go and see if my settings are preserved.
310  Using Arduino / Microcontrollers / Re: ATmega328P-PU with Arduino as programmer + NRF24L01 on: February 08, 2013, 04:36:58 am
That's good as it will be much better than trying to troubleshoot from the things you are attempting to follow.

I believe you did say that you were getting a device signature error? If so then I would look at the 328 chip and check it is actually a 328P-PU and not just a 328-PU, as they have different signatures. The ad you linked to does state it's a P-PU, but that doesn't mean that's the chip you actually received. ;-)
311  Using Arduino / General Electronics / Re: what the flux? on: February 08, 2013, 04:32:21 am
http://lmgtfy.com/?q=remove+flux+after+soldering
312  Using Arduino / Project Guidance / Re: Disabling the accelerometer on: February 08, 2013, 04:29:10 am
Some Acceleromers have a Sleep (SL) pin, which I suppose you could activate.

As for 'turning' accelerometer off then surely you could just toggle a variable accell_active = 0|1 and then only read the inputs and use them if it's active.

Pseudo code

Code:
declare accell_active and set to 1 (on by default)

if remote control set accelerometer on then set accell_active to 1
if remote control set accelerometer off then set accell_active to 0

if accell_active is 1 then read the accelerometer pins and do any processing
if accell_active is 0 then don't read the accelerometer pins of do any processing
313  Using Arduino / Project Guidance / Re: How to control house lights with limited inputs on: February 08, 2013, 04:04:55 am
How would you control the switches 'pulsing' on that Cat5E? How does the switch signal get back from the Arduino to the device being switched, which I assume is back in the same room the switch is in? Hard wired would have your mains loop, plus loop-in terminals and switch wire drops, with maybe a 3c + CPC for 2 way switching.

Are your switches going to be normal lighting switches, i.e 1 way or 2 way normally open, latched, switches? When switched they stay closed like a normal light switch?

If they are normal switches then that could present an issue as I can't see how you could have multiple switches on a single signal wire/pair, unless you did something fancy to make that operate a latch/delatch circuit that then does a similar thing when you open the switch. This would effectively buffer that switch and convert the output to momentary, but then you might as well just change the switches as it would be cheaper.

If these were momentary switches instead then you could conceivably look at wiring them in a 4 x 4 matrix layout, giving 16 switches on 8 wires. You could then use the Arduino Keypad library to detect presses, record the on or off state, and switch the output.

Again, if you have something to control 'pulses' then you could conceivably wire multiple switches on each of the 4 pairs. Each switch could send a different pulse length and the Arduino register the initial state change from low to high, state change from high to low, and the duration of the pulse. i.e. Switch 1 on pair 1 could send a 50ms pulse, switch 2 a 1 100ms pulse etc. You'd not be able to handle multiple switching at the same time though, although short duration pulses may mean this is very unlikely to cover the same time slot in ms.

Or, you could use a voltage divider to have multiple switches. In that case you could use 1 pair as supply and ground, then leaving 6 wires for analog switch signals, which works quite nicely with 6 anaolog pins on the Arduino. Keep it limited with maybe only 5 values per switch wire (to give reasonable spacing between values) and you could switch 30 items.

I'm not sure whether sending a specific binary signal is the best option as that means multiple state changes from off to on to off to signal each bit. That may take time as you could want it reasonably slow for the Arduno to detect reliably, to avoid any interference from nearby 240v. You'd also need to detect, record and buffer each state change until you had all bits, then carry out any action.
314  Using Arduino / Microcontrollers / Re: Yay, got my new 1284 pcbs on: February 07, 2013, 08:52:55 pm
Pretty rich advice from Atmel considering where they put the Xtal pins!!

Surely a better design would have been between nice solid DC lines, where capacitive coupling would be virtually eliminated (possibly a very tiny amount due to ripple or noise on the DC lines). Maybe between Vcc and Gnd, or less frequently switched input like Reset and Gnd?

Siting the low impedance Xtal pin right next to RX0 on the 1284 wasn't very bright was it?

;-)
315  Using Arduino / Microcontrollers / Re: How to program an arduino without host pc & using arduino as handheld programmer on: February 07, 2013, 08:45:54 pm
Couldn't you also just link the two via TX/RX and reset lines, reset the target and read and transfer a Hex file from an SD card, via the target bootloader?

That's an idea we had for allowing a user to perform a firmware update on our devices, although we've not tested it yet.
Pages: 1 ... 19 20 [21] 22 23 ... 38