Show Posts
Pages: 1 ... 18 19 [20] 21 22 ... 38
286  Using Arduino / Project Guidance / Re: Doing a Sentry Gun Project, Need Some Advice on Servos on: February 11, 2013, 02:01:08 am
Most of the people I know that have built paintball ones have used the following:-

We have the parts to build three of these, which we'll then make some enhancements too for Bluetooth remote control from a smart phone, and automatic position and status reporting to a live game map. As with anything, just need the time to get back on to it.
287  Using Arduino / Microcontrollers / Re: Supplying power to a standalone ATMega328P-PU on: February 10, 2013, 07:53:11 pm
Connect both.
288  Using Arduino / Microcontrollers / Re: AVRdude eror with my own arduino Board on: February 10, 2013, 07:50:03 pm
The schematic you posted shows R2 on RTS as 100 Ohm. C13 on DTR as 100nF.

You only need DTR with the cap if it's present on your USB > Serial. You don't need RTS connected at all as far as I'm aware.
289  Using Arduino / Installation & Troubleshooting / Re: Arduino Start up issues on: February 10, 2013, 06:21:02 pm
Are you clicking the Tick button (Compile) or the Right Arrow button (Compile and Upload)?

Do you have the correct board selected in the menu Tools > Boards?

What message do you get in the console window (below the sketch edit area) when you click Compile and Upload?
290  Community / Products and Services / Re: PCB Service, less than $100.00 for prototype orders. No tooling cost for reorder on: February 10, 2013, 06:02:55 pm
That's still not answering the question.

...but do not tell us what the toolong cost is so we can determine what future orders will cost...

You state price as under $100, but how much of that is tooling cost? i.e. on a subseqyent re-order for the same amount will it be $50, $25...???

I still don't see how it can compete with the prices available via Iteadstudio/Seeedstudio/Elecrow as quoted above.
291  Using Arduino / Audio / Re: New library for PWM playback from SD cards: SimpleSDAudio on: February 10, 2013, 04:44:33 pm
What pins are to be connected to the SD card.

D4 - SS or CS
D11 - MOSI
D12 - MISO
D13 - SCK

First, hardware SS is often only an issue when SPI is used as slave, which is often not the case.

Yes, on the 328P it was working OK on 9 & 10 with SD Card used on SPI and with D4 as SS. On my new PCB's I could also be using radio and ethernet modules on SPI (I know they work together), as well as SimpleSDAudio, although any sounds would only be played when those devices aren't being used. I thought it would be cleaner if I could use 6 & 5 instead.

Second, to use the pins 6 & 5 on mega328 Arduinos, you have to apply the wiring.c patch as you already figured out and then you have to patch the file SimpleSDAudioDefs.h. Scroll to the end and you find the last big #else part that sets up all the stuff for mega328 Arduino. Below that, there is the same part again but this time for use pin 6 & 5, but it is commented out. Rework the comments that the old #else-part for pins 9 & 10 will become commented out and activate the part below instead. Then audio will use pin 6 & 5, but it requires the wiring.c patch. Beware, I have not tested that thoroughly so please leave a note if it works for you.

Patches all made and audio works perfectly now switched to Pins 6 & 5. Tested in 8 bit Stereo Fullrate. Many thanks again. :-)
292  Using Arduino / Displays / Re: Powerbox Arduino on: February 10, 2013, 09:30:00 am
From your post I have absolutely no idea what it is you want to do. The photo you posted tells me nothing an I have no idea what the item in that image actually does.
293  Using Arduino / Audio / Re: New library for PWM playback from SD cards: SimpleSDAudio on: February 10, 2013, 08:57:15 am
I'm not at home to check what file converter I used.

The command line message you got, about a subdiretory or file already converted, is normal. Once you already have a 'converted' folder then that message always appears, but you should find your newly converted file inside that folder.
294  Using Arduino / General Electronics / Re: Too many shift registers? on: February 10, 2013, 05:40:45 am
Long, unshielded, leads everywhere. Let's see if we can pick-up/generate as much Noise/RFI as we can. ;-) hint hint.
295  Using Arduino / Programming Questions / Re: Arduino RFID Module RDM630 Code on: February 10, 2013, 05:18:11 am
The sketch is commented. It clearly tells you that /0 is adding the NULL terminator to the end of the bytes read.

All strings should be terminated with a NULL. If you use a chat array to read in bytes then you should terminate the string with a NULL. Therefore if you want to hold 20 characters, your char array would need to be 21 to hold the extra NULL to terminate the string.

The other bits just set a loop up to read each byte and add to the array, or read valid characters from the array until it encounters the NULL (/0) signifying the end of the string.
296  Using Arduino / Programming Questions / Re: When does millis() increment? on: February 10, 2013, 03:08:42 am
The interrupt fires every 1.024 mS, so millis() increments that often. Because of the slight discrepancy (the 0.024 part) the interrupt will increment the millis figure by 2 from time to time (think of it as a leap year).

That's on a Uno or similar running at 16 MHz.
Ahh, that's interesting information. Thanks Nick.

I know I've got a little timer bug in one of my early sketches. I totally suspect it is because I've done something like 'if millis()-lastmillis==1000 when it needs to be >=1000 but haven't got round to fixing it yet. Every now and then the led stops flashing and stays on. Millis() jumping 2, so the interval goes from 999 to 1001 would explain that.
297  Using Arduino / Programming Questions / Re: sending structs, need clarification on some things. on: February 10, 2013, 02:52:12 am
The max payload size will be 32 bytes IIRC. Once you fix your string issue you need to make sure a single payload doesn't exceed that or it will be truncated.

When using the RF24Network library it uses 12 bytes for the header so that leaves only 20 bytes for the rest of the payload, something that took a while to realise.
298  Using Arduino / Programming Questions / Re: Reading html data only, storing as String on: February 10, 2013, 02:37:40 am
If using an Uno, remember you only have 2kB total SRAM. Strings eat RAM quickly, so storing the whole page in SRAM isn't a good idea.

Why not read each character 'c' and compare to the start of what you are looking for. Once you find that character then start to store in the string until you reach the last character, at which point stop adding the read bytes to the string.

You might also consider the byte length of your stored string and whether converting them to numerical values, such as int, long, float, is more efficient than storing as strings. I.e 68.00 as a string takes 5 bytes. As a float it takes 4. If you can afford to drop the decimals then you could store in an int for 2 bytes. Even use a uint8_t for a single byte for a number up to 255.

Is that data from an external page or one you generate yourself? If the latter then you could format so you only have the data you want to retrieve. You can generate a web page without all the other text easy enough.

If it's an external page then maybe make a little web service that first processes the page to strip out the extraneous text, leaving just the data for your Arduino to read and collect.

EDIT: Back on a PC and edited. I hate iPhone auto correct making your post sound like a jibbering alcoholic!
299  Using Arduino / Microcontrollers / Re: Yay, got my new 1284 pcbs on: February 10, 2013, 01:14:45 am
The problems I experienced are when using a breadboard. Maybe hardwiring on proto board or a proper PCB eliminates the issue. I'd guess that capacitance just between adjacent pads on a proto board is probably neligible even when compared to that, between strips of 5 connections, on a breadboard?
300  Using Arduino / Programming Questions / Re: Looping only once when a button is pressed. on: February 09, 2013, 04:13:02 pm
That's not your code. That's a pseudo description of what you think your code does.

If you want help debugging then you need to post your full code for people to look over.
Pages: 1 ... 18 19 [20] 21 22 ... 38