Show Posts
Pages: [1] 2 3 ... 75
1  Using Arduino / Project Guidance / Re: Arduino Pro Mini Pinout on: September 04, 2014, 05:30:38 am
Thankyou!  This is far easier to read this than the silkscreen on these clone boards

Geoff
2  Using Arduino / Project Guidance / Re: How to Interfacer RFID reader that outputs in HEX on: August 03, 2014, 03:55:21 am
Tag: [ÿÿÿÿÿÿÿÿÿÿÿÿ]
So your answer is right there.

Your code is receiving the value (in val) of -1 each time it does this
Code:
val = RFID.read();
and finds nothing to read.  That -1 as an integer is then stored as a char here
Code:
code[bytesread] = val; // add the digit
Each time a -1 is read (ie there's nothing to read) it stores that accented y character.  Check SoftwareSerial Read() for confirmation of the -1 returned when it finds nothing in the buffer.

To confirm this further, if you run this test code
Code:
char codeval;
int val = -1;

void setup() {
  Serial.begin(9600);
  Serial.println("Ready");
  Serial.println("val\tchar");
  Serial.print(val);
  Serial.print('\t');
  codeval = val;
  Serial.println(codeval);
}

void loop() {
}
You'll get this result
Code:
Ready
val char
-1 ÿ
So you need to test that there is something there to read before just storing what you receive.  You can do that either by testing val for -1 or by only doing the read of RFID after you find RFID..available() > 0 .  ie, that there is something in the buffer to be stored at all.

Check SoftwareSerial Available() for more info on that.

Cheers !
Geoff
3  Using Arduino / Microcontrollers / Re: Burn BootLoader......... on: July 27, 2014, 04:22:51 pm
Hi

The SPI functionality is baked in to the ATmega328 design.  It sits on pin 5 of port B, and PB5 is addressed in Arduino-speak as Digital Pin 13.  It will be far easier I expect to move whatever alternative functionality you have in mind for D13.  What is it that's causing you this issue ?

If you're up for more reading, check out the ATmega328P datasheet, and these functions are summarised in 13.3.1 Alternate Functions of Port B, table 13-3 on page 82.  For a handy reference to these, I keep this reference page from adkafugu within arms reach.

Cheers!
Geoff
4  Using Arduino / Microcontrollers / Re: Uno as ISP: to crystal or not? on: July 13, 2014, 04:41:49 pm
fungus: Regarding the Pro Mini - I had not thought about going this route.  Definitely worth a look into.  I like the idea of Fritzing and being able to solder stuff onto a board that I design, but using a Mini would take any guesswork out of the "will it work or not" scenario.
I use the pro mini in projects as a kind of daughter board.  If you're using a proto-board just put two rows of female headers for the pro mini to socket into.  It doesn't take up much room, and you can even fit other components under it.

Cheers ! Geoff
5  Using Arduino / Microcontrollers / Re: How to create .HEX file using Arduino IDE for AVR microcontrollers on: July 13, 2014, 01:34:14 am
So you're going to have to provide more information.  Did you get it to the stage where the board you've installed shows up as a target in the tools/board menu?
6  Using Arduino / Microcontrollers / Re: Uno as ISP: to crystal or not? on: July 13, 2014, 12:26:53 am
Yes, I should have said - crystal and caps are so cheap I've never bothered with the alternative either smiley
7  Using Arduino / Microcontrollers / Re: Uno as ISP: to crystal or not? on: July 12, 2014, 11:46:23 pm
Hi,

I've not personally tried to use an ATmega328 to drive an iR transmitter but in answer to your question about callibration, the datasheet shows it can be to within +/- 1 %.  The description of the internal oscillator talks of it being temperature and voltage dependent, and from factory calibrated at 3V and 25C to be 8MHz  +/- 10%.  The external crystal is recommended to give greater stability when voltage and temperature will vary, and for electrically noisy environments.

Cheers!
Geoff
8  Using Arduino / Microcontrollers / Re: How to create .HEX file using Arduino IDE for AVR microcontrollers on: July 12, 2014, 11:12:14 pm
Hi,

have you looked at write-ups by others who've used the ATmega16 with Arduino, for example this instructable:Arduino on all sorts of Atmels?

Geoff
9  Using Arduino / Microcontrollers / Re: How to create .HEX file using Arduino IDE for AVR microcontrollers on: July 11, 2014, 09:07:52 am
Somewhere in there is the location of your .hex file.
It's in the final line before it tells you the binary sketch size.  In Windows 7 it's a file named yoursketch.cpp.hex, located in a subdirectory of %winuser%\AppData\Local\Temp

When I compiled Blink.ino, the file path was C:\Users\Geoff\AppData\Local\Temp\build7373827488144063489.tmp\Blink.cpp.hex

Hope this helps,
Geoff
10  Community / Exhibition / Gallery / Re: Arduino controlled Tesla Coil... on: July 08, 2014, 07:08:13 am
Very nice.  Are you intending to do a bit of a write-up?
11  Using Arduino / Microcontrollers / Re: Program ATTiny85 with Arduino Mega2560 on: July 08, 2014, 04:40:26 am
If Nick suggests 47uF I'd respect his advice and switch.  10uF is fine for Uno but I've never had the need to break out a mega to program so can't confirm if that's your deal-breaker, though I suspect it is.

Your photo is indistinct so it makes it appear that the reset (blue) is going to the left side of the double header, which isn't where 53 is, but there are 2 blue wires and it does get cluttered and confused there.

I'd start with the cap.  If you don't have a 47uF you could likely substitute 5x 10uF in parallel (=50uF) if you've got those.

All the best,
Geoff
12  Using Arduino / Microcontrollers / Re: Program ATTiny85 with Arduino Mega2560 on: July 08, 2014, 03:19:32 am
Hi,

It might be worth posting a photo of your setup to see if there's anything you're staring at but not seeing. 

As for the practicality - I often find myself working out how to squeeze a project into one or more ATtiny85s but I'm mindful that to the man with a hammer, every problem is a nail and the cost difference of two ATtiny compared to a single ATmega328 is minimal...though it's about the challenge as much the outcome too smiley

Cheers!
Geoff
13  Using Arduino / Microcontrollers / Re: Program ATTiny85 with Arduino Mega2560 on: July 08, 2014, 02:43:30 am
Hi

What problems are you finding?  You've not given us much info to work on here.

Are you using a version of ArduinoISP that has the pins modified to the IO pin locations required on the mega?  ArduinoISP as standard is setup for the Uno style board.  Comments in this version spell out the required changes.

Let everyone know what error or issue you're specifically seeing, and how far you get before you see it.

Cheers!
Geoff
14  Using Arduino / Project Guidance / Re: Electronic working of the ARDUINO UNO board. on: July 08, 2014, 02:21:39 am
And, if I'm reading your request correctly, the datasheets for all the ancillary components (voltage regulators etc) that make up a Uno that support the ATmega.  And you'll need to choose one of the various ways an LED may be blinked and interpret what instructions occur to make that happen.

It's not trivial. 
Geoff
15  Using Arduino / Project Guidance / Re: Integrating a Accelerometer to function with a Window 7 PC? on: July 08, 2014, 02:02:55 am
Hi,

If you're asking primarily if what you wish to do is possible on an Arduino, the answer is yes certainly.  I'll presume that you're familiar with programming the PC to respond to the commands.  That being the case, if your cube were connected to the PC via USB, the Arduino can act as a HID device, pretend to be a keyboard, and send a different keystroke sequence for each side that's placed down.

Alternatively, you might connect to the PC via bluetooth, with a USB bluetooth dongle (say) on your PC doing the communications and your code receiving data via bluetooth and responding with the actions you need completed in Windows.

That's just two initial thoughts - and I only listed them here to illustrate that it is indeed possible.

All the best with your project,
Geoff
Pages: [1] 2 3 ... 75